Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jun 2014 13:16:27 -0700
From:      Nick Sivo <nick@ycombinator.com>
To:        Mahdi Dashtbozorgi <mdasht@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: dedicate the most available cpu cores to my application
Message-ID:  <CAM72HBbeB_2Hg1uwhUs51NDrJH-TDYUjKDFPoiHSNc0=-67YPQ@mail.gmail.com>
In-Reply-To: <CAB5=vGZ3zgFf4xHyFdxwe=su_sjXHNT_gS55xAo3bnzmSS_t1w@mail.gmail.com>
References:  <CAB5=vGZ3zgFf4xHyFdxwe=su_sjXHNT_gS55xAo3bnzmSS_t1w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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've also tried it in rc.local, also without success.

In my case I want everything on one or two cores so the reminder will
enter C3 sleep and encourage Turbo Boost. Our application is limited
to a single core and benefits greatly from the faster clock.

-Nick

On Wed, Jun 11, 2014 at 1:50 AM, Mahdi Dashtbozorgi <mdasht@gmail.com> wrote:
> Hi,
>
> I want to dedicate the most cpu cores of my server to my application.
> My server has 24 available cpu cores and I am using FreeBSD 10.0-RELEASE.
> According to the following link:
> https://forums.freebsd.org/viewtopic.php?&t=41012
>
> I use the following commands to run my application:
> #> cpuset -s 1 -l 0-1
> #> cpuset -c -l 2-23 myapp
>
> but after executing "cpuset -s 1 -l 0-1", I got the following error message:
> cpuset: setaffinity: Resource deadlock avoided
>
> I even put the first command in /etc/rc.local, but still get the same error
> message.
> How can I find the process, which prevent this command from execution?
>
> Best Regards,
> Mahdi.
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM72HBbeB_2Hg1uwhUs51NDrJH-TDYUjKDFPoiHSNc0=-67YPQ>