how to set core/affinity's for multiple cod4 servers on 1 bo

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
exs_teabag
A semi-regular
A semi-regular
Posts: 20
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Mar 04, 2010 3:27 pm

how to set core/affinity's for multiple cod4 servers on 1 bo

Post by exs_teabag »

How is this done? Do I need to add a special line in the command line before the server is run? (which is what im thinking)...Or is there something else that needs to be done. I have 5 servers that will be run on one box. Any help would be useful! Thanks!
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: how to set core/affinity's for multiple cod4 servers on

Post by Edge100x »

The easy way to test this temporarily is to use the task manager and reassign them manually via the "Processes" page.

If you'd like to make a permanent priority change, you can use the "start" command through a shortcut to always start the application with a particular priority, as we do here for CS 1.6: http://www.nfoservers.com/forums/viewto ... =46&t=4021. For a permanent affinity change, I'd recommend using FireDaemon and running the server as a service, but you could also use one of the available affinity-setting programs that modifies the .exe directly, or you could use a manager like process.exe (http://www.beyondlogic.org/consulting/p ... ssutil.htm) to adjust things regularly, via a scheduled task or frequently-run batch file.
exs_teabag
A semi-regular
A semi-regular
Posts: 20
Joined: Thu Mar 04, 2010 3:27 pm

Re: how to set core/affinity's for multiple cod4 servers on

Post by exs_teabag »

our box is only a dual core...we have 5 servers that will need to be run on the box, wont setting a 2/3 config tax the system still?
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: how to set core/affinity's for multiple cod4 servers on

Post by Edge100x »

Generally, Windows does a pretty good job of balancing servers between CPUs. I would only recommend setting the affinity manually if you experiencing low performance or high CPU usage and can monitor results closely to make sure that the system does not become overloaded.

If your CPU usage on any core is above 70-80% or so, that will usually be noticeable in-game. We load-balance our machines here so that the busiest ones peak at around 40%, in order to maintain a solid buffer.
exs_teabag
A semi-regular
A semi-regular
Posts: 20
Joined: Thu Mar 04, 2010 3:27 pm

Re: how to set core/affinity's for multiple cod4 servers on

Post by exs_teabag »

Ok, well we run 5 servers on our box and the cpu caps at around 30% maybe when all slots are used. However we are suffering some massive lag issues. I don't know if it's pb lag, network lag, box lag, or fps lag on the box.... Any advice would be useful! Thanks again.
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: how to set core/affinity's for multiple cod4 servers on

Post by Edge100x »

What CPU usages are you seeing for the individual processes? Is one of them hitting 100%?

If the CPU usage is low, how is the memory usage -- is it low as well?

Have you tried without PB as a test?

Can you describe your lag? What are you seeing in the lagometer, and what is happening in-game?
exs_teabag
A semi-regular
A semi-regular
Posts: 20
Joined: Thu Mar 04, 2010 3:27 pm

Re: how to set core/affinity's for multiple cod4 servers on

Post by exs_teabag »

What CPU usages are you seeing for the individual processes? Is one of them hitting 100%?
A: No, around 00-25% cpu usage.

If the CPU usage is low, how is the memory usage -- is it low as well?
A: Can range from 5mb to 300mb per server.

Have you tried without PB as a test?
A: Yes with the same results.

Can you describe your lag? What are you seeing in the lagometer, and what is happening in-game?
A: Lag when people join, also periodic dead spikes (not red bars, but the lagometer shows zero green for segments, but not in the form of spikes, more like drops to 0)
Registration becomes ruined with shots on any type of players ping (from 20-300)
Also frame rate sync becomes lowered.
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: how to set core/affinity's for multiple cod4 servers on

Post by Edge100x »

That's some very strange lag that I really wouldn't expect to see with such low CPU usage (if 30% does reflect the per-process CPU usage from the task manager "Processes" page). How much memory is free on the machine?

What OS are you running, and have you tried a different one? If you're running Win2k8, have you tried turning on or off HPET?
Post Reply