Areas of monitoring and tuning: CPU, MEMORY, DISKS, SWAP, NETWORK, and APPLICATIONS
Benefits to the system can be realized by hardware such as graphics cards and some user settings, but these are not
going to benefit a server, but rather a workstation and one specific user.
commands for system status
- /usr/bin/chkstat
- /usr/bin/cifsiostat
- /usr/bin/db48_stat
- /usr/bin/db_stat
- /usr/bin/gnome-power-statistics
- /usr/bin/htdb_stat
- /usr/bin/htstat
- /usr/bin/iostat
- /usr/bin/log_server_status2
- /usr/bin/lpstat
- /usr/bin/mailstat
- /usr/bin/mpstat
- /usr/bin/mpt-status
- /usr/bin/nfsiostat-sysstat
- /usr/bin/nmbstatus
- /usr/bin/numastat
- /usr/bin/pidstat
- /usr/bin/prtstat
- /usr/bin/rsyncstats
- /usr/bin/sg_get_lba_status
- /usr/bin/smbstatus
- /usr/bin/snmpnetstat
- /usr/bin/snmpstatus
- /usr/bin/stat
- /usr/bin/states
- /usr/bin/tracker-stats
- /usr/bin/vmstat
- /usr/bin/xpstat
performance and tuning overview
- CPU/ALU
- how does it work?
- hardware types
- software and other controls
- estimating size and use
- metrics to monitor
- reading log files
- monitor via crontab
- scripting options
- distributing load
- Memory
- how does it work?
- hardware types
- software and other controls
- estimating size and use
- metrics to monitor
- reading log files
- monitor via crontab
- scripting options
- distributing load
- Disks
- how does it work?
- hardware types
- software and other controls
- estimating size and use
- metrics to monitor
- reading log files
- monitor via crontab
- scripting options
- distributing load
- Swap
- how does it work?
- hardware types
- software and other controls
- estimating size and use
- metrics to monitor
- reading log files
- monitor via crontab
- scripting options
- distributing load
- Network
- how does it work?
- hardware types
- software and other controls
- estimating size and use
- metrics to monitor
- reading log files
- monitor via crontab
- scripting options
- distributing load
- Applications
- how does it work?
- hardware types
- software and other controls
- estimating size and use
- metrics to monitor
- reading log files
- monitor via crontab
- scripting options
- distributing load
Gnu help and man page summaries of commands
############################################################################
/usr/bin/chkstat
############################################################################
chkstat --help
Usage: a) chkstat [OPTIONS] ...
b) chkstat --system [OPTIONS] ...
Options:
--set apply changes
--warn only tell which changes are needed
--noheader don't print intro message
--fscaps force use of fscaps
--no-fscaps disable use of fscaps
--system system mode, act according to /etc/permissions/security
--level LEVEL force use LEVEL (only with --system)
--examine FILE apply to specified file only
--files FILELIST read list of files to apply from FILELIST
--root DIR check files relative to DIR
------------------------------------------------
john@LinuxMeister
------------------------------------------------
--> man chkstat | col -b | grep -E -v '(^$|^#)'
CHKSTAT(8) Tool to check and set file permissions CHKSTAT(8)
NAME - chkstat - Tool to check and set file permissions
SYNOPSIS - chkstat [OPTIONS]
chkstat --system [OPTIONS]
DESCRIPTION
The program /usr/bin/chkstat is a tool to check and set file permissions.
chkstat can either operate in system mode or on individually specified permission files.
In system mode /etc/permissions/security determines which level to use and whether to actually apply permission changes.
OPTIONS
--system - Run in system mode. Parses /etc/sysconfig/security to determine which security level to use (PERMISSION_SECURITY)
and whether to set or merely warn about permission changes (CHECK_PERMISSIONS).
In system mode non-option arguments refer to files. Ie just as if the --examine option was specified for them.
--set Actually apply the file permissions. The default is to check and warn only unless in system mode
where CHECK_PERMISSIONS specifies the default behavior.
--warn Opposite of --set, ie warn only but don't make actual changes
--noheader - Omit printing the output header lines.
--fscaps, --no-fscaps - Enable or disable use of fscaps.
In system mode the setting of PERMISSIONS_FSCAPS determines whether fscaps are on or off when this option is not set.
--examine file - Check permissions for this file instead of all files listed in the permissions files.
--files filelist - Check permissions for the files listed in filelist and instead of all files listed in the permissions files.
--root directory - Check files relative to the specified directory.
EXAMPLES
chkstat --set /etc/permissions /etc/permissions.secure
parses the files /etc/permissions and /etc/permissions and sets the access mode and the user- and group memberships for each file listed.
chkstat --system /bin/ping
Run in system mode and only correct permissions of /bin/ping
SEE ALSO permissions(5)
COPYRIGHT 1996-2003 SuSE Linux AG, Nuernberg, Germany. 2008-2010 SUSE LINUX Products GmbH
AUTHORS Reinhold Sojer, Ruediger Oertel, Michael Schroeder, Ludwig Nussel
Useful changes and additions by Tobias Burnus 3rd Berkeley Distribution
############################################################################
/usr/bin/cifsiostat
############################################################################
--> cifsiostat --help
Usage: cifsiostat [ options ] [ [ ] ]
Options are:
[ -h ] [ -k | -m ] [ -t ] [ -V ]
------------------------------------------------
john@LinuxMeister
------------------------------------------------
--> man cifsiostat | col -b | grep -E -v '(^$|^#)'
CIFSIOSTAT(1) Linux User's Manual CIFSIOSTAT(1)
NAME: cifsiostat - Report CIFS statistics.
SYNOPSIS: cifsiostat [ -h ] [ -k | -m ] [ -t ] [ -V ] [ interval [ count ] ]
DESCRIPTION
The cifsiostat command displays statistics about read and write operations on CIFS filesystems.
The interval parameter specifies the amount of time in seconds between each report.
The first report contains statistics for the time since system startup (boot).
Each subsequent report contains statistics collected during the interval since the previous report.
A report consists of a CIFS header row followed by a line of statistics for each CIFS filesystem that is mounted.
The count parameter can be specified in conjunction with the interval parameter.
If the count parameter is specified, the value of count determines the number of reports generated at interval seconds apart.
If the interval parameter is specified without the count parameter, the cifsiostat command generates reports continuously.
REPORT
The CIFS report provides statistics for each mounted CIFS filesystem. The report shows the following fields:
Filesystem: This columns shows the mount point of the CIFS filesystem.
rB/s - (rkB/s, rMB/s) Indicate the average number of bytes (kilobytes, megabytes) read per second.
wB/s - (wkB/s, wMB/s) Indicate the average number of bytes (kilobytes, megabytes) written per second.
rop/s - Indicate the number of 'read' operations that were issued to the filesystem per second.
wop/s - Indicate the number of 'write' operations that were issued to the filesystem per second.
fo/s - Indicate the number of open files per second.
fc/s - Indicate the number of closed files per second.
fd/s - Indicate the number of deleted files per second.
OPTIONS
-h Make the CIFS report easier to read by a human.
-k Display statistics in kilobytes per second.
-m Display statistics in megabytes per second.
-t Print the time for each report displayed. The timestamp format may depend on the value of S_TIME_FORMAT.
-V Print version number then exit.
ENVIRONMENT
The cifsiostat command takes into account the following environment variables: S_TIME_FORMAT
If this variable exists and its value is ISO then the current locale will be ignored when printing the date in the report header.
The nfsio-stat command will use the ISO 8601 format (YYYY-MM-DD) instead.
The timestamp displayed with option -t will also be compliant with ISO 8601 format.
BUG - /proc filesystem must be mounted for cifsiostat to work.
FILE - /proc/fs/cifs/Stats contains CIFS statistics.
AUTHORS Written by Ivana Varekova (varekova redhat.com) Maintained by Sebastien Godard (sysstat orange.fr)
SEE ALSO: sar(1), pidstat(1), mpstat(1), vmstat(8), iostat(1), nfsiostat(1)
http://pagesperso-orange.fr/sebastien.godard/
Linux JANUARY 2011 CIFSIOSTAT(1)
############################################################################
/usr/bin/db48_stat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/db_stat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/gnome-power-statistics
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/htdb_stat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/htstat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/iostat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/log_server_status2
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/lpstat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/mailstat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/mpstat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/mpt-status
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/nfsiostat-sysstat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/nmbstatus
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/numastat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/pidstat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/prtstat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/rsyncstats
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/sg_get_lba_status
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/smbstatus
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/snmpnetstat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/snmpstatus
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/stat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/states
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/tracker-stats
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/vmstat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
/usr/bin/xpstat
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
############################################################################
------------------------------------------------
john@LinuxMeister
------------------------------------------------
|