Re: requests for mbufs denied



Gabor MICSKO wrote:
Hi!

I have a relative high traffic server, running Apache, MySQL and Drupal.
With FreeBSD 6.0 and 6.1-PRERELEASE i got some distressing "netstat -m"
outputs.

Can anybody explain for me what does this message mean exactly?

"16064849/9164254/9384500 requests for mbufs denied (mbufs/clusters/mbuf
+clusters)"

And what can i do with this?

Full "netstat -m" output:

$ netstat -m
445/695/1140 mbufs in use (current/cache/total)
407/255/662/65536 mbuf clusters in use (current/cache/total/max)
407/237 mbuf+clusters out of packet secondary zone in use
(current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
925K/683K/1609K bytes allocated to network (current/cache/total)
16064849/9164254/9384500 requests for mbufs denied (mbufs/clusters/mbuf
+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
33/964/6656 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
56067 requests for I/O initiated by sendfile
5500 calls to protocol drain routines


Sorry for my bad english.

Thank you!



In my case, that happens when the number of free pages become less than vm.v_free_min. In such case, we drain cached buckets from zones (including mbuf zone) to the system to get more free pages, and disable bucket allocation. As the result, we cannot get a bucket when freeing a mbuf to the zone and just do internal free, counting up the number of allocation failure, i.e. the number of "requests for mbufs denied".

I don't know whether this (as to counting up the number of failure in such case) is expected or not.

--
Kazuaki Oda
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: requests for mbufs denied
    ... requests for sfbufs delayed ... In such case, we drain cached buckets from zones to the system to get more free pages, and disable bucket allocation. ... As the result, we cannot get a bucket when freeing a mbuf to the zone and just do internal free, counting up the number of allocation failure, i.e. the number of "requests for mbufs denied". ...
    (freebsd-net)
  • Re: memguard for mbufs (fwd)
    ... Here's a note I just sent to the people who have been experiencing "memory ... used after free" panics - if you're also affected, ... Bosko doublechecked my original mbuf use ... The problem arose because there are three UMA zones - the mbuf zone, ...
    (freebsd-current)
  • RE: mbuf denied problem
    ... Allowing mbuf memory to be reclaimed for the purposes of other subsystems was an intentional design choice. ... The below change means that after a network load spike, the memory can't be returned for use by other subsystems. ... netstat -m show 0 deny till has memory, ... 7410219/101093/101499 requests for mbufs denied ...
    (freebsd-net)
  • Re: Performance/lockup issues with FreeBSD as a router
    ... I would watch your mbuf usage and> when you ... > SysAdmin, CarDomain Network ... 450 mbufs in use 448/132096 mbuf clusters in use 0/2/33280 sfbufs in use 1008 KBytes allocated to network ... requests for sfbufs delayed ...
    (freebsd-performance)
  • Re: High usage of mbufs
    ... > small syn flood that went un noticed and that the current mbuf stat is ... > 0 requests for sfbufs delayed ... 4159799080/25600 mbuf clusters in use ...
    (freebsd-performance)