Date: Thu, 16 Feb 2017 21:48:14 +0100 From: Vincenzo Maffione <v.maffione@gmail.com> To: Slawa Olhovchenkov <slw@zxy.spb.ru> Cc: amir alipour <amir.alipour.r@gmail.com>, "freebsd-net@freebsd.org" <net@freebsd.org> Subject: Re: netmap_mem_get_info Message-ID: <CA%2B_eA9iysThFg=8TJ43oFn8u74KpKUUmcZBehi7wcurCE1tj4Q@mail.gmail.com> In-Reply-To: <20170216203813.GR6035@zxy.spb.ru> References: <CAJd3dBrC5ZHcTF1p0tNnBPPdBaSpfZxhe%2BnCDesM4-RTcUR=Sg@mail.gmail.com> <CA%2B_eA9g=O4hcg7b8O0wDpGjWeAiDSkE45jx4YAR3-oLRXCjv%2Bw@mail.gmail.com> <20170214123621.GA15630@zxy.spb.ru> <CA%2B_eA9gFF8k8=qGOT3zYekPTYm2TiRx1WLsH_eioi4m%2BJdP6cw@mail.gmail.com> <20170216203813.GR6035@zxy.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Not sure about what you mean. Until memory areas are in use the real values (*_num, *_size) are not changed. At NIOCREGIF time you can say what allocator you are interested in by writing a non-zero id inside req.nr_arg2. 2017-02-16 21:38 GMT+01:00 Slawa Olhovchenkov <slw@zxy.spb.ru>: > On Thu, Feb 16, 2017 at 09:14:19PM +0100, Vincenzo Maffione wrote: > > > Hi, > > You're right, we'll try to add more details. > > > > In any case, buf_size, ring_size and if_size are the sizes in bytes of > each > > buffer, ring and netmap_if (control data structure), respectively. > > So the maximum amount of slots for each ring is ring_size/16, as 16 is > the > > size in bytes of struct netmap_slot. > > > > On the other side, buf_num, ring_num and if_num are the total number of > > biffers, rings and netmap_if objects in each netmap memory area (aka > > "allocator"). > > By default there is a single memory area used by all the hardware NICs > and > > a separate memory area for each VALE port. > > This is already configurable, however. > > This values also depends on open netmap descriptors, right? > > > 2017-02-14 13:36 GMT+01:00 Slawa Olhovchenkov <slw@zxy.spb.ru>: > > > > > On Tue, Feb 14, 2017 at 12:26:55PM +0100, Vincenzo Maffione wrote: > > > > > > > Hi, > > > > Have you tried to play with netmap sysctl parameters like: > > > > > > > > dev.netmap.buf_num > > > > dev.netmap.ring_num > > > > dev.netmap.if_num > > > > > > > > those are listed in the sysctl section of the netmap man page. > > > > > > man page hide details about calcul rules of this parameters. > > > > > > > > > > > -- > > Vincenzo Maffione > -- Vincenzo Maffione
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B_eA9iysThFg=8TJ43oFn8u74KpKUUmcZBehi7wcurCE1tj4Q>