Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2007 17:02:13 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Andreas Pettersson <andpet@telia.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: top columns VCSW and IVCSW
Message-ID:  <20070921220213.GJ7562@dan.emsphone.com>
In-Reply-To: <46F41F2D.6040503@telia.com>
References:  <46F41F2D.6040503@telia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 21), Andreas Pettersson said:
> I couldn't find it in the man page and Google turned up with nothing
> of value so I ask here. What does the top (in IO mode) columns VCSW
> and IVCSW mean?

Voluntary and Involuntary context switches.  Voluntary ones are usually
due to syscalls that end up blocking (sleep, read, write, select etc). 
Involuntary ones are done by the scheduler when the process has used up
its time slice or an interrupt fires.  Grep the kernel for "mi_switch"
to see places that switches can happen.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070921220213.GJ7562>