freebsd-nq/contrib/top/layout.h
Allan Jude 1dbfa4b530 Add ZFS compressed ARC stats to top(1)
Provides:
amount of compressed data
logical size of compressed data (how much it would have taken uncompressed)
compression ratio (logical size : total ARC size)
Overhead (space consumed for compression headers)

Example output:
ARC: 31G Total, 18G MFU, 9067M MRU, 2236K Anon, 615M Header, 2947M Other
     25G Compressed, 54G Uncompressed, 1.76:1 Ratio, 2265M Overhead

Reviewed by:	jpaetzel, smh, imp, jhb (previous version)
MFC after:	2 week
Relnotes:	yes
Sponsored by:	ScaleEngine Inc.
Differential Revision:	https://reviews.freebsd.org/D9829
2017-03-17 00:46:50 +00:00

36 lines
999 B
C

/*
* Top - a top users display for Berkeley Unix
*
* This file defines the locations on tne screen for various parts of the
* display. These definitions are used by the routines in "display.c" for
* cursor addressing.
*
* $FreeBSD$
*/
extern int x_lastpid; /* 10 */
extern int y_lastpid; /* 0 */
extern int x_loadave; /* 33 */
extern int x_loadave_nompid; /* 15 */
extern int y_loadave; /* 0 */
extern int x_procstate; /* 0 */
extern int y_procstate; /* 1 */
extern int x_brkdn; /* 15 */
extern int y_brkdn; /* 1 */
extern int x_mem; /* 5 */
extern int y_mem; /* 3 */
extern int x_arc; /* 5 */
extern int y_arc; /* 4 */
extern int x_carc; /* 5 */
extern int y_carc; /* 5 */
extern int x_swap; /* 6 */
extern int y_swap; /* 4 */
extern int y_message; /* 5 */
extern int x_header; /* 0 */
extern int y_header; /* 6 */
extern int x_idlecursor; /* 0 */
extern int y_idlecursor; /* 5 */
extern int y_procs; /* 7 */
extern int y_cpustates; /* 2 */