-   Linux - Newbie (
-   -   linux performance tuning commands, uptime,top,mpstat,iostat,vmstat ,free,ping,Dstat T (

anish2good 07-16-2013 11:42 AM

linux performance tuning commands, uptime,top,mpstat,iostat,vmstat ,free,ping,Dstat T
linux performance tuning commands, uptime,top,mpstat,iostat,vmstat ,free,ping,Dstat Tutorial

uptime - Tell how long the system has been running.

uptime gives a one line display of the following information. The current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.

top provides an ongoing look at processor activity in real time. It displays a listing of the most CPU-intensive tasks on the system, and can provide an interactive interface for manipulating processes

The mpstat command writes to standard output activities for each available processor, processor 0 being the first one. Global average activities among all processors are also reported. The mpstat command can be used both on SMP and UP machines, but in the latter, only global average activities will be printed. If no activity has been selected, then the default report is the CPU utilization report.

iostat - The iostat command is used for monitoring system input/output device
loading by observing the time the devices are active in relation to
their average transfer rates.

vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity. The first report produced gives averages since the last reboot

free - display information about free and used memory on the system

ping : ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway

Dstat allows you to view all of your system resources instantly, you can eg. compare disk usage in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval)

szboardstretcher 07-16-2013 11:43 AM

You can also find all of this information in /proc/ if you are willing to parse the information.

anish2good 07-16-2013 02:00 PM


All times are GMT -5. The time now is 10:29 AM.