Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2002 05:48:42 -0800 (PST)
From:      Hiten Pandya <hitmaster2k@yahoo.com>
To:        Russell Francis <frussell@p1.cs.ohiou.edu>, freebsd-hackers@FreeBSD.org
Subject:   Re: determining context switching?
Message-ID:  <20020329134842.33850.qmail@web21105.mail.yahoo.com>
In-Reply-To: <Pine.GSO.3.96.1020329082538.25172A-100000@p2>

next in thread | previous in thread | raw e-mail | index | archive | help
--- Russell Francis <frussell@p1.cs.ohiou.edu> wrote:
> I was wondering if there is a way to determine the context switching rate?
> 
> In /usr/include/sys/vmmeter.h the structure
> 
> struct vmmeter {
> 	u_int v_swtch;		/* context switches */
> 	.
> 	.
> 	.
> }
> 
> looks like what I want but I can't find a function which returns this data
> to a user land application.  Is this possible?  If so how?

Have you tried to use any of the sysctl(3) functions?  Try doing the
following on the command line:

  shell# apropos sysctl

Hope this helps. :)

Thanks,

  -- Hiten Pandya
  -- <hiten@uk.FreeBSD.org>

__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/

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?20020329134842.33850.qmail>