Linux????????????????????
???????????? ???????[ 2013/3/4 14:13:52 ] ????????
?????????????????????????÷???????????????????CPU?????????????????????????????CPU???????????????ζ??CPU????????????п?????????????????????????????????????????????????????????????????????????????????п??????????Ч???
??????????????????????????CPU??????????????????????????????????????????CPU??????????????????????????????á?????Щ?????CPU???????ó??????????????????????????????
????3.2.1 ????CPU???
?????ж???????????????CPU???????????“??????????”?н??????Linux?к???????????????????????????????????
?????????????????uptime?????????uptime??????????????15?????????????????и???????????????????????????μ?2.3.3“uptime”??
????????3-1???????CPU????????uptime??????
????----------------------------------------------------------------------------------------
????18:03:16 up 1 day?? 2:46?? 6 users?? load average: 182.53?? 92.02?? 37.95
????----------------------------------------------------------------------------------------
???????KDE System Guard??CPU??????????????????CPU??????????
?????????С????????????й????????????CPU?????????????????????????????????CPU????????
???????top??????????CPU?????????????Щ????????????(????2-1)???????????sar??????????CPU???????????????????Щ????????????????????isag?????????sar????????????Ρ??????????????????????Щ????????????????CPU??????????????????????????????????sar -u????sar -U processornumber??????????CPU??????????????????????????????????????????vmstat(?μ?2.3.2??“vmstat”)
????3.2.2 SMP
????????SMP??????????????????????????????SMP?????У??и???CPU???????affinity??????????????????????????????CPU??
????????????????????CPU cache?????????????y???????CPU???д?????????????????????????????CPU??????????CPU??cache???????????????????????????????????cache????????ζ?????????????????????????????ɡ???????????????????????????CPU??????????????????????????CPU??????????????????????NUMA???????????????IBM System x 3950??where it is important to keep memory?? cache?? and CPU access local to one another.
????3.2.3 ?????У???
??????????????????????????CPU???μ?????????????????????????????????????????????????????????????????????
????▶ ???ps -ef?????????в????????????????С?????????в????????????????????cron????????????????С?
????▶ ??????top???????????????????CPU?????????????renice???????????????????
????▶ ?????SMP??????У????????taskset??????????????CPU???????????????????????μ???????????cache????
????▶ ???????????е???ó?????????????????(????CPU???)?????????????(????CPU????)??????????????ó?????????????????????????????????????ó????????????????????????CPU??????????????CPU??
????▶ ?????????????????????????????μ?????????????壬?????????CPU??????
????????????????????????????????
????1. ??????????
????2. ????????
????3. ??????????????
????4. ??С?????Χ????????
????5. ?????????????????????????????
????6. ?????3??????????????????
?????????????y?????????????????У???????????????????????????????
????3.1.1 ??????
?????????????£????????????????????“????????????????”???????????Щ???????????ū??????????????????????????г??Щ?????????????????????????
????▶ ?????????????漰??????????????????
????- ???
????- ???????
????- ????
????- ??Χ?豸
????- ???????汾????μ??
????▶ ?????????????????????????
????- ??????Щ???
????- ??????′????????
??????????Щ?????????????Щ???????????????κζ?????????п??????????????????磬????????“??????????????????????????????”?????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11