{"id":96551,"date":"2024-05-27T15:03:10","date_gmt":"2024-05-27T07:03:10","guid":{"rendered":"https:\/\/gulass.cn\/?p=96551"},"modified":"2024-05-27T15:03:10","modified_gmt":"2024-05-27T07:03:10","slug":"sar-ksar-bottleneck","status":"publish","type":"post","link":"https:\/\/gulass.cn\/sar-ksar-bottleneck.html","title":{"rendered":"\u7528 sar \u5de5\u5177\u68c0\u6d4b\u7cfb\u7edf\u6027\u80fd\u74f6\u9888"},"content":{"rendered":"
sar<\/span> \u547d\u4ee4\u7528\u7528\u6536\u96c6\u3001\u62a5\u544a\u3001\u6216\u8005\u4fdd\u5b58 UNIX \/ Linux \u7cfb\u7edf\u7684\u6d3b\u52a8\u4fe1\u606f\u3002\u5b83\u4fdd\u5b58\u9009\u62e9\u7684\u8ba1\u6570\u5668\u5230\u64cd\u4f5c\u7cfb\u7edf\u7684 \/var\/log\/sa\/sadd<\/span> \u6587\u4ef6\u4e2d\u3002\u4ece\u6536\u96c6\u7684\u6570\u636e\u4e2d\uff0c\u4f60\u53ef\u4ee5\u5f97\u5230\u8bb8\u591a\u5173\u4e8e\u4f60\u7684\u670d\u52a1\u5668\u7684\u4fe1\u606f\uff1a<\/p>\n sar<\/span> \u547d\u4ee4\u7684\u8f93\u51fa\u80fd\u591f\u7528\u4e8e\u8bc6\u522b\u670d\u52a1\u5668\u74f6\u9888\u3002\u4f46\u662f\uff0c\u5206\u6790 sar<\/span> \u547d\u4ee4\u63d0\u4f9b\u7684\u4fe1\u606f\u53ef\u80fd\u6bd4\u8f83\u56f0\u96be\uff0c\u6240\u4ee5\u8981\u4f7f\u7528 kSar \u5de5\u5177\u3002kSar \u5de5\u5177\u53ef\u4ee5\u5c06 sar<\/span> \u547d\u4ee4\u7684\u8f93\u51fa\u7ed8\u5236\u6210\u57fa\u4e8e\u65f6\u95f4\u5468\u671f\u7684\u3001\u6613\u4e8e\u7406\u89e3\u7684\u56fe\u8868\u3002<\/p>\n sar<\/span>\u3001sa1<\/span>\u3001\u548c sa2<\/span> \u547d\u4ee4\u90fd\u662f sysstat \u5305\u7684\u4e00\u90e8\u5206\u3002\u5b83\u662f Linux \u5305\u542b\u7684\u6027\u80fd\u76d1\u89c6\u5de5\u5177\u96c6\u5408\u3002<\/p>\n \u5728\u4e00\u4e2a\u57fa\u4e8e CentOS\/RHEL \u7684\u7cfb\u7edf\u4e0a\uff0c\u8f93\u5165\u5982\u4e0b\u7684 yum \u547d\u4ee4<\/a>[1]<\/span> \u53bb\u5b89\u88c5 sysstat\uff1a<\/p>\n \u793a\u4f8b\u8f93\u51fa\u5982\u4e0b\uff1a<\/p>\n \u7f16\u8f91 \/etc\/sysconfig\/sysstat<\/span> \u6587\u4ef6\u53bb\u6307\u5b9a\u65e5\u5fd7\u6587\u4ef6\u4fdd\u5b58\u591a\u5c11\u5929\uff08\u6700\u957f\u4e3a\u4e00\u4e2a\u6708\uff09\uff1a<\/p>\n \u793a\u4f8b\u8f93\u51fa\u5982\u4e0b \uff1a<\/p>\n \u4fdd\u5b58\u5e76\u5173\u95ed\u8fd9\u4e2a\u6587\u4ef6\u3002<\/p>\n \u9ed8\u8ba4\u7684 cron \u4f5c\u4e1a\u4f4d\u4e8e<\/a>[2]<\/span> \/etc\/cron.d\/sysstat<\/span>\uff1a<\/p>\n \u793a\u4f8b\u8f93\u51fa\u5982\u4e0b\uff1a<\/p>\n \u4f7f\u7528\u4e00\u4e2a\u6587\u672c\u7f16\u8f91\u5668\u53bb\u7f16\u8f91 \/etc\/cron.d\/sysstat<\/span> \u6587\u4ef6\uff0c\u6bd4\u5982\u4f7f\u7528 vim<\/span> \u547d\u4ee4\uff0c\u8f93\u5165\u5982\u4e0b\uff1a<\/p>\n \u50cf\u4e0b\u9762\u7684\u793a\u4f8b\u90a3\u6837\u66f4\u65b0\u8fd9\u4e2a\u6587\u4ef6\uff0c\u4ee5\u8bb0\u5f55\u6240\u6709\u7684\u786c\u76d8\u7edf\u8ba1\u6570\u636e\uff08-d<\/span> \u9009\u9879\u5f3a\u5236\u8bb0\u5f55\u6bcf\u4e2a\u5757\u8bbe\u5907\u7684\u7edf\u8ba1\u6570\u636e\uff0c\u800c -I<\/span> \u9009\u9879\u5f3a\u5236\u8bb0\u5f55\u6240\u6709\u7cfb\u7edf\u4e2d\u65ad\u7684\u7edf\u8ba1\u6570\u636e\uff09\uff1a<\/p>\n \u5728 CentOS\/RHEL 7.x \u7cfb\u7edf\u4e0a\u4f60\u9700\u8981\u4f20\u9012 -S DISK<\/span> \u9009\u9879\u53bb\u6536\u96c6\u5757\u8bbe\u5907\u7684\u6570\u636e\u3002\u4f20\u9012 -S XALL<\/span> \u9009\u9879\u53bb\u91c7\u96c6\u5982\u4e0b\u6240\u5217\u7684\u6570\u636e\uff1a<\/p>\n \u4fdd\u5b58\u5e76\u5173\u95ed\u8fd9\u4e2a\u6587\u4ef6\u3002<\/p>\n \u8f93\u5165\u5982\u4e0b\u547d\u4ee4:<\/p>\n \u793a\u4f8b\u8f93\u51fa\u5982\u4e0b\uff1a<\/p>\n \u5bf9\u4e8e CentOS\/RHEL 7.x\uff0c\u8fd0\u884c\u5982\u4e0b\u7684\u547d\u4ee4\uff1a<\/p>\n \u793a\u4f8b\u8f93\u51fa\uff1a<\/p>\n \u4f7f\u7528 sar<\/span> \u547d\u4ee4\u53bb\u663e\u793a\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u9009\u5b9a\u7684\u7d2f\u79ef\u6d3b\u52a8\u8ba1\u6570\u5668\u8f93\u51fa\u3002\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u8fd0\u884c sar<\/span> \u547d\u4ee4\u884c\uff0c\u53bb\u5b9e\u65f6\u83b7\u5f97 CPU \u4f7f\u7528\u7387\u7684\u62a5\u544a\uff1a<\/p>\n \u793a\u4f8b\u8f93\u51fa\uff1a<\/p>\n \u5176\u4e2d\uff1a<\/p>\n \u67e5\u770b\u8fdb\u7a0b\u521b\u5efa\u7684\u7edf\u8ba1\u6570\u636e\uff0c\u8f93\u5165\uff1a<\/p>\n \u67e5\u770b I\/O \u548c\u4f20\u8f93\u7387\u7edf\u8ba1\u6570\u636e\uff0c\u8f93\u5165\uff1a<\/p>\n \u67e5\u770b\u5185\u5b58\u9875\u9762\u7edf\u8ba1\u6570\u636e\uff0c\u8f93\u5165\uff1a<\/p>\n \u67e5\u770b\u5757\u8bbe\u5907\u7edf\u8ba1\u6570\u636e\uff0c\u8f93\u5165\uff1a<\/p>\n \u67e5\u770b\u6240\u6709\u4e2d\u65ad\u7684\u7edf\u8ba1\u6570\u636e\uff0c\u8f93\u5165\uff1a<\/p>\n \u67e5\u770b\u7f51\u7edc\u8bbe\u5907\u7279\u5b9a\u7684\u7edf\u8ba1\u6570\u636e\uff0c\u8f93\u5165\uff1a<\/p>\n \u67e5\u770b CPU \u7279\u5b9a\u7684\u7edf\u8ba1\u6570\u636e\uff0c\u8f93\u5165\uff1a<\/p>\n \u67e5\u770b\u961f\u5217\u957f\u5ea6\u548c\u5e73\u5747\u8d1f\u8f7d\u7684\u7edf\u8ba1\u6570\u636e\uff0c\u8f93\u5165\uff1a<\/p>\n \u67e5\u770b\u5185\u5b58\u548c\u4ea4\u6362\u7a7a\u95f4\u7684\u4f7f\u7528\u7edf\u8ba1\u6570\u636e\uff0c\u8f93\u5165\uff1a<\/p>\n \u67e5\u770b inode\u3001\u6587\u4ef6\u3001\u548c\u5176\u5b83\u5185\u6838\u8868\u7edf\u8ba1\u6570\u636e\u72b6\u6001\uff0c\u8f93\u5165\uff1a<\/p>\n \u67e5\u770b\u7cfb\u7edf\u5207\u6362\u6d3b\u52a8\u7edf\u8ba1\u6570\u636e\uff0c\u8f93\u5165\uff1a<\/p>\n \u67e5\u770b\u4ea4\u6362\u7edf\u8ba1\u6570\u636e\uff0c\u8f93\u5165\uff1a<\/p>\n \u67e5\u770b\u4e00\u4e2a PID \u4e3a 3256 \u7684 Apache \u8fdb\u7a0b\uff0c\u8f93\u5165\uff1a<\/p>\n sar<\/span> \u548c sadf<\/span> \u63d0\u4f9b\u4e86\u57fa\u4e8e\u547d\u4ee4\u884c\u754c\u9762\u7684\u8f93\u51fa\u3002\u8fd9\u79cd\u8f93\u51fa\u53ef\u80fd\u4f1a\u4f7f\u65b0\u624b\u7528\u6237\/\u7cfb\u7edf\u7ba1\u7406\u5458\u611f\u5230\u65e0\u4ece\u4e0b\u624b\u3002\u56e0\u6b64\uff0c\u4f60\u9700\u8981\u4f7f\u7528 kSar\uff0c\u5b83\u662f\u4e00\u4e2a\u56fe\u5f62\u5316\u663e\u793a\u4f60\u7684 sar<\/span> \u6570\u636e\u7684 Java \u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u4e5f\u5141\u8bb8\u4f60\u4ee5 PDF\/JPG\/PNG\/CSV \u683c\u5f0f\u5bfc\u51fa\u6570\u636e\u3002\u4f60\u53ef\u4ee5\u7528\u4e09\u79cd\u65b9\u5f0f\u53bb\u52a0\u8f7d\u6570\u636e\uff1a\u672c\u5730\u6587\u4ef6\u3001\u8fd0\u884c\u672c\u5730\u547d\u4ee4\u3001\u4ee5\u53ca\u901a\u8fc7 SSH \u8fdc\u7a0b\u8fd0\u884c\u7684\u547d\u4ee4\u3002kSar \u53ef\u4ee5\u5904\u7406\u4e0b\u5217\u64cd\u4f5c\u7cfb\u7edf\u7684 sar<\/span> \u8f93\u51fa\uff1a<\/p>\n \u8bbf\u95ee \u5b98\u65b9<\/a>[3]<\/span> \u7f51\u7ad9\u53bb\u83b7\u5f97\u6700\u65b0\u7248\u672c\u7684\u6e90\u4ee3\u7801\u3002\u4f7f\u7528 wget<\/a>[4]<\/span> \u53bb\u4e0b\u8f7d\u6e90\u4ee3\u7801\uff0c\u8f93\u5165\uff1a<\/p>\n \u9996\u5148\u8981\u786e\u4fdd\u4f60\u7684\u673a\u5668\u4e0a JAVA jdk<\/a>[5]<\/span> \u5df2\u5b89\u88c5\u5e76\u80fd\u591f\u6b63\u5e38\u5de5\u4f5c\u3002\u8f93\u5165\u4e0b\u5217\u547d\u4ee4\u53bb\u542f\u52a8 kSar\uff1a<\/p>\n <\/p>\n kSar welcome screen<\/em><\/p>\n \u63a5\u4e0b\u6765\u4f60\u5c06\u770b\u5230 kSar \u7684\u4e3b\u7a97\u53e3\uff0c\u548c\u6709\u4e24\u4e2a\u83dc\u5355\u7684\u9762\u677f\u3002<\/p>\n <\/p>\n kSar - the main window<\/em><\/p>\n \u5de6\u4fa7\u6709\u4e00\u4e2a\u5217\u8868\uff0c\u662f kSar \u6839\u636e\u6570\u636e\u5df2\u7ecf\u89e3\u6790\u51fa\u7684\u53ef\u7528\u56fe\u8868\u7684\u5217\u8868\u3002\u53f3\u4fa7\u7a97\u53e3\u5c06\u5c55\u793a\u4f60\u9009\u5b9a\u7684\u56fe\u8868\u3002<\/p>\n \u9996\u5148\uff0c\u4f60\u9700\u8981\u4ece\u547d\u540d\u4e3a server1 \u7684\u670d\u52a1\u5668\u4e0a\u91c7\u96c6 sar<\/span> \u547d\u4ee4\u7684\u7edf\u8ba1\u6570\u636e\u3002\u8f93\u5165\u5982\u4e0b\u7684\u547d\u4ee4\uff1a<\/p>\n \u63a5\u4e0b\u6765\uff0c\u4f7f\u7528 scp<\/span> \u547d\u4ee4\u4ece\u672c\u5730\u684c\u9762\u62f7\u8d1d\u5230\u8fdc\u7a0b\u7535\u8111\u4e0a\uff1a<\/p>\n \u5207\u6362\u5230 kSar \u7a97\u53e3\uff0c\u70b9\u51fb \u201cData\u201d > \u201cLoad data from text file\u201d > \u4ece \/tmp\/<\/span> \u4e2d\u9009\u62e9 sar.data.txt<\/span>> \u70b9\u51fb \u201cOpen\u201d \u6309\u94ae\u3002<\/p>\n \u73b0\u5728\uff0c\u56fe\u8868\u7c7b\u578b\u6811\u5df2\u7ecf\u51fa\u73b0\u5728\u5de6\u4fa7\u9762\u677f\u4e2d\u5e76\u9009\u5b9a\u4e86\u4e00\u4e2a\u56fe\u5f62\uff1a<\/p>\n <\/p>\n Linux kSar Processes for server1<\/em><\/p>\n <\/p>\n Linux Disk I\/O Stats Using kSar<\/em><\/p>\n <\/p>\n Linux Memory paging and its utilization stats<\/em><\/p>\n \u653e\u5927\u548c\u7f29\u5c0f<\/strong> \u4f7f\u7528 sar<\/span> \u547d\u4ee4\u548c kSar \u5de5\u5177\uff0c\u53ef\u4ee5\u5f97\u5230\u5185\u5b58\u3001CPU\u3001\u4ee5\u53ca\u5176\u5b83\u5b50\u7cfb\u7edf\u7684\u8be6\u7ec6\u5feb\u7167\u3002\u4f8b\u5982\uff0c\u5982\u679c CPU \u4f7f\u7528\u7387\u5728\u4e00\u4e2a\u5f88\u957f\u7684\u65f6\u95f4\u5185\u6301\u7eed\u9ad8\u4e8e 80%\uff0c\u6709\u53ef\u80fd\u5c31\u662f\u51fa\u73b0\u4e86\u4e00\u4e2a CPU \u74f6\u9888\u3002\u4f7f\u7528 sar -x ALL<\/span> \u4f60\u53ef\u4ee5\u627e\u5230\u5927\u91cf\u6d88\u8017 CPU \u7684\u8fdb\u7a0b\u3002<\/p>\n mpstat \u547d\u4ee4<\/a>[6]<\/span> \u7684\u8f93\u51fa\uff08sysstat \u5305\u7684\u4e00\u90e8\u5206\uff09\u4e5f\u4f1a\u5e2e\u4f60\u53bb\u4e86\u89e3 CPU \u7684\u4f7f\u7528\u7387\u3002\u4f46\u4f60\u53ef\u4ee5\u4f7f\u7528 kSar \u5f88\u5bb9\u6613\u5730\u53bb\u5206\u6790\u8fd9\u4e9b\u4fe1\u606f\u3002<\/p>\n \u5bf9 CPU \u6267\u884c\u5982\u4e0b\u7684\u8c03\u6574\uff1a<\/p>\n isag<\/span> \u547d\u4ee4\u56fe\u5f62\u5316\u663e\u793a\u4e86\u4ee5\u524d\u8fd0\u884c sar<\/span> \u547d\u4ee4\u65f6\u5b58\u50a8\u5728\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\u7684\u7cfb\u7edf\u6d3b\u52a8\u6570\u636e\u3002isag<\/span> \u547d\u4ee4\u5f15\u7528 sar<\/span> \u5e76\u63d0\u53d6\u51fa\u5b83\u7684\u6570\u636e\u6765\u7ed8\u5236\u56fe\u5f62\u3002\u4e0e kSar \u76f8\u6bd4\uff0cisag<\/span> \u7684\u9009\u9879\u6bd4\u8f83\u5c11\u3002<\/p>\n <\/p>\n Fig.06: isag CPU utilization graphs<\/em><\/p>\n via: https:\/\/www.cyberciti.biz\/tips\/identifying-linux-bottlenecks-sar-graphs-with-ksar.html<\/a><\/p>\n \u4f5c\u8005\uff1aVivek Gite<\/a>[16]<\/span> \u8bd1\u8005\uff1aqhwdw<\/a>[17]<\/span> \u6821\u5bf9\uff1awxy<\/a>[18]<\/span><\/p>\n \u672c\u6587\u7531 LCTT<\/a>[19]<\/span> \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a>[20]<\/span> \u8363\u8a89\u63a8\u51fa<\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-9398-1.html<\/a><\/p>\n\n
\n
\n
# yum install sysstat\r\n<\/pre>\n
Loaded plugins: downloadonly, fastestmirror, priorities,\r\n : protectbase, security\r\nLoading mirror speeds from cached hostfile\r\n * addons: mirror.cs.vt.edu\r\n * base: mirror.ash.fastserv.com\r\n * epel: serverbeach1.fedoraproject.org\r\n * extras: mirror.cogentco.com\r\n * updates: centos.mirror.nac.net\r\n0 packages excluded due to repository protections\r\nSetting up Install Process\r\nResolving Dependencies\r\n--> Running transaction check\r\n---> Package sysstat.x86_64 0:7.0.2-3.el5 set to be updated\r\n--> Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n====================================================================\r\n Package Arch Version Repository Size\r\n====================================================================\r\nInstalling:\r\n sysstat x86_64 7.0.2-3.el5 base 173 k\r\n\r\nTransaction Summary\r\n====================================================================\r\nInstall 1 Package(s)\r\nUpdate 0 Package(s)\r\nRemove 0 Package(s)\r\n\r\nTotal download size: 173 k\r\nIs this ok [y\/N]: y\r\nDownloading Packages:\r\nsysstat-7.0.2-3.el5.x86_64.rpm | 173 kB 00:00\r\nRunning rpm_check_debug\r\nRunning Transaction Test\r\nFinished Transaction Test\r\nTransaction Test Succeeded\r\nRunning Transaction\r\n Installing : sysstat 1\/1\r\n\r\nInstalled:\r\n sysstat.x86_64 0:7.0.2-3.el5\r\n\r\nComplete!\r\n<\/pre>\n
# vi \/etc\/sysconfig\/sysstat\r\n<\/pre>\n
# keep log for 28 days\r\n# the default is 7\r\nHISTORY=28\r\n<\/pre>\n
# cat \/etc\/cron.d\/sysstat\r\n<\/pre>\n
# run system activity accounting tool every 10 minutes\r\n*\/10 * * * * root \/usr\/lib64\/sa\/sa1 1 1\r\n# generate a daily summary of process accounting at 23:53\r\n53 23 * * * root \/usr\/lib64\/sa\/sa2 -A\r\n<\/pre>\n
# vi \/etc\/cron.d\/sysstat\r\n<\/pre>\n
# run system activity accounting tool every 10 minutes\r\n*\/10 * * * * root \/usr\/lib64\/sa\/sa1 -I -d 1 1\r\n# generate a daily summary of process accounting at 23:53\r\n53 23 * * * root \/usr\/lib64\/sa\/sa2 -A \r\n<\/pre>\n
\n
# Run system activity accounting tool every 10 minutes\r\n*\/10 * * * * root \/usr\/lib64\/sa\/sa1 -S DISK 1 1\r\n# 0 * * * * root \/usr\/lib64\/sa\/sa1 600 6 &\r\n# Generate a daily summary of process accounting at 23:53\r\n53 23 * * * root \/usr\/lib64\/sa\/sa2 -A\r\n# Run system activity accounting tool every 10 minutes\r\n<\/pre>\n
chkconfig sysstat on\r\nservice sysstat start\r\n<\/pre>\n
Calling the system activity data collector (sadc):\r\n<\/pre>\n
# systemctl enable sysstat\r\n# systemctl start sysstat.service\r\n# systemctl status sysstat.service \r\n<\/pre>\n
\u25cf sysstat.service - Resets System Activity Logs\r\n Loaded: loaded (\/usr\/lib\/systemd\/system\/sysstat.service; enabled; vendor preset: enabled)\r\n Active: active (exited) since Sat 2018-01-06 16:33:19 IST; 3s ago\r\n Process: 28297 ExecStart=\/usr\/lib64\/sa\/sa1 --boot (code=exited, status=0\/SUCCESS)\r\n Main PID: 28297 (code=exited, status=0\/SUCCESS)\r\n\r\nJan 06 16:33:19 centos7-box systemd[1]: Starting Resets System Activity Logs...\r\nJan 06 16:33:19 centos7-box systemd[1]: Started Resets System Activity Logs.\r\n<\/pre>\n
# sar -u 3 10\r\n<\/pre>\n
Linux 2.6.18-164.2.1.el5 (www-03.nixcraft.in) 12\/14\/2009\r\n\r\n09:49:47 PM CPU %user %nice %system %iowait %steal %idle\r\n09:49:50 PM all 5.66 0.00 1.22 0.04 0.00 93.08\r\n09:49:53 PM all 12.29 0.00 1.93 0.04 0.00 85.74\r\n09:49:56 PM all 9.30 0.00 1.61 0.00 0.00 89.10\r\n09:49:59 PM all 10.86 0.00 1.51 0.04 0.00 87.58\r\n09:50:02 PM all 14.21 0.00 3.27 0.04 0.00 82.47\r\n09:50:05 PM all 13.98 0.00 4.04 0.04 0.00 81.93\r\n09:50:08 PM all 6.60 6.89 1.26 0.00 0.00 85.25\r\n09:50:11 PM all 7.25 0.00 1.55 0.04 0.00 91.15\r\n09:50:14 PM all 6.61 0.00 1.09 0.00 0.00 92.31\r\n09:50:17 PM all 5.71 0.00 0.96 0.00 0.00 93.33\r\nAverage: all 9.24 0.69 1.84 0.03 0.00 88.20\r\n<\/pre>\n
\n
# sar -c 3 10\r\n<\/pre>\n
# sar -b 3 10\r\n<\/pre>\n
# sar -B 3 10\r\n<\/pre>\n
# sar -d 3 10\r\n<\/pre>\n
# sar -I XALL 3 10\r\n<\/pre>\n
# sar -n DEV 3 10\r\n# sar -n EDEV 3 10\r\n<\/pre>\n
# sar -P ALL\r\n# Only 1st CPU stats\r\n# sar -P 1 3 10 \r\n<\/pre>\n
# sar -q 3 10\r\n<\/pre>\n
# sar -r 3 10\r\n# sar -R 3 10\r\n<\/pre>\n
# sar -v 3 10\r\n<\/pre>\n
# sar -w 3 10\r\n<\/pre>\n
# sar -W 3 10\r\n<\/pre>\n
# sar -x 3256 3 10\r\n<\/pre>\n
\n
$ wget https:\/\/github.com\/vlsi\/ksar\/releases\/download\/v5.2.4-snapshot-652bf16\/ksar-5.2.4-SNAPSHOT-all.jar\r\n<\/pre>\n
$ java -jar ksar-5.2.4-SNAPSHOT-all.jar\r\n<\/pre>\n
[ server1 ]# LC_ALL=C sar -A > \/tmp\/sar.data.txt\r\n<\/pre>\n
[ desktop ]$ scp user@server1.nixcraft.com:\/tmp\/sar.data.txt \/tmp\/\r\n<\/pre>\n
\n\u901a\u8fc7\u79fb\u52a8\u4f60\u53ef\u4ee5\u4ea4\u4e92\u5f0f\u7f29\u653e\u56fe\u50cf\u7684\u4e00\u90e8\u5206\u3002\u5728\u8981\u7f29\u653e\u7684\u56fe\u50cf\u7684\u5de6\u4e0a\u89d2\u70b9\u51fb\u5e76\u6309\u4e0b\u9f20\u6807\uff0c\u79fb\u52a8\u5230\u8981\u7f29\u653e\u533a\u57df\u7684\u53f3\u4e0b\u89d2\uff0c\u53ef\u4ee5\u9009\u5b9a\u8981\u7f29\u653e\u7684\u533a\u57df\u3002\u8fd4\u56de\u5230\u672a\u7f29\u653e\u72b6\u6001\uff0c\u70b9\u51fb\u5e76\u62d6\u52a8\u9f20\u6807\u5230\u9664\u4e86\u53f3\u4e0b\u89d2\u5916\u7684\u4efb\u610f\u4f4d\u7f6e\uff0c\u4f60\u4e5f\u53ef\u4ee5\u70b9\u51fb\u5e76\u9009\u62e9 zoom \u9009\u9879\u3002
\n\u4e86\u89e3 kSar \u56fe\u50cf\u548c sar \u6570\u636e<\/strong>
\n\u6211\u5f3a\u70c8\u5efa\u8bae\u4f60\u53bb\u9605\u8bfb sar<\/span> \u548c sadf<\/span> \u547d\u4ee4\u7684 man \u9875\u9762\uff1a<\/p>\n$ man sar\r\n$ man sadf\r\n<\/pre>\n
\n
\n\n