Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

IBM's AIX has a "virtual context switch" column in lparstat but neither IBM's redbooks nor google searches will tell me what exactly a virtual context switch is and how its different from a regular context switch. All my searches yield what a regular context switch is as thats a more well defined and universal OS concept.

So, what is a "virtual context switch" in the context of a SPLPAR configuration with a shared processor pool and virtual processors?

share|improve this question
up vote 1 down vote accepted

A virtual context switch is when one virtual processor yields resources to another virtual processor.

share|improve this answer
So does that mean that when a VP has no more work to do a virtual context switch is recorded when it gives up its remaining time to any other VPs that need it? I'm trying to diagnose what seeing 500,000 (yes half a million) virtual context switches on a badly behaving machine means exactly. – bot403 Jun 2 '11 at 0:29
No, I suppose I'm overthinking it. Its exactly like a regular context switch but on a virtual processor. A process running on a VP hasn't completed but the hypervisor is deciding to evict it for another process so must save the state of the first process. Right? – bot403 Jun 2 '11 at 1:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.