From owner-freebsd-current@FreeBSD.ORG Thu Apr 12 13:04:36 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0434E16A404 for ; Thu, 12 Apr 2007 13:04:36 +0000 (UTC) (envelope-from ivoras@fer.hr) Received: from pinus.cc.fer.hr (pinus.cc.fer.hr [161.53.73.18]) by mx1.freebsd.org (Postfix) with ESMTP id 837C913C457 for ; Thu, 12 Apr 2007 13:04:34 +0000 (UTC) (envelope-from ivoras@fer.hr) Received: from [161.53.72.113] (lara.cc.fer.hr [161.53.72.113]) by pinus.cc.fer.hr (8.12.2/8.12.2) with ESMTP id l3CDCxLT027539; Thu, 12 Apr 2007 15:12:59 +0200 (MEST) Message-ID: <461E2E5D.1090409@fer.hr> Date: Thu, 12 Apr 2007 15:04:29 +0200 From: Ivan Voras User-Agent: Thunderbird 1.5.0.10 (X11/20060911) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <461E0078.3050001@cisco.com> <20070412114344.G64803@fledge.watson.org> <461E1D4E.3090806@cisco.com> <461E2C07.5000503@cisco.com> <86slb5ycmd.fsf@dwp.des.no> In-Reply-To: <86slb5ycmd.fsf@dwp.des.no> X-Enigmail-Version: 0.94.2.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig043FBD150EA591F0923322AC" Cc: Randall Stewart , freebsd-current@freebsd.org Subject: Re: CPU utilization X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2007 13:04:36 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig043FBD150EA591F0923322AC Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Dag-Erling Sm=C3=B8rgrav wrote: > Randall Stewart writes: >> Sure.. dumb question though.. whats the magic cookie to pin >> something on a cpu.. is it a system call or is there a "shell" tool >> that will do it? >=20 > Neither. There is a kernel function to tie a thread to a CPU, but it > is not exported to userland. I was thinking about the kernel part, but now, thinking more, it's=20 probably very non-trivial to do. I though that using sched_bind() could=20 do it, but this only works if there's a specific thread created for some = task - I don't know how can something like 'a network stack', which=20 consists of myriad of callbacks and asynchrounsly called functions, be=20 pinned. Sorry for the noise. :) --------------enig043FBD150EA591F0923322AC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGHi5dldnAQVacBcgRAriBAJ9qm9zRknu2WgWlDNKU/o9qptSclQCgwORf h5hAEXOxNKFvsmHL8qpVdz8= =oaL+ -----END PGP SIGNATURE----- --------------enig043FBD150EA591F0923322AC--