{"height":"190","categories":["Linux"],"blog_title":"\u534a\u5f845\u30e1\u30fc\u30c8\u30eb","title":"Linux\u30b5\u30fc\u30d0\u306eCPU\u6570\u3092\u8abf\u3079\u308b\u3001\u3068\u304b","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsrkzhr.hatenadiary.org%2Fentry%2F20071221%2F1198214910\" title=\"Linux\u30b5\u30fc\u30d0\u306eCPU\u6570\u3092\u8abf\u3079\u308b\u3001\u3068\u304b - \u534a\u5f845\u30e1\u30fc\u30c8\u30eb\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"blog_url":"https://srkzhr.hatenadiary.org/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/srkzhr/","published":"2007-12-21 14:28:30","width":"100%","author_name":"srkzhr","type":"rich","description":"Linux\u30b5\u30fc\u30d0\u306b\u8f09\u3063\u3066\u308bCPU\u6570\u3092\u77e5\u308a\u305f\u3044\u3068\u601d\u3044\u3001\u305d\u306e\u5834\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306asar -P\u3092\u4f7f\u3063\u305f\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u66f8\u3044\u3066\u5b9f\u884c\u3002 #!/bin/sh i=0 while true do sar -P ${i} 0 > tmp.txt if [ `cat tmp.txt | wc -l` -eq 0 ]; then rm -f tmp.txt break fi let i=${i}+1 done echo \"result : ${i}\"\u78ba\u304b\u306b\u305d\u308c\u3067\u3082\u8abf\u3079\u3089\u308c\u308b\u3093\u3060\u3051\u3069\u3001\u3050\u3050\u3063\u305f\u3089 cat /proc/cpuinfo | grep processor\u3053\u308c\u3067\u3044\u3044\u3058\u3083\u3093\u306d\u3001\u3068\u3044\u3046\u30f2\u30c1\u30fb\u30fb","version":"1.0","url":"https://srkzhr.hatenadiary.org/entry/20071221/1198214910"}