dedicate the most available cpu cores to my application

hiren panchasara hiren.panchasara at gmail.com
Wed Jun 11 22:12:35 UTC 2014


On Wed, Jun 11, 2014 at 2:15 PM, hiren panchasara
<hiren.panchasara at gmail.com> wrote:
> On Wed, Jun 11, 2014 at 1:16 PM, Nick Sivo <nick at ycombinator.com> wrote:
>> I'd actually like to do the opposite of this, and have run into the
>> same problem.
>>
>> cpuset -s 1 -l 0
>> cpuset: setaffinity: Resource deadlock avoided
>
> I see the same problem on -CURRENT.
>
> fwiw, a fix is being discussed and worked on:
> http://lists.freebsd.org/pipermail/freebsd-hackers/2014-June/045292.html
>
> I am going to try and apply the proposed patch
> https://phabric.freebsd.org/D141 to see how it behaves.

Unified diffs from the review above:
https://phabric.freebsd.org/file/data/zixvlbugtluzxbmfj72e/PHID-FILE-uxhuddcmyqfuscwvnxsv/D141.diff

With this patch, sudo cpuset -s 1 -l 0-4 - worked.
And I think it's doing the right thing by looking at top -PSH.

cheers,
Hiren


More information about the freebsd-stable mailing list