Date: Thu, 30 Mar 2006 13:45:17 -0500 From: Stephen Clark <Stephen.Clark@seclark.us> To: stable@freebsd.org Subject: Re: 4.9 network not freeing memory Message-ID: <442C273D.105@seclark.us> In-Reply-To: <20060330053231.GS60807@ufanet.ru> References: <442B23CA.3060808@seclark.us> <20060330034353.GR60807@ufanet.ru> <442B56B2.1070107@seclark.us> <20060330053231.GS60807@ufanet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
damir bikmuhametov wrote: >On Wed, Mar 29, 2006 at 10:55:30PM -0500, Stephen Clark wrote: > > >>>Try to increase net.inet.ip.intr_queue_maxlen and monitor >>>net.inet.ip.intr_queue_drops. >>> >>> >>Increasing net.inet.ip.intr_queue_maxlen to 400 seems to have fixed the >>problem. >> >> > >Could you please report this to the list after some testing? > >Thanks. > > > Do you know if the queue_maxlen is exceeded do the mbufs get lost? It sort of seems that is what happens. This is after a test where I was increment queue_maxlen til queue_drops were not increasing. $ sysctl net.inet.ip.intr_queue_drops net.inet.ip.intr_queue_drops: 27444 X10001:~ At this point the network after my test the network is pretty much quiet. But there are still mbufs allocated for data?? $ netstat -m 689/5504/131072 mbufs in use (current/peak/max): 689 mbufs allocated to data 265/4958/32768 mbuf clusters in use (current/peak/max) 11292 Kbytes allocated to network (11% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines After a reboot: X10001:~ $ sysctl net.inet.ip.intr_queue_drops net.inet.ip.intr_queue_drops: 0 X10001:~ $ netstat -m 2/416/131072 mbufs in use (current/peak/max): 2 mbufs allocated to data 0/44/32768 mbuf clusters in use (current/peak/max) 192 Kbytes allocated to network (0% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines This after a reboot and another test with queue_maxlen=400 Note there are only 3 mbufs allocated to data. sysctl net.inet.ip.intr_queue_drops net.inet.ip.intr_queue_drops: 0 X10001:~ $ netstat -m 3/416/131072 mbufs in use (current/peak/max): 3 mbufs allocated to data 0/44/32768 mbuf clusters in use (current/peak/max) 192 Kbytes allocated to network (0% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines Is there some way to see what the current queue length is? Like the queue drops. What do you think? Regards, Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?442C273D.105>