{"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

    \n
  1. CPU \u4f7f\u7528\u7387<\/li>\n
  2. \u5185\u5b58\u9875\u9762\u548c\u4f7f\u7528\u7387<\/li>\n
  3. \u7f51\u7edc I\/O \u548c\u4f20\u8f93\u7edf\u8ba1<\/li>\n
  4. \u8fdb\u7a0b\u521b\u5efa\u6d3b\u52a8<\/li>\n
  5. \u6240\u6709\u7684\u5757\u8bbe\u5907\u6d3b\u52a8<\/li>\n
  6. \u6bcf\u79d2\u4e2d\u65ad\u6570\u7b49\u7b49<\/li>\n<\/ol>\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

    sysstat \u5305<\/strong><\/div>\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

      \n
    1. sar<\/span>\uff1a\u663e\u793a\u6570\u636e<\/li>\n
    2. sa1<\/span> \u548c sa2<\/span>\uff1a\u6536\u96c6\u548c\u4fdd\u5b58\u6570\u636e\u7528\u4e8e\u4ee5\u540e\u5206\u6790\u3002sa2<\/span> shell \u811a\u672c\u5728 \/var\/log\/sa<\/span> \u76ee\u5f55\u4e2d\u6bcf\u65e5\u5199\u5165\u4e00\u4e2a\u62a5\u544a\u3002sa1<\/span> shell \u811a\u672c\u5c06\u6bcf\u65e5\u7684\u7cfb\u7edf\u6d3b\u52a8\u4fe1\u606f\u4ee5\u4e8c\u8fdb\u5236\u6570\u636e\u7684\u5f62\u5f0f\u5199\u5165\u5230\u6587\u4ef6\u4e2d\u3002<\/li>\n
    3. sadc \u2014\u2014 \u7cfb\u7edf\u6d3b\u52a8\u6570\u636e\u6536\u96c6\u5668\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539 sa1<\/span> \u548c sa2<\/span> \u811a\u672c\u53bb\u914d\u7f6e\u5404\u79cd\u9009\u9879\u3002\u5b83\u4eec\u4f4d\u4e8e\u4ee5\u4e0b\u7684\u76ee\u5f55\uff1a\n