[Users] ... Strange User-Bean-Counter: othersockbuf

Kir Kolyshkin kir at openvz.org
Thu Sep 3 08:45:02 EDT 2009


Robert Heinzmann wrote:
> Hello List, 
>
> I have a strange beancouter value for a machine: 
>
> /proc/user_beancounter
> ...
> resource          held   maxheld   barrier   limit       failcnt
> othersockbuf      16184  4364184   6000000   12000000       11
> ...
>
> Altought the barrier was never reached, a failcnt is recorded. How can
> this happen ? Is this a bug ? 
>   
Strange that no one has answered this before, it's pretty trivial. Sorry 
for the late reply, I was on vacation.

If an app tries to allocate more than (barrier - held) bytes at once, 
this allocation will fail, failcnt will increase, maxheld won't change.

Say, in your scenario, if 4364184 bytes is currently allocated and a 
program tries to allocate another 2000000 bytes, such allocation will 
fail with no change in held/maxheld and an increment to failcnt.

Hope that helps.

Kir.


More information about the Users mailing list