OpenVZ_ubc_helpers

Download: openvz_ubc_helpers.tar.gz

README for OpenVZ_ubc_helpers
=============================

Written at Aug,Sep 2009 by ilya.evseev@gmail.com

Distributed as public domain from here:
http://sources.homelink.ru/openvz/

Small set of utilities for tracking failures
recorded in /proc/user_beancounters file.

ubc_faillist
	Reads user_beancounters from /proc or selected file.
	Displays failures in readable form.

ubc_faildiff
	Displays differences between failure counters.
	Understands ubc_faillist output
	and raw /proc/user_beancounters format.

ubc_stat.crondaily
	Useful wrapper for faillist/faildiff.
	Should be placed to /etc/cron.daily.
	Stores reports to /var/log/user_beancounters.

ubc_insert2sql
	Dumps current contents of /proc/user_beancounters
	to mysql table. See also:
	 * ubc_2sql.crondaily -- _SAMPLE_ wrapper for cron
	 * ubc_insert2sql.sql -- table creation script

ubc_faillist output sample:
========
Version: 2.5
       uid  resource                     held              maxheld              barrier                limit              failcnt
       15:  kmemsize                  6785063             42041297             41943040             62914560                 2743
       15:  numproc                        17                  106                  130                  130                    3
       15:  tcpsndbuf                  116000              2102904              2097152              3145728                   71
       13:  tcpsndbuf                       0               322904               319488               524288                   95
========

ubc_faildiff output sample:
========
      uid             resource          old          new        delta
      13:            tcpsndbuf     31081764     50132026     19050262
      15:              numfile          807         1329          522
========

Last changed at 23-Sep-2009. Enjoy ;-)