Date: Thu, 12 Apr 2007 15:04:29 +0200 From: Ivan Voras <ivoras@fer.hr> To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= <des@des.no> Cc: Randall Stewart <rrs@cisco.com>, freebsd-current@freebsd.org Subject: Re: CPU utilization Message-ID: <461E2E5D.1090409@fer.hr> In-Reply-To: <86slb5ycmd.fsf@dwp.des.no> References: <461E0078.3050001@cisco.com> <20070412114344.G64803@fledge.watson.org> <461E1D4E.3090806@cisco.com> <evl95h$969$1@sea.gmane.org> <461E2C07.5000503@cisco.com> <86slb5ycmd.fsf@dwp.des.no>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Dag-Erling Smørgrav wrote: > Randall Stewart <rrs@cisco.com> 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? > > 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 probably very non-trivial to do. I though that using sched_bind() could 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 consists of myriad of callbacks and asynchrounsly called functions, be pinned. Sorry for the noise. :) [-- Attachment #2 --] -----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-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?461E2E5D.1090409>
