In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the use of the Sar command in Linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Linux common command sar command is the system running status statistics tool under Linux, which displays the specified operating system status counter to the standard output device.
Sar system running status Statistics tool
Supplementary note: the sar tool will sample the current state of the system, and then express the current running state of the system by calculating data and proportions. Its characteristic is that it can continuously sample the system and obtain a large number of sampling data. The sampled data and the results of the analysis can be stored in a file, and the system resources consumed when using it are very small.
Syntax sar (options) (parameters) option-A: display all report information;-b: display Icano rate;-B: display page feed status;-c: display process creation activity;-d: display the status of each block device;-e: set the end time of the display report;-f: extract the report from the specified file;-I: set the interval between status information refresh -P: report the status of each CPU;-R: display memory status;-u: display CPU utilization;-v: display the status of index nodes, files, and other kernel tables;-w: display swap partition status;-x: display the status of a given process. Parameter interval: interval for each report (seconds)
Times: the number of times the report is displayed.
The instance looks at the utilization of memory and swap space:
Sar-r Linux 2.4.20-8 (www.jsdig.com) 20130503 12:00:01 AM kbmemfree kbmemused% memused kbmemshrd kbbuffers kbcached 12:10:00 AM 240468 1048252 81.34 0 133724 485772 12:20:00 AM 240508 1048212 81.34 0134172 485600... 08:40:00 PM 934132 354588 27.51 0 26080 185364 Average: 324346 964374 74.83 096072 467559kbmemfree and kbmemused fields show the unused and used space of the memory, respectively, followed by the percentage of used space (the% memused field). The kbbuffers and kbcached fields show the buffer and system-wide data access in KB, respectively.
Observe the system components for 10 minutes and sort the data:
Sar-o temp 60 10 Thank you for reading this article carefully. I hope the article "what is the use of Sar commands in Linux" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
Editor to share with you what the html if browser version of the code, I believe that most people do not know much, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!
Wechat
About us
Contact us
Product review
car news
thenatureplanet
More Form oMedia:
AutoTimes.
Bestcoffee.
SL News.
Jarebook.
Coffee Hunters.
Sundaily.
Modezone.
NNB.
Coffee.
Game News.
FrontStreet.
GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.