OpenVZ Forum


Home » General » Support » privvmpages failcnt high
privvmpages failcnt high [message #11297] Sat, 17 March 2007 12:56 Go to next message
GrrrlRomeo is currently offline  GrrrlRomeo
Messages: 3
Registered: March 2007
Junior Member
I'm trying to make sense of why I keep running out of resources on my host. I'm supposed to have 512M of RAM guarantee. From my understanding after reading up on privvmpages, I'm running out of allocated memory that isn't actually being used.

resource           held    maxheld    barrier      limit    failcnt
kmemsize        7495490    7513202   22111846   22754099      23664
lockedpages           0          0        512        512          0
privvmpages      111248     111255     131072     139264       1241
shmpages           6068       6068      43008      43008          0
dummy                 0          0          0          0          0
numproc              66         66        480        480          0
physpages         53024      53028          0 2147483647          0
vmguarpages           0          0      67584 2147483647          0
oomguarpages      54252      54256      52224 2147483647          0
numtcpsock           18         19        720        720          0
numflock              7          7        376        412          0
numpty                1          1         32         32          0
numsiginfo            0          1        512        512          0
tcpsndbuf        206068     219484    3440640    5406720          0
tcprcvbuf        294912     294912    3440640    5406720          0
othersockbuf      15208      15208    2252160    4194304          0
dgramrcvbuf           0          0     524288     524288          0
numothersock         14         14        720        720          0
dcachesize            0          0    6819840    7249920          0
numfile            2861       2870      18624      18624          0
dummy                 0          0          0          0          0
dummy                 0          0          0          0          0
dummy                 0          0          0          0          0
numiptent            10         10        256        256          0
Re: privvmpages failcnt high [message #11300 is a reply to message #11297] Sat, 17 March 2007 19:33 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Quote:

kmemsize        7495490    7513202   22111846   22754099      23664



I can think of two reasons for that:

1. Something tries to allocate a huge amount of kmem at once. Here 'huge' means more than 22111846-7495490. Well, I'd say -- very improbable.

2. Barrier and limit were increased after you got those fails. Can be checked by seeing if failcnt keeps growing or not.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: privvmpages failcnt high [message #11303 is a reply to message #11297] Sun, 18 March 2007 20:44 Go to previous messageGo to next message
sspt is currently offline  sspt
Messages: 100
Registered: August 2006
Location: Portugal
Senior Member
Or the node is overcommited Surprised

http://static.openvz.org/userbars/openvz-user.png
Re: privvmpages failcnt high [message #11315 is a reply to message #11303] Mon, 19 March 2007 09:07 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Quote:

Or the node is overcommited


In fact, the only time failcnt is increasing is then the value of a parameter hits the limits. So, if the node is overcommitted, you'll have errors/fails in your apps, but failcnt will not be increased.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: privvmpages failcnt high [message #11352 is a reply to message #11297] Tue, 20 March 2007 19:56 Go to previous messageGo to next message
sPENKMAN is currently offline  sPENKMAN
Messages: 7
Registered: March 2007
Location: Arnhem, Netherlands
Junior Member
You are aware of the fact that privvmpages in measured in pages right?

So in fact your privvmpages limit is 544MB. That still doesnt explain the fact that there is a gap of 28009 pages (109MB) between your maxheld and limit.

It could be that at a certain point you VE tries to allocate 109MB+ memory altought I have my doubts about that.

What do you exactly mean by "I'm running out of allocated memory that isn't actually being used." ? Smile



When you think you have fixed it, something else will fail soon enough
Re: privvmpages failcnt high [message #11353 is a reply to message #11352] Tue, 20 March 2007 21:40 Go to previous messageGo to next message
GrrrlRomeo is currently offline  GrrrlRomeo
Messages: 3
Registered: March 2007
Junior Member
Yes, I know privvmpages is measured in pages. The reason why I say it's allocated but not actually used is because privvmpages maxes out when I'm only actually using something like 50% of memory. Where 512M may be allocated by applications, only 256M is being used. In other words, something is allocating much more memory than is actually needed.

I have tried hunting for any leaks in my scripts, but didn't find any. But as I didn't actually set the VPS up I don't know what else to look for.
Re: privvmpages failcnt high [message #11354 is a reply to message #11297] Tue, 20 March 2007 21:51 Go to previous messageGo to next message
sPENKMAN is currently offline  sPENKMAN
Messages: 7
Registered: March 2007
Location: Arnhem, Netherlands
Junior Member
On which bases do you conclude that you are only using 256MB? Looking at your beancounters you are using 434MB.

When you think you have fixed it, something else will fail soon enough
Re: privvmpages failcnt high [message #11374 is a reply to message #11354] Thu, 22 March 2007 04:43 Go to previous messageGo to next message
GrrrlRomeo is currently offline  GrrrlRomeo
Messages: 3
Registered: March 2007
Junior Member
privvmpages is memory that has been allocated by applications but not necessarily used. oomguarpages is the amount of memory actually use (in this case actually 211MB). That's what I've read anyway.
Re: privvmpages failcnt high [message #11467 is a reply to message #11374] Sat, 24 March 2007 17:46 Go to previous message
sPENKMAN is currently offline  sPENKMAN
Messages: 7
Registered: March 2007
Location: Arnhem, Netherlands
Junior Member
GrrrlRomeo wrote on Thu, 22 March 2007 05:43

privvmpages is memory that has been allocated by applications but not necessarily used. oomguarpages is the amount of memory actually use (in this case actually 211MB). That's what I've read anyway.


True, but memory which is allocated can't be allocated by other VE's so it seems only logical that the value of privvmpages is used to measure the current memory which has been assigned to the VE?

To be honest, I still don't understand the memory assignment very well but learning along the road.


When you think you have fixed it, something else will fail soon enough
Previous Topic: Restore error, but restored VM seems to be working
Next Topic: checkpoint optimizations?
Goto Forum:
  


Current Time: Wed May 08 19:39:17 GMT 2024

Total time taken to generate the page: 0.01496 seconds