OpenVZ Forum


Home » General » Support » Strange memory usage patterns...
Strange memory usage patterns... [message #35814] Fri, 24 April 2009 09:32 Go to next message
Wildy is currently offline  Wildy
Messages: 5
Registered: June 2007
Junior Member
(x-posted and translated from Russian, since the activity there is very low)

We have a problem once again...
The server layout is: 2x Xeon 5140 (4 cores total), 16 GB RAM, SAS RAID 1. Installed are: OpenVZ, Debian (in the HN and VE alike), drbd. After some days of usage the machine started to show lack of free memory, and the most of it is Inactive in /proc/meminfo. After we've killed absolutely everything (with SysRQ+E!) the memory wouldn't free.
Inside of the node are various components (the HN is clean) - apache2+php, mysql5, mail, ejabberd, bind9.

Here are the stats.

uname -a
Linux real2 2.6.18-openvz-13-51.3d1-amd64 #1 SMP Tue Dec 25 22:50:42 MSK 2007 x86_64 GNU/Linux


cat /proc/meminfo
MemTotal:     16390204 kB
MemFree:        377592 kB
Buffers:        275640 kB
Cached:        3262192 kB
SwapCached:          0 kB
Active:        5873892 kB
Inactive:      9432296 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:     16390204 kB
LowFree:        377592 kB
SwapTotal:     7815612 kB
SwapFree:      7815576 kB
Dirty:            3328 kB
Writeback:           0 kB
AnonPages:     3613180 kB
Mapped:          73072 kB
Slab:           552916 kB
PageTables:      71704 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:  16010712 kB
Committed_AS:  5950124 kB
VmallocTotal: 34359738364 kB
VmallocUsed:    303316 kB
VmallocChunk: 34359433888 kB


cat /proc/user_beancounters
Version: 2.5
       uid  resource                     held              maxheld              barrier                limit              failcnt
      107:  kmemsize                  7472644              9994715             36845281             39078329                    0
            lockedpages                     0                    0                   35                   35                    0
            privvmpages                137614               139832               262144               262144                    0
            shmpages                       18                   18                 8192                 8192                    0
            dummy                           0                    0                    0                    0                    0
            numproc                        25                   40                  239                  239                    0
            physpages                  117896               119132                    0  9223372036854775807                    0
            vmguarpages                     0                    0                 6144  9223372036854775807                    0
            oomguarpages               117896               119132                 6144  9223372036854775807                    0
            numtcpsock                      8                   34                  200                  200                    0
            numflock                        1                    9                 1000                 1100                    0
            numpty                          0                    3                   16                   16                    0
            numsiginfo                      0                    4                  256                  256                    0
            tcpsndbuf                  139520               514024              8388608             12582912                    0
            tcprcvbuf                  131072              3511264              5582617              6343884                    0
            othersockbuf                83992               322008              1395653              4194304                    0
            dgramrcvbuf                     0                44816               159835               159835                    0
            numothersock                   39                   56                 1024                 1024                    0
            dcachesize                 307053               378828              1536000              1920000                    0
            numfile                       871                 1104                10000                10000                    0
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            numiptent                      10                   10                 5000                 5000                    0
      106:  kmemsize                  4920770              7640718             33554432             33554432                    0
            lockedpages                     0                    0                   32                   32                    0
            privvmpages                 52230                77929               262144               307200                    0
            shmpages                       18                 1026                 8192                 8192                    0
            dummy                           0                    0                    0                    0                    0
            numproc                        22                   40                  100                  120                    0
            physpages                   37441                49031                    0  9223372036854775807                    0
            vmguarpages                     0                    0                 6144  9223372036854775807                    0
            oomguarpages                37441                49031                 6144  9223372036854775807                    0
            numtcpsock                     25                   49                   80                   80                    0
            numflock                        1                    7                  100                  110                    0
            numpty                          0                    2                   16                   16                    0
            numsiginfo                      0                    6                  256                  256                    0
            tcpsndbuf                  160328               543144              1048576              2097152                    0
            tcprcvbuf                  722872              1809864              8388608              8388608                    0
            othersockbuf                 2312                28472               132096               336896                    0
            dgramrcvbuf                     0                10768               132096               132096                    0
            numothersock                    2                   12                   80                   80                    0
            dcachesize                 264798               358581              1048576              1097728                    0
            numfile                       656                  948                 4000                 4500                    0
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            numiptent                      10                   10                  128                  128                    0
      104:  kmemsize                  1360171              3342912             10485760             15728640                    0
            lockedpages                     0                   16                   32                   32                    0
            privvmpages                 19210                33829                65536                65536                    0
            shmpages                        0                 1008                 8192                 8192                    0
            dummy                           0                    0                    0                    0                    0
            numproc                        12                   27                   65                   65                    0
            physpages                    6562                11308                    0  9223372036854775807                    0
            vmguarpages                     0                    0                 6144  9223372036854775807                    0
            oomguarpages                 6562                11308                 6144  9223372036854775807                    0
            numtcpsock                      6                   11                   80                   80                    0
            numflock                        1                    5                  100                  110                    0
            numpty                          0                    2                   16                   16                    0
            numsiginfo                      0                    4                  256                  256                    0
            tcpsndbuf                       0                30784               319488               524288                    0
            tcprcvbuf                   98304              1057432              1048576              2097152                  209
            othersockbuf                23120               215808               212738               336896                35175
          
...

Re: Strange memory usage patterns... [message #36276 is a reply to message #35814] Wed, 03 June 2009 10:50 Go to previous messageGo to next message
rpmarriott is currently offline  rpmarriott
Messages: 1
Registered: June 2009
Junior Member
Did you ever get anywhere with this, I'm having the same problems.
Re: Strange memory usage patterns... [message #36279 is a reply to message #36276] Wed, 03 June 2009 12:52 Go to previous message
Wildy is currently offline  Wildy
Messages: 5
Registered: June 2007
Junior Member
What kernel version do you have?
What are your UBC values?
Previous Topic: [openvzwiki] Iptables Firewall script b0rked?
Next Topic: [solved] modprobe problem
Goto Forum:
  


Current Time: Sun Nov 10 11:53:23 GMT 2024

Total time taken to generate the page: 0.03412 seconds