Using one CPU only in a dual CPU Win2K machine

I've a dual CPU Win2K machine, but for the web server, I want to make it run on one CPU only. Is it possible to set it? If so, where can I set it?

Thanks,
Carmen
ckmwongAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
pjknibbsConnect With a Mentor Commented:
I hate to contradict my learned friends, but it is in fact very easy to set a running process to run on only one processor. If you run Task Manager and right-click any process in the Processes list there is an option called Set Affinity--you can use this to tell a process to run on any combination of installed processors (so, for example, you could tell IIS to run on only CPUs 1, 3 and 8 in an 8-way system).

However, I don't know if there's any way to automate this (e.g. so that the process affinity is set automatically when a process starts).
0
 
night_monkeyCommented:
i'm not sure how to answer your question, because i'm not sure i understand it.

let me summarize what it is that i think you;re asking:

you have a board in your server that supports dual processors, and you want to know if you can use it with only one processor.

the answer to that question is yes.

there may be a catch depending on the actual motheboard, but i'm quite certain you should be able to load windows server on a dual processor motherboard using only one of the slots. you're probably going to need a terminator card to put in that empty slot, though.
0
 
ckmwongAuthor Commented:
I'm sorry that I didn't explain clearly.

I have already two CPUs on my motherboard. However, I want to set the web server to run on one CPU only, since for the second CPU, I want to use it for database access. Is it possible to do so?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
asamarasCommented:
When you install Win2K on a dual CPU machine, it will use both of them and take advantage of your system. This does not mean that if you can not install the same copy of OS on a single processor board. In this case Win2K will use just the CPU available. On the other hand it is not just the OS that have to be writen properly, the application you are using has to be able to take advantage of the 2nd CPU also. If you are running Apachee as Web Server, there are some switches for in in the make and the configuration file. If you run IIS go to the technet site, you will find usefull information there, but as far as I know there is no setting to force the application to work on one CPU or to alow it to use both.
Hope helps
 
0
 
WhalrusCommented:
I think I understand the question a little bit better. You want to use only one of your CPU's to control the Web server..Correct? From what I know of Dual Processor machines that isn't possible. The whole point of dual processor is to lighten the load on the other and..well..do twice the work of a single processor. now it *may* be possible to write a script to use "processor A" for process "apache.exe" or something, but that's out of my League as I'm a lowly network tech and not a programmer. Hope you find your answer.

-Whalrus
0
 
ckmwongAuthor Commented:
I'm sorry that I didn't explain clearly.

I have already two CPUs on my motherboard. However, I want to set the web server to run on one CPU only, since for the second CPU, I want to use it for database access. Is it possible to do so?
0
 
ckmwongAuthor Commented:
I'm sorry that I didn't explain clearly.

I have already two CPUs on my motherboard. However, I want to set the web server to run on one CPU only, since for the second CPU, I want to use it for database access. Is it possible to do so?
0
 
night_monkeyCommented:
in that case, no, i'm pretty sure there is no easy way to do this.

i may be wrong, but i don't think so.
0
 
night_monkeyCommented:
let me restate that. i don't think you can do this in windows 2000 server. period. the os is designed to use two procs to manage processes efficiently, and doing what you want to do on the same system isn't efficient. at least not by most definitions.

sorry.

=)
0
 
ckmwongAuthor Commented:
Thanks a lot!!
0
 
night_monkeyCommented:
i wasn't aware of that (obviously). sorry for the misinformation, carmen. and thanks for the clarification, pjknibbs.
0
 
ckmwongAuthor Commented:
Thanks, night monkey.
0
 
WhalrusCommented:
See? Now if I would have had my Dual Processor machine running, I could have probably told him how it works like pjknibbs. Good job!

-Whalrus
0
 
ckmwongAuthor Commented:
Thanks, night monkey.
0
 
night_monkeyCommented:
wow, that's a new one. i've never seen double posts with so much time in between. btw, you're welcome. but as it turns out, i wasn't much help at all. =(

seeya.
0
 
pjknibbsCommented:
Just did some more research--there's an API function called SetProcessAffinityMask() which does the same trick, so you could get a friendly Windows programmer to whip you up a small stub application which automatically sets the affinity for a particular EXE on the system.
0
 
asamarasCommented:
thanks pjknibbs
0
All Courses

From novice to tech pro — start learning today.