CPU utilization

Ivan Voras ivoras at fer.hr
Thu Apr 12 13:04:36 UTC 2007

Dag-Erling Smørgrav wrote:
> Randall Stewart <rrs at 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. :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070412/5512797d/signature.pgp

More information about the freebsd-current mailing list