CPU Isolation
Christian Stærk
xi at borderworlds.dk
Mon Jan 28 11:37:50 UTC 2019
On 1/28/19 9:34 AM, Poul-Henning Kamp wrote:
> --------
> In message <AC6FACC4-2403-41B7-B7E6-738A692929A2 at FreeBSD.org>, "Babak Farrokhi" writes:
>
>> AFAIK there is no way to do it pre-boot. To do the isolation post-boot your
>> best bet is cpuset(1) (with which I could not totally isolate cpu cores
>> as dedicated application cores).
> The trick is to move /sbin/init to /sbin/init.real and create a
> /sbin/init shell script which cpuset's PID=1 then exec's /sbin/init.real
>
> Be aware that the surroundings of that shell script are very sparse.
>
Or maybe set "init_path" in loader.conf to point to the init wrapper and
then keep /sbin/init unchanged.
Then subsequent system updates would not break the setup.
Best regards
Christian
More information about the freebsd-hackers
mailing list