Sample Header Ad - 728x90

Testing swap partition on OpenVZ vps

0 votes
0 answers
203 views
I am attempting to confirm swap usage on an OpenVZ vps. (I have had issues with badly configured swap files before) To do so I am slowly filling the memory using code from this question https://unix.stackexchange.com/questions/1367/how-to-test-swap-partition . Then while running the code, monitoring memory and swap usage using top. Whilst running, the swap usage does not change, instead the usage of the memeater code approaches real memory limits then stops. Is this normal behaviour for the swap file in an OpenVZ setup? Other useful info- - - - swappiness = 60 # uname -a Linux vps.server.com 5.4.0 #1 SMP Mon Mar 16 15:39:59 MSK 2020 x86_64 x86_64 x86_64 GNU/Linux # cat /proc/user_beancounters Version: 2.5 uid resource held maxheld barrier limit failcnt 21423: kmemsize 48521216 101617664 9223372036854775807 9223372036854775807 0 lockedpages 93 149 9223372036854775807 9223372036854775807 0 privvmpages 175203 477143 9223372036854775807 9223372036854775807 0 shmpages 366 368 9223372036854775807 9223372036854775807 0 dummy 0 0 9223372036854775807 9223372036854775807 0 numproc 71 71 4194304 4194304 0 physpages 133247 262148 262144 262144 381 vmguarpages 0 0 9223372036854775807 9223372036854775807 0 oomguarpages 139011 276392 0 0 14 numtcpsock 0 0 9223372036854775807 9223372036854775807 0 numflock 6 104 9223372036854775807 9223372036854775807 0 numpty 1 4 9223372036854775807 9223372036854775807 0 numsiginfo 0 87 9223372036854775807 9223372036854775807 0 tcpsndbuf 0 0 9223372036854775807 9223372036854775807 0 tcprcvbuf 0 0 9223372036854775807 9223372036854775807 0 othersockbuf 0 0 9223372036854775807 9223372036854775807 0 dgramrcvbuf 0 0 9223372036854775807 9223372036854775807 0 numothersock 0 0 9223372036854775807 9223372036854775807 0 dcachesize 20279296 24981504 9223372036854775807 9223372036854775807 0 numfile 860 5590 9223372036854775807 9223372036854775807 0 dummy 0 0 9223372036854775807 9223372036854775807 0 dummy 0 0 9223372036854775807 9223372036854775807 0 dummy 0 0 9223372036854775807 9223372036854775807 0 numiptent 44 44 9223372036854775807 9223372036854775807 0
Asked by watermelon (21 rep)
Oct 15, 2020, 03:12 PM
Last activity: Oct 15, 2020, 05:28 PM