\u7b2c2\u7ae0 \u65b0\u624b\u5fc5\u987b\u638c\u63e1\u7684Linux\u547d\u4ee4<\/a>\u4e2d\u6709\u5bf9\u6b64\u7684\u89e3\u91ca<\/p>\n[root@linuxprobe ~]# free\r\n total used free shared buffers cached<\/span>\r\nMem: 5228872 669360 4559512 0 28060 266936\r\n-\/+ buffers\/cache: 374364 4854508\r\nSwap: 4194296 0 4194296\r\n[root@linuxprobe ~]# free -m\r\n total used free shared buffers cached\r\nMem: 5106 653 4452 0 27 260\r\n-\/+ buffers\/cache: 365 4740\r\nSwap: 4095 0 4095\r\n[root@linuxprobe ~]# free -g\r\n total used free shared buffers cached\r\nMem: 4 0 4 0 0 0\r\n-\/+ buffers\/cache: 0 4\r\nSwap: 3 0 3\r\n[root@linuxprobe ~]# \r\n<\/pre>\n\u5f88\u660e\u663e\u5185\u5b58\u5927\u5c0f\uff0c\u4f7f\u7528\u591a\u5c11\uff0c\u5269\u4f59\u591a\u5c11\uff0cbuffers\u548ccached\u591a\u5c11\uff0c\u4ee5\u53caswap\u60c5\u51b5\u4e00\u76ee\u4e86\u7136\uff0c\u4f7f\u7528\u53c2\u6570-m\/-g \u53ef\u4ee5\u6307\u5b9a\u5355\u4f4d<\/p>\n
\u67e5\u770bcpu\u76f8\u5173<\/strong><\/div>\nuptime<\/strong><\/span><\/div>\n[root@linuxprobe ~]# uptime\r\n 20:09:48 up 43 min, 3 users, load average: 0.35, 0.25, 0.11 \/\/\u7cfb\u7edf\u7684\u5e73\u5747\u8d1f\u8f7d\uff0c1\u5206\u949f\uff0c5\u5206\u949f\uff0c15\u5206\u949f <\/span> \r\n<\/pre>\ntop<\/strong><\/span><\/div>\n\u5b9e\u65f6\u76d1\u63a7\u7cfb\u7edf\u7684cpu\u548c\u5185\u5b58\uff0c\u9ed8\u8ba43s\u5237\u65b0\u4e00\u6b21<\/p>\n
[root@linuxprobe ~]# top\r\ntop - 20:15:41 up 49 min, 3 users, load average: 0.41, 0.38, 0.21\r\nTasks: 236 total, 1 running, 235 sleeping, 0 stopped, 0 zombie\r\nCpu(s): 0.2%us, 0.5%sy, 0.0%ni, 98.8%id, 0.5%wa, 0.0%hi, 0.0%si, 0.0%st\r\nMem: 5228872k total, 671136k used, 4557736k free, 28324k buffers\r\nSwap: 4194296k total, 0k used, 4194296k free, 267360k cached<\/span>\r\n\r\n PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND \r\n 1 root 20 0 19360 1536 1224 S 0.0 0.0 0:05.37 init \r\n 2 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kthreadd \r\n 3 root RT 0 0 0 0 S 0.0 0.0 0:00.07 migration\/0 \r\n 4 root 20 0 0 0 0 S 0.0 0.0 0:00.14 ksoftirqd\/0 \r\n 5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration\/0 \r\n 6 root RT 0 0 0 0 S 0.0 0.0 0:00.01 watchdog\/0 \r\n 7 root RT 0 0 0 0 S 0.0 0.0 0:00.69 migration\/1 \r\n 8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration\/1 \r\n 9 root 20 0 0 0 0 S 0.0 0.0 0:00.10 ksoftirqd\/1 \r\n 10 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog\/1 \r\n 11 root RT 0 0 0 0 S 0.0 0.0 0:00.10 migration\/2 \r\n 12 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration\/2 \r\n 13 root 20 0 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd\/2 \r\n 14 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog\/2 \r\n 15 root RT 0 0 0 0 S 0.0 0.0 0:00.17 migration\/3 \r\n 16 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration\/3 \r\n 17 root 20 0 0 0 0 S 0.0 0.0 0:00.06 ksoftirqd\/3 \r\n 18 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog\/3 \r\n 19 root 20 0 0 0 0 S 0.0 0.0 0:00.41 events\/0 \r\n\r\n<\/pre>\ncpu\u5185\u5b58\u5b9e\u65f6\u5229\u7528\u7387\u4ee5\u6b64\u4e3a\u6807\u51c6<\/p>\n
\u67e5\u770bcpu\u53c2\u6570\u2014\u2014\u6587\u4ef6 \uff1a\/proc\/cpuinfo<\/strong><\/span><\/div>\n[root@linuxprobe ~]# cat \/proc\/cpuinfo | grep \"physical id\" | uniq | wc -l\r\n2 \/\/cpu\u4e2a\u6570<\/span>\r\n[root@linuxprobe ~]# cat \/proc\/cpuinfo | grep \"cpu cores\" | uniq\r\ncpu cores\t: 2 \/\/\u7ebf\u7a0b\u6570<\/span>\r\n[root@linuxprobe ~]# cat \/proc\/cpuinfo | grep 'model name' |uniq\r\nmodel name\t: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz\r\n \/\/cpu\u578b\u53f7\u53c2\u6570\r\n<\/span><\/pre>\n\u67e5\u770b\u786c\u76d8\u76f8\u5173<\/strong><\/div>\ndf<\/strong><\/span><\/div>\n[root@linuxprobe ~]# df\r\n\u6587\u4ef6\u7cfb\u7edf\t 1K-\u5757 \u5df2\u7528 \u53ef\u7528 \u5df2\u7528% \u6302\u8f7d\u70b9\r\n\/dev\/sda2 41284928 469040 38718736 2% \/\r\ntmpfs 2614436 224 2614212 1% \/dev\/shm\r\n\/dev\/sda1 99150 32504 61526 35% \/boot\r\n\/dev\/sda6 516040 18016 471812 4% \/home\r\n\/dev\/sda3 4128448 2542976 1375760 65% \/usr\r\n[root@linuxprobe ~]# df -h \/\/\u4ee5\u7b80\u5355\u7684\u770b\u5f97\u61c2\u7684\u65b9\u5f0f\u663e\u793a<\/span>\r\n\u6587\u4ef6\u7cfb\u7edf\t \u5bb9\u91cf \u5df2\u7528 \u53ef\u7528 \u5df2\u7528%% \u6302\u8f7d\u70b9\r\n\/dev\/sda2 40G 459M 37G 2% \/\r\ntmpfs 2.5G 224K 2.5G 1% \/dev\/shm\r\n\/dev\/sda1 97M 32M 61M 35% \/boot\r\n\/dev\/sda6 504M 18M 461M 4% \/home\r\n\/dev\/sda3 4.0G 2.5G 1.4G 65% \/usr\r\n<\/pre>\nfdisk -l<\/strong><\/span><\/div>\n[root@linuxprobe ~]# fdisk -l\r\n\r\nDisk \/dev\/sda: 107.4 GB, 107374182400 bytes<\/span>\r\n255 heads, 63 sectors\/track, 13054 cylinders\r\nUnits = cylinders of 16065 * 512 = 8225280 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nDisk identifier: 0x000f0739\r\n\r\n Device Boot Start End Blocks Id System\r\n\/dev\/sda1 * 1 13 102400 83 Linux\r\nPartition 1 does not end on cylinder boundary.\r\n\/dev\/sda2 13 5235 41943040 83 Linux\r\n\/dev\/sda3 5235 5757 4194304 83 Linux\r\n\/dev\/sda4 5757 13055 58616832 5 Extended\r\n\/dev\/sda5 5757 6280 4194304 82 Linux swap \/ Solaris\r\n\/dev\/sda6 6280 6345 524288 83 Linux\r\n\r\n[root@linuxprobe ~]# fdisk -l | grep Disk\r\nDisk \/dev\/sda: 107.4 GB, 107374182400 bytes\r\nDisk identifier: 0x000f0739\r\n[root@linuxprobe ~]# \r\n<\/pre>\n iostat \u67e5\u770b\u786c\u76d8\u8bfb\u5199\u901f\u5ea6<\/strong><\/span><\/div>\n[root@linuxprobe ~]# iostat -t 1 3 \/\/1s\u4e00\u6b21\uff0c\u67e5\u770b3\u6b21<\/span>\r\nLinux 2.6.32-358.el6.x86_64 (twj.baidu.com) \t2016\u5e7406\u670807\u65e5 \t_x86_64_\t(4 CPU)\r\n\r\n2016\u5e7406\u670807\u65e5 20\u65f640\u520603\u79d2\r\navg-cpu: %user %nice %system %iowait %steal %idle\r\n 0.17 0.06 0.74 0.84 0.00 98.19\r\n\r\nDevice: tps Blk_read\/s Blk_wrtn\/s Blk_read Blk_wrtn\r\nsda 8.34 273.82 136.61 1216528 606904\r\n\r\n2016\u5e7406\u670807\u65e5 20\u65f640\u520604\u79d2\r\navg-cpu: %user %nice %system %iowait %steal %idle\r\n 0.00 2.10 9.97 13.12 0.00 74.80\r\n\r\nDevice: tps Blk_read\/s Blk_wrtn\/s Blk_read Blk_wrtn\r\nsda 89.00 3472.00 11208.00 3472 11208\r\n\r\n2016\u5e7406\u670807\u65e5 20\u65f640\u520605\u79d2\r\navg-cpu: %user %nice %system %iowait %steal %idle\r\n 0.00 1.99 14.35 9.05 0.00 74.61\r\n\r\nDevice: tps Blk_read\/s Blk_wrtn\/s Blk_read Blk_wrtn\r\nsda 66.13 1464.52 9800.00 1816 12152\r\n<\/pre>\n\u672c\u6587\u539f\u521b\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/linux-cat-system.html<\/a>\u4f5c\u8005\uff1a\u9676\u6b66\u6770\uff0c\u5ba1\u6838\u5458\uff1a\u5cb3\u6c38<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"\u5bfc\u8bfb Linux\u662f\u4e00\u4e2a\u795e\u5947\u800c\u53c8\u9ad8\u6548\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5b66\u5b8cLinux\u5bf9Linux\u7cfb\u7edf\u6709\u4e00\u4e2a\u719f\u6089\u7684\u4e86\u89e3\u540e\uff0c\u4f60\u9700\u8981\u4e86\u89e3\u4e0b\u8fd9 […]<\/p>\n","protected":false},"author":63,"featured_media":15889,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-15835","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/15835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=15835"}],"version-history":[{"count":10,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/15835\/revisions"}],"predecessor-version":[{"id":254275,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/15835\/revisions\/254275"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/15889"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=15835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=15835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=15835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}