Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Apr 1998 03:56:39 -0500 (EST)
From:      "John S. Dyson" <toor@dyson.iquest.net>
To:        robert@cyrus.watson.org
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Context switch time
Message-ID:  <199804250856.DAA07440@dyson.iquest.net>
In-Reply-To: <Pine.BSF.3.96.980425041329.28708A-100000@fledge.watson.org> from Robert Watson at "Apr 25, 98 04:17:45 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Hi,
> 
> I was wondering what the average context switch time across a syscall
> invocation is, also, how long it takes to switch in a different process.
> Presumably just on a Pentium 100ish processor.  Is this data I can
> retrieve from the kernel profiler?  mi_switch and tsleep both appear in
> the profiling data, but it is not clear to me that this includes the time
> for the switch to kernel context, etc.
> 
> Thanks,
> 
>   Robert N Watson 
> 
For a first start, try lat_ctx from lmbench.  I believe that it does a
token passing scheme with pipes, so it won't tell you exactly what you
want, but might be ballpark.

John

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



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