??????????????ж???

????Hi%

??????????IRQs????????

????Si%

??????????Soft IRQs????????

????St%

????????st????????IBM?????????????????????

????IBM’s definition of steal time is actually pretty good:

????Steal time is the percentage of time a virtual CPU waits for a real CPU while the hypervisor is servicing another virtual processor.

????3.3 ???????

??????????????CPU??????????????????????Щ????

????3.3.1 ??????????????

???????????

?????3????????????????

 ????2. ???????

????????????(TASK_RUNNING)

?????????ж??????(TASK_UNINTERRUPTIBLE)

?????????(TASK_STOPPED)

??????????(TASK_TRACED)

??????????(EXIT_ZOMBIE)

???????? Wait io%??????idle%???????

??????????top????????????wait io%??????idle%????IO??????????uninterruptible sleep

????Cpu1 : 2.7%us?? 3.0%sy?? 0.0%ni?? 3.7%id?? 89.7%wa?? 0.0%hi?? 1.0%si?? 0.0%st

????????????????????????????????????????

????1. ?????????????????????????????????????????????????????????л???????п?????????С??????????

????2. ????????(scheduler)???????????????????????????????????????????(Light Weight Process)??Kernel????????????????????????????????ó???????????????????????pthread???????????????????????????????????????????????????????????????????????????????????????

????2. ???????

????????????(TASK_RUNNING)

?????????ж??????(TASK_UNINTERRUPTIBLE)

?????????(TASK_STOPPED)

??????????(TASK_TRACED)

??????????(EXIT_ZOMBIE)

???????? Wait io%??????idle%???????

??????????top????????????wait io%??????idle%????IO??????????uninterruptible sleep

????Cpu1 : 2.7%us?? 3.0%sy?? 0.0%ni?? 3.7%id?? 89.7%wa?? 0.0%hi?? 1.0%si?? 0.0%st

????3.3.4 ??ж?

????????????й?????ж???????????IO?豸???????????????????????????????????

????IRQ

????IO?豸????????IRQ(Interrupt ReQuest)????????ж?????(???????ж?)

???????????????ж??IO?豸???????IRQ?????(??????????????????????????????????IRQ?????)?????IRQ??????????ж??????(Programmable Interrupt Controller)???????????

???????IRQ???????ж????????????CPU core?????IRQ???0???????

??????ι??IRQ??????