From owner-freebsd-hackers Fri Mar 29 5:48:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web21105.mail.yahoo.com (web21105.mail.yahoo.com [216.136.227.107]) by hub.freebsd.org (Postfix) with SMTP id 976D437B416 for ; Fri, 29 Mar 2002 05:48:42 -0800 (PST) Message-ID: <20020329134842.33850.qmail@web21105.mail.yahoo.com> Received: from [62.254.0.5] by web21105.mail.yahoo.com via HTTP; Fri, 29 Mar 2002 05:48:42 PST Date: Fri, 29 Mar 2002 05:48:42 -0800 (PST) From: Hiten Pandya Reply-To: hiten@uk.FreeBSD.org Subject: Re: determining context switching? To: Russell Francis , freebsd-hackers@FreeBSD.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --- Russell Francis 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 -- __________________________________________________ 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