Automatically defining Affinity for WinXP processes?
Automatically defining Affinity for WinXP processes?
Is it possible? I got a P4 with HT and defauklt affinity is to use both CPUs for all processes. I need a specific process with specific name to set affinity to only CPU 0. I don't feel like doing it manually every time the process starts. Is there a way to make affinity to <u> automatically</u> default to only 1 cpu for a <u> specific process</u> only?
- CDN_Merlin
- DBB_Master
- Posts: 9774
- Joined: Thu Nov 05, 1998 12:01 pm
- Location: Capital Of Canada
Warlock: hmm, i don't see this under WinXP. In WinXP this is done through the task manager. Good suggestion, but it's different in WinXP.
Merlin: P4 with HT means P4 with hyperthreading. Hyperthreading means there is one physical but two logical CPUs, and the OS sees two CPUs like in real SMP systems. So no, I am not defying anything
Xciter: believe it or not, but trhough my own testing, i found HT to work really well in some situations, I do not want to disable it, it only gets in the way of one single application - Descent3. Thanx to creative *&^^$&^$% drivers, that still don't work with SMP systems. For some odd reason, D3 reboots my PC if HT is enabled. After hours of troubleshooting, i was able to play D3 with HT enabled with the -nosound switch.
Then after some time, i thought of trying to assign affinity to only one logical CPU, instead of two. Today i tried it, and D3 hasn't rebooted my PC. I can keep HT and play D3 with sound, as long as i set the affinity of the process MAIN.EXE to only CPU 0. This takes like 10 seconds to do, I don't mind doing it manually. But i was hoping there was a way to automatically start a specific process (MAIN.EXE) with a given affinity setting (CPU 0, but not CPU 1), so i wouldn't have to change it manually every time i start D3.
This is not a questions of whether I need HT or not, I decided to keep it on. I just need to find out if there is a way to automate all this.
Merlin: P4 with HT means P4 with hyperthreading. Hyperthreading means there is one physical but two logical CPUs, and the OS sees two CPUs like in real SMP systems. So no, I am not defying anything
Xciter: believe it or not, but trhough my own testing, i found HT to work really well in some situations, I do not want to disable it, it only gets in the way of one single application - Descent3. Thanx to creative *&^^$&^$% drivers, that still don't work with SMP systems. For some odd reason, D3 reboots my PC if HT is enabled. After hours of troubleshooting, i was able to play D3 with HT enabled with the -nosound switch.
Then after some time, i thought of trying to assign affinity to only one logical CPU, instead of two. Today i tried it, and D3 hasn't rebooted my PC. I can keep HT and play D3 with sound, as long as i set the affinity of the process MAIN.EXE to only CPU 0. This takes like 10 seconds to do, I don't mind doing it manually. But i was hoping there was a way to automatically start a specific process (MAIN.EXE) with a given affinity setting (CPU 0, but not CPU 1), so i wouldn't have to change it manually every time i start D3.
This is not a questions of whether I need HT or not, I decided to keep it on. I just need to find out if there is a way to automate all this.
- BUBBALOU
- DBB Benefactor
- Posts: 4198
- Joined: Tue Aug 24, 1999 2:01 am
- Location: Dallas Texas USA
- Contact:
Dual PROCESS (HT) and Dual PROCESSOR (2 CPU's) are totally different worlds. It is nice when you have a program that works with dual(X), like 3dsmax, photoshop......getting a litle boost
Just leave it as is, if you have an issue when a new game will not run out of the box.... then think about disabling HT.
PS go get the new Creative drivers
Just leave it as is, if you have an issue when a new game will not run out of the box.... then think about disabling HT.
PS go get the new Creative drivers
Guys, you are not reading.
I know the differences between real SMP and HT. ANd i can't leave it as it is, since it reboots my PC when i play D3.
Like i said, all i need to know is if there is a way to automatically set specific affinity for a process with a specific name whenever it starts up. Otherwise i'll be doing it manually every time.
Oh and, i went through all creative driver versions for Audigy2. Problem was present on all of them.
I know the differences between real SMP and HT. ANd i can't leave it as it is, since it reboots my PC when i play D3.
Like i said, all i need to know is if there is a way to automatically set specific affinity for a process with a specific name whenever it starts up. Otherwise i'll be doing it manually every time.
Oh and, i went through all creative driver versions for Audigy2. Problem was present on all of them.
- Admiral LSD
- DBB Admiral
- Posts: 1240
- Joined: Sun Nov 18, 2001 3:01 am
- Location: Northam, W.A., Australia
- Contact:
<BLOCKQUOTE><font size="1" face="Arial">quote:</font><HR><font face="Arial" size="3">Originally posted by Max_T:
Warlock: hmm, i don't see this under WinXP. In WinXP this is done through the task manager. Good suggestion, but it's different in WinXP.</font><HR></BLOCKQUOTE>
I think there's a registry key that enables that under at least 2k Pro (though I fail to see how XP would be any different) but I really can't remember for sure.
Warlock: hmm, i don't see this under WinXP. In WinXP this is done through the task manager. Good suggestion, but it's different in WinXP.</font><HR></BLOCKQUOTE>
I think there's a registry key that enables that under at least 2k Pro (though I fail to see how XP would be any different) but I really can't remember for sure.
heh, this is one of the reasons why my BSLive is sitting in an anti-static bag (and also one of the reasons I didn't buy another Creative card for this PC) waiting for me to either put an axe through it or sell it to some unsuspecting fool, I haven't decided which.<font face="Arial" size="3">Thanx to creative *&^^$&^$% drivers</font>
- BUBBALOU
- DBB Benefactor
- Posts: 4198
- Joined: Tue Aug 24, 1999 2:01 am
- Location: Dallas Texas USA
- Contact:
I guess that lil program for sysbase is your only option besides disabling HT
according to M$ for XP Pro
Managing processor affinity on multiprocessor systems:
If you want to assign a particular process or program to a single processor to improve its performance at the expense of other processes, in Task Manager, click Set Affinity. This option is available only on multiprocessor systems.
not dualprocess CPU's
according to M$ for XP Pro
Managing processor affinity on multiprocessor systems:
If you want to assign a particular process or program to a single processor to improve its performance at the expense of other processes, in Task Manager, click Set Affinity. This option is available only on multiprocessor systems.
not dualprocess CPU's
-
- DBB Captain
- Posts: 506
- Joined: Thu Nov 05, 1998 12:01 pm
- Location: Plano, Texas, United States of America
- Contact:
<BLOCKQUOTE><font size="1" face="Arial">quote:</font><HR><font face="Arial" size="3">Originally posted by Max_T:
I know the differences between real SMP and HT. ANd i can't leave it as it is, since it reboots my PC when i play D3.</font><HR></BLOCKQUOTE>
Well, the problem is not D3 -- I'm running it on a P42.8C w/ HT enabled under XPP just fine..
I know the differences between real SMP and HT. ANd i can't leave it as it is, since it reboots my PC when i play D3.</font><HR></BLOCKQUOTE>
Well, the problem is not D3 -- I'm running it on a P42.8C w/ HT enabled under XPP just fine..
The problem is creative drivers. For me, it only happens when i play d3, no matter what sound i pick (d3d, eax, etc). And also, it reboots when IE plays those clicking sounds when you click on a new link (i had to disable taht sound too).
It's weird and annoying, but there are workarounds, so I don't have to disable HT.
It's weird and annoying, but there are workarounds, so I don't have to disable HT.
- Vindicator
- DBB Benefactor
- Posts: 3166
- Joined: Mon Dec 16, 2002 3:01 am
- Location: southern IL, USA
- Contact:
btw, if any1 needs it, the program and the instructions can be found here:
http://www.robpol86.com/tutorials/imagecfg.php
http://www.robpol86.com/tutorials/imagecfg.php