CPU Affinity Batch File

Collection of useful posts.
Forum rules
If you write a FAQ be sure that you are accurate as possible!
No General posts in this forum!
User avatar
House Liao Private for Life
Posts: 102
Joined: Thu Jul 24, 2008 8:08 am
Location: AZ

CPU Affinity Batch File

Post by Archon »

Got a work around for you kids using multicore processors with cpugrabber and all that fancy. Instead of using Process Lasso, you can just make a batch file, and launch the apps through the command prompt, which in-turn allows you to set the cpu affinity automatically.

I've a dual core setup, so I just have my handy batch file launch two instances of cpugrabber, each with a different core, and then netmech on a single core (If you ain't know, a batch file is just *.bat file edited through notepad). I installed netmech to the default directory, and have cpugrabber.exe in that same directory, so it looks something like this:

Code: Select all

cd C:\Progra~1\NetmechDos\
start /affinity 2 cpugrab.exe
start /affinity 1 cpugrab.exe
start /affinity 1 Netmechdos.exe
So what's this business? The /affinity will assign the program to whatever core you want (it's 1/2 in this, not 0/1). So with a single click, we've two cpugrabbers each assigned to a core, and then netmech on a single core. Just set their throttling to what you needs, and you're kosher.

User avatar
Sir MMPD Radick
Clan Nova Captain
Clan Nova Captain
Posts: 1625
Joined: Tue Jan 22, 2008 10:07 am

Re: CPU Affinity Batch File

Post by Sir MMPD Radick »

Just found out.
To those on XP this will not work.
This fix only works on vista and above.
James 3:5-10: My Reminder
And the tongue is a fire, a world of iniquity: so is the tongue among our members, that it defileth the whole body. Out of the same mouth proceedeth blessing and cursing. My brethren, these things ought not so to be.