luigirizzo / netmap

Automatically exported from code.google.com/p/netmap
BSD 2-Clause "Simplified" License
1.83k stars 533 forks source link

Embedded Linux with small memory issues #686

Open ivanhxq opened 4 years ago

ivanhxq commented 4 years ago

I am porting netmap to my device run linux with 128Mbytes RAM,It always failed when I run pkt-gen。netmap driver init memery pool fail

image

I try to reduce ring num,but it do not work. so I am wondering how many memory netmap need?How can I adjust netmap driver to fit my device?

giuseppelettieri commented 4 years ago

Try reducing /sys/module/netmap/parameters/buf_num, it is the number of preallocated buffers and it is the largest memory requirement by far.