Add vzubc - a tool to show beancounters in a human-readable format

This is still a work in progress, but overall I am starting to like it.

FEATURES:
* Held, maxheld, barrier, limit, and fail counter are shown for every beancounter.
* Zero and unlimited values are shown as " - "
* Values that are in pages are converted to bytes.
* Long values are converted to kilo-, mega-, gigabytes etc.
* For held and maxheld it shows how close the value to the barrier and the limit, in per cent.
* Can be used both inside CT and on HN.
* User can specify CTIDs or CT names to output info about.
* Optional top-like autoupdate mode (using "watch").
* Optional "relative failcnt" mode (show increase in UBC fail counters since last run).
* Optional quiet mode (only shows "worth to look at" UBCs, ie ones close to limits and/or with failcnt).

TODO:
* check compatibility with mawk etc.
* colors?
* man page

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
4 files changed