Re: Calculating kmemsize [message #36795 is a reply to message #36787] |
Mon, 20 July 2009 12:19   |
spectator
Messages: 6 Registered: July 2009
|
Junior Member |
|
|
> what does it mean "to calculate kmemsize"?
I'm trying to work out how to obtain the value of kmemsize in the examples of the OpenVZ wiki.
> Do you want to calculate kmemsize before VE is created?
Yes, I do. For two reasons. 1) To ensure my understanding of the examples is correct and also so that I can create containers of varying sizes on the same node.
It looks like my understanding of kmemsize is wrong then.
Looking at the consistency check page on the OpenVZ wiki, I see the first equation states that kmemsize needs to be at least a certain size but I can't come to a value of 16,384,000 for kmemsize.
Here are the values I'm using:
total mem 248MB
kernel mem 42304KB
user mem 200MB
avnumproc 200
numproc 400
numtcpsock 500
numothersock 500
vmguarpages 102400
kmemsize 16,384,000 / 18,022,400
tcpsndbuf 5,365,760 / 10,485,760
tcprcvbuf 5,365,760 / 10,485,760
othersockbuf 1,503,232 / 4,063,232
dgramrcvbuf 262144
oomguarpages 102400
lockedpages 4096
shmpages 131072
privvmpages 262,144 / 292,912
numfile 8192
numflock 200 / 220
numpty 64
numsiginfo 512
dcachesize 4,194,304 / 4,317,184
When using the equation to calculate the minimum for kmemsize, I always get a smaller value than the examples.
Are the examples wrong?
[Updated on: Mon, 20 July 2009 12:25] Report message to a moderator
|
|
|