Table of Contents

Name

xsysinfo - display FreeBSD system states (cpu, load, memory, swap, disk I/O, network packets, NFS client/server) statistics.

Syntax

xsysinfo [ -toolkitoption ... ] [ -nice nice_value ] [ -count iterations ] [ -interval seconds ] [ -nocpu ]
[ -noload ] [ -nomem ] [ -noswap ] [ -nodisk ]
[ -nopkt ] [ -nonfs ]
[ -filltype auto|grayscale|color|tile|stipple ]
[ -colors colorname[,colorname[,...]] ]

Description

Xsysinfo displays bars showing the percentage of system statistics :

CPU : The time of the CPU spends in different states. The colors mean : Red:system, Yellow:Interrupt, Green:Nice, Blue:User.

Load: The load of the system, each scale (color) means load 1. Multi-colors based on the load.

Memory: The memory status of the system, the colors mean : Red:Active, Yellow:Inactive, Purple:Wired, Green:Cache, White:Free

Swap: Gray:used swap, White:free swap. Swap only refresh every 10 intervals.

Disk: Disk I/O load, multi-colors based on the load.

Packet: The average of the input+output packets, multi-colors based on the load , and the Collisions are in black.

NFS: The load of NFS client and NFS server, multi-colors based on the load.

What does multi-colors mean ?! Because some informations (such as load, network packets, disk I/O) are bursty, if I give them a fix scale, the bar will be insensitive. So, when the load become heavy, the bar will be divided into parts by colors...Assume you see "XXXXOOOOZZ__", it means the load is between 2.0 and 3.0 (three kinds of colors)

Options

Xsysinfo accepts all of the standard X Toolkit command line options, such as [-font] [-geometry] [-fg] [-bg] ..., plus:
-nice nice_value
The nice value it should run at. Default is 5.
-count iterations
The number of times it should update the display. Default is forever.
-interval seconds
the interval in between updates. Default is 1 second. -filltype Specify the method xsysinfo should use to fill the bars. Available options include grayscale, color, tile, stipple, or auto. Auto automatically chooses between tiling, grayscale, and colour, depending on your display type. Auto is the default.
-colors
Specify the colors used to draw the bars. Colors are specified in left-to-right order, separated by commas. A single dot can be used to specify the default color at that position. Up to ten colors may be specified. Defaults are used for the leftmost colors if less than ten are specified.

Notes

FreeBSD-2.0 or above is required.

See Also

xcpustate, xperfmon, xload, xmeter, renice, top

Authors

X-related sources are from xcpustate-2.1 written by jdd@cdf.toronto.edu (John DiMarco), Mark.Moraes@deshaw.com (Mark Moraes). Special modified for FreeBSD by jdli@csie.nctu.edu.tw (Jian-Da Li)

Bugs

I wrote this for my personal use initially. I know nothing about the X-programming and kvm-programming, so this is my first try. :) It is NOT optimized, and maybe buggy somewhere. :) Maybe someone should make it cleaner, smaller, and faster.

Xsysinfo will initially display nonsensical data, for one second, regardless of the specified interval.


Table of Contents