OpenVZ Forum


Home » Mailing lists » Users » reset user_beancounters?
reset user_beancounters? [message #22884] Wed, 07 November 2007 02:22 Go to next message
Steve Wray is currently offline  Steve Wray
Messages: 18
Registered: August 2007
Junior Member
Hi there,
excuse me if this is a really obvious FAQ...

How do I reset the /proc/user_beancounters (noteably the fail counts)?

I've tried stopping and restarting the vz instance but, surprisingly (to 
me) the numbers (specifically the fail counts) stay the same...
:(

Thanks!
Re: reset user_beancounters? [message #22896 is a reply to message #22884] Wed, 07 November 2007 08:48 Go to previous messageGo to next message
gblond is currently offline  gblond
Messages: 64
Registered: May 2007
Member
On 7 November 2007 05:22:55 Steve Wray wrote:
> Hi there,
> excuse me if this is a really obvious FAQ...
>
> How do I reset the /proc/user_beancounters (noteably the fail counts)?
>
> I've tried stopping and restarting the vz instance but, surprisingly (to
> me) the numbers (specifically the fail counts) stay the same...
>
> :(

It looks like your kernel was compiled with CONFIG_UBC_KEEP_UNUSED=y

If you want to reset beancounters when VE is restarted switch off this option.

>
> Thanks!
-- 
Thank,
Vitaliy Gusev
Re[2]: reset user_beancounters? [message #22898 is a reply to message #22884] Wed, 07 November 2007 09:14 Go to previous messageGo to next message
gblond is currently offline  gblond
Messages: 64
Registered: May 2007
Member
On 7 November 2007 05:22:55 Steve Wray wrote:
> Hi there,
> excuse me if this is a really obvious FAQ...
>
> How do I reset the /proc/user_beancounters (noteably the fail counts)?

Please read http://wiki.openvz.org/UBC_failcnt_reset

>
> I've tried stopping and restarting the vz instance but, surprisingly (to
> me) the numbers (specifically the fail counts) stay the same...
>
> :(
>
> Thanks!
-- 
Thank,
Vitaliy Gusev
Re: reset user_beancounters? [message #22899 is a reply to message #22896] Wed, 07 November 2007 09:15 Go to previous messageGo to next message
porridge is currently offline  porridge
Messages: 23
Registered: October 2007
Location: London, UK
Junior Member
On Wed, Nov 07, 2007 at 11:48:02AM +0300, Vitaliy Gusev wrote:
> If you want to reset beancounters when VE is restarted switch off this option.

Can we pleeease have a possibility to be able to programatically zero
the counters (possibly separately max and failures) without restarting a
VE? It can't be THAT hard :)

regards,

-- 
Marcin Owsiany <marcin@owsiany.pl>              http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216
 
"Every program in development at MIT expands until it can read mail."
                                                              -- Unknown
Re: reset user_beancounters? [message #23087 is a reply to message #22899] Mon, 12 November 2007 12:48 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Marcin Owsiany wrote:
> On Wed, Nov 07, 2007 at 11:48:02AM +0300, Vitaliy Gusev wrote:
>   
>> If you want to reset beancounters when VE is restarted switch off this option.
>>     
>
> Can we pleeease have a possibility to be able to programatically zero
> the counters (possibly separately max and failures) without restarting a
> VE? It can't be THAT hard :)
>
>   
The answer is given at http://wiki.openvz.org/UBC_failcnt_reset.

And it can't be that hard to store the current failcnt values and then 
just check the delta.
Re: reset user_beancounters? [message #23099 is a reply to message #23087] Mon, 12 November 2007 15:45 Go to previous message
Gregor Mosheh is currently offline  Gregor Mosheh
Messages: 62
Registered: April 2007
Member
Actually, I am curious about why resetting the UBCs is "an incorrect 
thing to do" The reason given is that apps may be reading them and may 
not be programmed to handle the number suddenly decreasing.

So... What programs are these that are reading the UBCs? I haven't 
written any. and if I did I think it'd be great if the stats could be 
zeroed. Is the wiki page referring to some actually existing software 
which reads these stats which would be broken by a reset?

I am confused as to why it would be "incorrect" to zero the stats, and 
why such concern is made for programs which don't exist or which we're 
not using.

-- 
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
  only if you can restore." - AMANDA
Previous Topic: Fedora 8 is released.
Next Topic: How do I mount /tmp on VEs with noexec,nosuid options?
Goto Forum:
  


Current Time: Sat May 11 15:05:59 GMT 2024

Total time taken to generate the page: 0.01738 seconds