Post Reply 
Isolate FFMPEG on a dedicated CPU
14-01-2020, 15:53
Post: #25
RE: Isolate FFMPEG on a dedicated CPU
I checked this and found why it isn't working.

1) The line should start java= and not JAVA=

2) You need to do the same as you did for ffmpeg: create a script that invokes java via taskset and put the path to this script in the java= line in minimstart.conf. Unlike the ffmpeg script, this script can have any name (I used runjava.sh). The runjava.sh script needs chmod 755 but you don't need this for the minimstart.conf file because this file is being read by the startd script, not executed.

3) For this use of taskset to launch java, it is important that the java process is run as a direct child of the startd process. To make this happen, you need to put exec before taskset, like this:

exec taskset -c 3 java "$@"

It would be a good idea to add the exec for ffmpeg as well.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Isolate FFMPEG on a dedicated CPU - simoncn - 14-01-2020 15:53

Forum Jump:


User(s) browsing this thread: 1 Guest(s)