For the life of me, I can't remember how to set CPU Affinity for an application BEFORE it launches. Changing it WHILE the app is running is easy but I don't want to always have to crtl-alt-del into Processes to change AFTER I run the app.
I have an app that wants to run on CPU 0 and not CPU 0/1. So I got CPU 0 @ 100% and CPU @ 15% or something. I've put " -cpu 0 -cpu 1" at the end of the target line, but that doesn't work. I can't remember the proper syntax....argh.
What's the proper syntax/methodology to Set Affinity on Target line?
Until now, I didn't know you could set affinity of any program from Task Manager.
I'd love an answer to this as well. It would be nice to have all processes run on one core and your games on the other without having to manually set the affinity each time.
I thought there was an application one had to download which would change the beginning of the executable to make it permanently on one core or the other. It would probably break things if you ever tried to run a patch on the program though (without changing back to the original executable first).
I read in that site that now you don't need to modify the exe to make it work. I sincerely didn't test it so don't complain if that program misteriously wipes out all your pr0n. I can't find mine, thats for certain. (??)
I heard duct tape works with bailing twine and a shot of whiskey for the user.Other than that I have no clue but I did make a tape and twine ball and used it as a trash can ball as i was getting drunk.
Was that before or after you bent the pins installing your 3200+? Sorry Vern....i'll can it with the pin jokes, from now on.
here's one way to do so...if you're interested you can get the source code (on the left and check how they do it) else just download the binary
http://www.adsciengineering.com/StartAffinity/
There's a program called Launch & Set (although the link seems to be down at the moment) which allows you to set the affinity of a program to either or both cores before you launch it. It's only a small program (about 60k) so drop me a PM with your email if you want a copy. If I get too many requests I'll upload it and send you a link instead.
I always used "Firedaemon" myself for this specific purpose, well at least for starting my game server on specific cores. Never tried it with any regular applications.
hmmm...I'm kinda tempted to write a little tray app that lets you add processes to a list and auto changes their affinity and priority. Really should be doing my own work tho!
That imagecfg link is interesting. Not sure how it works, I can't remmeber if there is a var for affinity in the PE headers or not.
Yea. The THG Task Assignment Program is very usefull. I have used it often recently, as long as TaskAssign.exe is running in memory (Assuming you have already Set Processor Affinity) it will run the Specified Application(s) in it's App List, using the processor you have specified.
I would ordinarily remind people that downloading and running files linked by new registrants is quite a bit less than wise. But here at Tom's we are smarter than that...
BLAAAAAAAAAAHAHAHHAHAHAHHAHHAHAHAHAHAAAH!!!!!!
Oh mah... I kill myself sometimes...
------------------------------Which Chip? Well, it depends on which set of thieving b@stardz you choose to support: The ones who use insider trading to enrich themselves while running their company into the ground? Or the ones who illegally pay vendors to not support the first group?
Reply to Scotteq
If you dont't want people to help in this forum, just say it; and in order to prevent other users, first check if you are right or not with that kind of affirmations. I'm offering for free a software of my property, and I think I deserve a little of respect. So, if you don't trust, the answer is easy: don't click.
One more thing, I just registered to post this link to give people a solution that I made for myself, and I wanted to share it. Perhaps, Scotteq, you're not as smart as you pretend to. No more to say.
hi guys, i know this is a bit old but i have been searching for info on a similar topic and wanted to let you know about a program called cpu-control. i think it will do what you want and it is free.
I know this is an old thread, but here's the easy answer that didn't come up. WinXP (and also Vista, I believe) has a utility included called start. This utility can be used to run a program with a specified cpu affinity. the command would look like this:
start /affinity xx myprogram.exe
Use the actual name of the program you want to run, of course, and substitute xx for a hex number representing the affinity you want as follows:
01 - 1st CPU
02 - 2nd CPU
03 - 1st and 2nd CPU
04 - 3rd CPU
05 - 1st and 3rd CPU
...
etc