OpenVZ Forum


Home » General » Support » Clearing/resetting user_beancounter?
Re: Clearing/resetting user_beancounter? [message #2797 is a reply to message #2796] Fri, 21 April 2006 09:28 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

The thing is, there can be many application who reads /proc/user_beancounters, and thus if you will reset it you gonna have problems with those other apps.

Consider what happens if you will reset you sent/received packets/bytes statistics on the network interface -- programs which reads will be screwed up.

So the proper thing to watch for is not the current value of, say, failcnt, but whether it is increased or not. You can write a simple shell script to do just that.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* Internet Connectivity
Next Topic: How to reset the failcount (failcnt) in /dev/user_beancounters ?
Goto Forum:
  


Current Time: Wed Jul 17 14:31:18 GMT 2024

Total time taken to generate the page: 0.02604 seconds