[Users] memory problem

Kirill Korotaev dev at sw.ru
Wed Apr 18 08:39:25 EDT 2007


Dvorkin Dmitry wrote:
> [root at rh0 dv]# vzmemcheck -v
> Output values in %
> veid LowMem LowMem RAM MemSwap MemSwap Alloc Alloc Alloc
> util commit util util commit util commit limit
> 1028 0.09 25.92 0.74 0.46 7.50 2.42 7.50 13.83
> 1001 0.37 46.25 1.85 1.14 12.49 3.43 12.49 18.83
> -------------------------------------------------------------------------
> Summary: 0.45 72.16 2.60 1.59 19.99 5.86 19.99 32.66
> [root at rh0 dv]# vzctl enter 1001
> entered into VE 1001
> -bash: pipe error: Cannot allocate memory
> -bash-3.1#
> 
> inside VPS (logged in before memory problems):
> [700353 at h0001 700353]$ top
> bash: start_pipeline: pgrp pipe: Cannot allocate memory
> bash: top: command not found
> [700353 at h0001 ~]$ ps auxw
> /proc/self/stat: Cannot allocate memory
> 
> inside host:
> [root at rh0 vz]# cat ./vestat
> Version: 2.2
> VEID user nice system uptime idle strv uptime used maxlat totlat numsched
> 1001 50392 343 14125 7922942 94838940488033 0 23766049873942 
> 203406018536 0 0 0
> 1028 8900 0 18286 201038265 2411830220100997 0 603043235696062 
> 301978099005 0 0 0
> [root at rh0 vz]# cat ./vzquota
> qid: path usage softlimit hardlimit time expire
> 1028: /vz/private/1028
> 1k-blocks 4869664 21474836480 21474836480 0 259200
> inodes 52147 442799 487079 0 259200
> 1001: /vz/private/1001
> 1k-blocks 1670104 21474836480 21474836480 0 259200
> inodes 81303 442799 487079 0 259200
> 
> [root at rh0 proc]# cat ./user_beancounters_sub
> Version: 2.5
> uid resource held maxheld barrier limit failcnt
> 
> ...
> 1001: kmemsize 5644891 16417987 744488960 754974720 0
> lockedpages 0 5 410 410 0
> privvmpages 54706 123048 111270 122397 597042
> shmpages 658 4018 11127 11127 0
> dummy 0 0 0 0 0
> numproc 50 181 204 204 0
> physpages 17150 69819 0 9223372036854775807 0
> vmguarpages 0 0 18545 9223372036854775807 0
> oomguarpages 17150 69819 18545 9223372036854775807 0
> numtcpsock 7 68 204 204 0
> numflock 5 20 326 358 0
> numpty 2 7 20 20 0
> numsiginfo 0 34 1024 1024 0
> tcpsndbuf 79696 757112 1963491 2799075 0
> tcprcvbuf 114688 578712 1963491 2799075 0
> othersockbuf 170872 507168 981745 1817329 0
> dgramrcvbuf 0 16976 981745 981745 0
> numothersock 121 204 204 204 93
> dcachesize 1820178 1871195 1825304 1880064 680879
> numfile 1246 3176 3264 3264 0
> dummy 0 0 0 0 0
> dummy 0 0 0 0 0
> dummy 0 0 0 0 0
> numiptent 10 10 40 40 0
> 
> what is the problem?
> i've created this VPS # 1001 with
> vzctl set 1001 --kmemsize 750M --save
> 
> do i have to increase "dcachesize" value manually?
sure, you have changed kmemsize limit only.
dcachesize limit is too tight and should be increased.

Thanks,
Kirill



More information about the Users mailing list