Results 1 to 2 of 2
  1. #1

    user_beancounters

    Using primarily these two references ...
    http://wiki.openvz.org/Proc/user_beancounters
    http://forum.swsoft.com/showthread.php?threadid=26770

    we've come up with a bash script which analyzes your /proc/user_beancounters and outputs the following, or any subset thereof ...

    Code:
    -----------------------------------------------
    Processing UBC version 2.5 for VEID: <$your_veid>
    <$date/time>       <$your_hostname>
    <$uptime_output>
    -----------------------------------------------
    ****** vmguarpages and oomguarpages limits are unspecified
    ****** each VE privvmpages limit should be <= 0.6 * RAM (=1228 MB), probably [much] lower.
    2929 MB Allocation Limit [privvmpages limit]
    ****** only high value processes have a chance in this range
    ****** having this safety range is important to permit critical processes
    1953 MB Allocation Barrier [privvmpages barrier]
    ****** allocation requests in this range have a chance
     128 MB Allocation Guarantee [vmguarpages barrier]
    ****** allocation will succeed in this range
     122 MB Memory Guarantee [oomguarpages barrier]
     129 MB ( 157 MB Max) page memory allocated [privvmpages held]
      32 MB (  36 MB Max) memory + swap used [oomguarpages held]
      20 MB (  35 MB Max) page memory used [physpages held]
     115 MB (118435 KB) kernel memory limit [kmemsize limit]
    ****** a safety range here, between limit and barrier, is important
      57 MB ( 58840 KB) kernel memory barrier [kmemsize barrier]
       3 MB (  3117 KB) kernel memory used [kmemsize held]
       0 MB (   654 KB) buffer memory used [*buf held]
    -----------------------------------------------
     Used : Max_Used : Limit    for Other Resources
      1085    1261   12000   numfile
         3       6     481   numflock
        14      14    4000   numiptent
        96     105   12000   numothersock
        45      55     450   numproc
         5       5      27   numpty
         0       4    1024   numsiginfo
        19      24    2000   numtcpsock
    -----------------------------------------------
    Fail Count conditions: 0
    <any failcount conditions listed here>
    You're welcome to it at http://amos.freeshell.org/userbeans.sh

    Comments, criticisms, corrections, suggestions, and discussion are welcome here.

  2. #2
    Join Date
    May 2003
    Location
    Florida
    Posts
    877
    Great script. It really helps understand what is happening.

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •