2014-05-15 18:36 GMT+02:00 Mike Jackson <m...@netauth.com>: > Quoting Tristan PILAT <tristan.pi...@gmail.com>: > > Hi folks, >> >> I'm running out of memory on a server causing packets drop and out of >> memory errors. I'm trying to found out what's exactly using the memory. >> There are few apps running on it, mainly bgpd, bind, and pf with lots of >> rules. >> >> Here is the top: >> >> load averages: 1.33, 1.46, 1.58 >> 42 processes: 41 idle, 1 on processor >> CPU0 states: 1.5% user, 0.0% nice, 0.0% system, 6.2% interrupt, 92.3% >> idle >> CPU1 states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% >> idle >> CPU2 states: 6.1% user, 0.0% nice, 1.5% system, 0.0% interrupt, 92.4% >> idle >> CPU3 states: 1.5% user, 0.0% nice, 1.5% system, 0.0% interrupt, 97.0% >> idle >> Memory: Real: 240M/1925M act/tot Free: 44M Cache: 179M Swap: 0K/0K >> > > > Have you tried running without the mp kernel? I know, it sounds like a > waste on an mp machine, but just sayin'... > > The thing is that it's not possible to reboot the machine right now... Maybe later.
netstat -m out : 190 mbufs allocated to data 6 mbufs allocated to packet headers 25 mbufs allocated to socket names and addresses 189/1126/6144 mbuf 2048 byte clusters in use (current/peak/max) 0/8/6144 mbuf 4096 byte clusters in use (current/peak/max) 0/8/6144 mbuf 8192 byte clusters in use (current/peak/max) 0/8/6144 mbuf 9216 byte clusters in use (current/peak/max) 0/8/6144 mbuf 12288 byte clusters in use (current/peak/max) 0/8/6144 mbuf 16384 byte clusters in use (current/peak/max) 0/8/6144 mbuf 65536 byte clusters in use (current/peak/max) 2980 Kbytes allocated to network (14% in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines