OpenVZ Forum


Home » General » Support » why buffers cached is always 0 in VPS/VE?
Re: why buffers cached is always 0 in VPS/VE? [message #32917 is a reply to message #32910] Tue, 09 September 2008 02:50 Go to previous messageGo to previous message
tukey is currently offline  tukey
Messages: 10
Registered: March 2008
Location: China
Junior Member
finist wrote on Mon, 08 September 2008 14:40

Hi!

'free' takes info from /proc/meminfo file generated by kernel.
Surely /proc/meminfo inside a Container provides some virtual information, some of values are not vistualized there, for example Buffers and Cached are always reported zero.

# vzctl exec 690 cat /proc/meminfo |egrep "^Cached|Buffers"
Buffers: 0 kB
Cached: 0 kB

But why do you ask? Just a curiosity or some software suffers from that?

Thanks,
Konstantin

---------------------------------------
Hi, Konstantin

Thank you for your reply. I understand what you meant about /proc/meminfo.
I do suffer from memory insufficiency.
When I run tomcat and mysql, there is always an memory insufficiency error in my VE, which has 384MB total memory.

But when I do the same thing in another HardNode (it has no VEs),
which has the same memory (no swap), there is no error occurs.

I compared my VE and the HardNode via "free", the only difference is "buffers" and "cached".


you see, if "buffers" and "cached" is unavailable, it actually needs more memory for running applications, right?
Is there any solution?

ps. My settings of my VE is :
KMEMSIZE="11055923:11377049"
LOCKEDPAGES="256:256"
PRIVVMPAGES="96768:96968"
SHMPAGES="21504:21504"
NUMPROC="240:240"
PHYSPAGES="0:2147483647"
VMGUARPAGES="65536:2147483647"
OOMGUARPAGES="65536:2147483647"
NUMTCPSOCK="360:360"
NUMFLOCK="188:206"
NUMPTY="16:16"
NUMSIGINFO="256:256"
TCPSNDBUF="1720320:2703360"
TCPRCVBUF="1720320:2703360"
OTHERSOCKBUF="1126080:2097152"
DGRAMRCVBUF="262144:262144"
NUMOTHERSOCK="360:360"
NUMFILE="9312:9312"
DCACHESIZE="3409920:3624960"
NUMIPTENT="128:128"
AVNUMPROC="180:180"
CPUUNITS="1000"
ONBOOT="yes"
ORIGIN_SAMPLE="vps.basic"
DISKSPACE="10485760:11530240"
DISKINODES="2000000:2200000"
QUOTATIME="0"
OSTEMPLATE="slackware-12.0-i386-minimal"
IP_ADDRESS="192.168.1.202"

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [solved] Dynamic Resource Allocation Not Working
Next Topic: [solved] Help Me Understand Please (About Setting Resource Per VE)
Goto Forum:
  


Current Time: Wed May 08 20:32:24 GMT 2024

Total time taken to generate the page: 0.01467 seconds