Process Hacker Discussion Forum

 
chenifa
Member
Posts: 6
Joined: 27 May 2021 15:46

Set ideal processor

27 May 2021 15:49

Option for changing the ideal processor of a thread would be nice!
 
User avatar
dmex
Admin
Posts: 1681
Joined: 17 Jan 2011 05:43

Re: Set ideal processor

27 May 2021 17:17

Right click the thread and select Affinity to change the idea processor :thumbup:
 
chenifa
Member
Posts: 6
Joined: 27 May 2021 15:46

Re: Set ideal processor

27 May 2021 18:51

I can't set ideal processor there...only regular affinity mask.
Attachments
kp.png
Last edited by chenifa on 27 May 2021 18:54, edited 1 time in total.
 
chenifa
Member
Posts: 6
Joined: 27 May 2021 15:46

Re: Set ideal processor

27 May 2021 21:03

Ahhh I see! You limit to ur ideal and then switch back and it sticks....cool ty.
 
chenifa
Member
Posts: 6
Joined: 27 May 2021 15:46

Re: Set ideal processor

29 May 2021 17:46

Is there a way to set affinity for multiple threads at once(not whole process)?
 
User avatar
dmex
Admin
Posts: 1681
Joined: 17 Jan 2011 05:43

Re: Set ideal processor

29 May 2021 19:45

chenifa wrote: 29 May 2021 17:46
Is there a way to set affinity for multiple threads at once(not whole process)?
You can select multiple threads before opening the Affinity dialog
 
chenifa
Member
Posts: 6
Joined: 27 May 2021 15:46

Re: Set ideal processor

29 May 2021 21:07

The affinity dialog gets greyed out when I select more than one thread
 
User avatar
dmex
Admin
Posts: 1681
Joined: 17 Jan 2011 05:43

Re: Set ideal processor

29 May 2021 21:10

chenifa wrote: 29 May 2021 21:07
The affinity dialog gets greyed out when I select more than one thread
The multi-selection is currently only in the nightly builds:
https://processhacker.sourceforge.io/nightly.php
 
chenifa
Member
Posts: 6
Joined: 27 May 2021 15:46

Re: Set ideal processor

30 May 2021 11:29

Awesome! Thank you so much for your help

(edit: I noticed some affinities for whole process don't work in nightly while they do in the regular processhacker edition. For example sgrmbroker.exe....you can set affinity for threads but setting whole process won't stick. LMK if and where you want bug reports like this...I'd gladly post them as I come accross them)
 
User avatar
dmex
Admin
Posts: 1681
Joined: 17 Jan 2011 05:43

Re: Set ideal processor

30 May 2021 21:13

chenifa wrote: 30 May 2021 11:29
For example sgrmbroker.exe....you can set affinity for threads but setting whole process won't stick.
That's to be expected on Windows 10 since sgrmbroker.exe is a protected WinTcb process that blocks changes such as priority (You can see the protection on the process properties general tab on the bottom left). You should instead use the IFEO priority option in these cases and reboot the machine.
 
chenifa
Member
Posts: 6
Joined: 27 May 2021 15:46

Re: Set ideal processor

31 May 2021 11:42

Thanks for the info! Yeah the IFEO feature in nightly version is very convinient...it has no option to set affinity though.
It's no problem, I have the regular version of process hacker installed as well and it can bypass those protections.
Ty again, you helped me out a lot!