Greetings, all,
I have a rather unique question that I haven't yet been able to find an answer to. I have a dual e5-2670 system that I sometimes use to encode my media library into h265 via HandBrake. Handbrake doesn't seem to scale particularly well above 8 processor cores and thus, I find I get better performance overall if I have 2 simultaneous instances of HandBrake open each running their own separate encodes with affinities for the cores on separate CPU. The problem is that whenever I buy a new boxed set of a tv show or a series and thus have multiple jobs queued up on each instance, the processor affinity for each instance resets upon starting the next encode in the queue. Is there any way that process lasso can a.) detect the number of instances of a process running already running, b.) detect the affinity of those already running processes, and c.) set the affinity of a new instance to the cores upon which an instance is not already running?
thanks!
It is serependitious that you ask about this. A feature is almost done that may assist. Please hold for further information. I will try to push out a beta very shortly.
Excellent news, thanks!
Quote from: Jeremy Collake on September 14, 2018, 06:34:29 AMIt is serependitious that you ask about this. A feature is almost done that may assist. Please hold for further information. I will try to push out a beta very shortly.
any updates on this feature?
Yes, the Instance Balancer (https://bitsum.com/processlasso-docs/#instancebalancer) was the resulting feature.
Quote from: Jeremy Collake on September 07, 2024, 03:18:16 AMYes, the Instance Balancer (https://bitsum.com/processlasso-docs/#instancebalancer) was the resulting feature.
But this feature still does not allow us to set the specific affinities to multiple instances of the same process, right? At least I couldn't.
I have a dual CCD Ryzen CPU and I'm often running 24 instances of the same process. I'd like to run some of them on CCD0 and some(very specific hand selected processes) on CCD1, but every time when I try to change the affinity, it's being applied to ALL processes. Would it be possible to set the affinity for PID?
Quote from: sk1tzm8 on December 06, 2025, 10:06:13 AMI have a dual CCD Ryzen CPU and I'm often running 24 instances of the same process. I'd like to run some of them on CCD0 and some(very specific hand selected processes) on CCD1, but every time when I try to change the affinity, it's being applied to ALL processes. Would it be possible to set the affinity for PID?
The PID changes every time a process is launched so it may not serve your purpose to create rules that match on it, though it is possible (https://bitsum.com/processlasso-docs/#processmatch).
If you are able to create any distinction between these process instances, then you can match on that. This can be done by adding a command line parameter to some instances, or launching them from a different path. If you have some control of how they are started, try that. You can use wildcards to match a command line or path, for instance:
*/myspecialcommandline*