Re: netmap_mem_get_info

2017-02-18 Thread Vincenzo Maffione
For each netmap memory area (in this case you use only the global one): - if_num must be >= of the total number of NIOCREGIF on the netmap memory area. The default is 100 and it should be ok. - Then you have to count how many TX and RX rings you use in total in all the interfaces you NIOCREGIF'd

Re: netmap_mem_get_info

2017-02-16 Thread Slawa Olhovchenkov
On Thu, Feb 16, 2017 at 09:48:14PM +0100, Vincenzo Maffione wrote: > 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.

Re: netmap_mem_get_info

2017-02-16 Thread Vincenzo Maffione
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 : > On Thu,

Re: netmap_mem_get_info

2017-02-16 Thread Slawa Olhovchenkov
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

Re: netmap_mem_get_info

2017-02-16 Thread Vincenzo Maffione
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

Re: netmap_mem_get_info

2017-02-14 Thread Slawa Olhovchenkov
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

Re: netmap_mem_get_info

2017-02-14 Thread Vincenzo Maffione
i am trying to assign more memory to netmap but it fails > i trace it to "netmap_mem_get_info" function ,this function changes my > defined memory size to 343019520 and i cant find the implementation of it > in the source code! > > T

netmap_mem_get_info

2017-02-11 Thread amir alipour
hi i am trying to assign more memory to netmap but it fails i trace it to "netmap_mem_get_info" function ,this function changes my defined memory size to 343019520 and i cant find the implementation of it in the source code! Thank you for any help you c