Re: how to bind CPU with taskqueue thread
"Ray Mihm" <[email protected]> Thu, 21 Aug 2008 19:58:20 -0700
| Newsgroups | gmane.os.freebsd.devel.smp |
|---|---|
| Message-ID | <[email protected]> |
See cpuset(2) -rm On Wed, Aug 20, 2008 at 5:09 PM, Ji <[email protected]> wrote: > Hi all, > > I use "taskqueue_start_threads(&tq, 1, PI_NET, tq_name)" to create a > thread working for the task queue, and I have multiple CPUs. > Can I bind the thread with a specific CPU so that the thread is only > running on that CPU permanently? Thank you a lot. > I tried sched_bind(FIRST_THREAD_IN_PROC(*tq->tq_pproc), 1) but it does > not work. BTW, the kernel uses ULE scheduler. > Thanks. > > Ji > > . > _______________________________________________ > [email protected] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-smp > To unsubscribe, send any mail to "[email protected]" > _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-smp To unsubscribe, send any mail to "[email protected]"