r option in the sar command is used to generate memory usage report. $ sar -f /tmp/data 3) Generating Memory Usage Report Now use “ sar -f ” to display the reports. To save the sar command output to a file, use -o option, example is shown below $ sar 2 5 -o /tmp/data > /dev/null 2>&1 If the %I/O wait is more than zero for a longer period of time then we can consider there is some bottleneck in I/O system (Hard disk or Network ) 2) Saving sar command output to a file To generate the CPU report 5 times every 2 seconds, run 1) Generating CPU Report on the Fly 5 times every 2 seconds Without any further delay, let’s deep dive into examples of sar command and see how the reports are generated. $ cat /etc/cron.d/sysstatīelow is the default config file of sysstat (sar command) on RHEL systems.ĭefault Configuartion of sysstat on Ubuntu 22.04/20.04 $ cat /etc/default/sysstat On Ubuntu 22.04/20.04, following cron tab is responsible for generating the report every 10 minutes. On RHEL 8/ RHEL 9, following systemd file is responsible for collecting and generating reports. Once the sysstat service started then sar will start collecting the data every 10 minutes and generate its report daily.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |