So there are certain long-running daily processes to which I would like to assign a specific CPU.
I can do this by checking the pid after starting the process up (e.g.
Is there a more direct/obvious way to do this?
Alternatively I can start such processes inside a specific jail and assign a cpu to the jail. But then I would have to have a little startup script to get the jail id based on the jail name from an
Is there a more direct/obvious way to do this?
I can do this by checking the pid after starting the process up (e.g.
sh -c 'echo $$; exec command'
or a little script to extract the pid), and then using the pid in a cpuset
command. Is there a more direct/obvious way to do this?
Alternatively I can start such processes inside a specific jail and assign a cpu to the jail. But then I would have to have a little startup script to get the jail id based on the jail name from an
awk
, and then use the jail id in a cpuset
command. Is there a more direct/obvious way to do this?