System activity reports can be generated from a logfile by using the atopsar command. Use the cat command to display the data held in /proc/cpuinfo. By default, the daily logfiles are preserved for 28 days. You can then import this data for analysis, using either a spreadsheet program or a custom tool like sargraph.Īn alternative is to use atop which is able to store raw counters in a file for long-term analysis on system level and process level. It provides a snapshot of the current processes along with detailed information like username, user id, cpu usage, memory usage, process start date and time command name etc. Sysstat will collect background CPU usage data every minute, saving it to /var/log/sysstat/. You can generate a real-time report with the following command: sar -u 1 3 You can modify this behavior by editing the sysstat crontab at /etc/cron.d/sysstat, or by changing rotation settings in the sysstat settings at /etc/sysstat/sysstat. The -d option can be used to display only the device utilization information. 4) In this case, the device report is displayed by the command iostat -d. Selecting the -c option shows us a summary of our CPU’s statistics. Next, enable it by editing /etc/default/sysstat and setting “ENABLED” to true.ĭoing so monitors your system and generates a report every 10 minutes, rotating them out after a week. 3) iostat -c command: This command shows CPU statistics only.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |