cpu limiter

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
sharp
New to forums
New to forums
Posts: 12
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sat Mar 10, 2012 10:08 am

cpu limiter

Post by sharp »

I don't really understand how the cpu limiter works? if you can create a tutorial for that that would be great.

- the percentage that I entered is just for one core? What if I have more that one core and I want some thing like "one server will be only using 1 core to run?)

Refers to : "CPU limit (%age of a core):"

- For max percentage isn't suppose to be 100? How doesn't that work?

Refers to : "set between 1 and 800"

- Is it just going to effect the cpu usage limited server ?

This is different from "one server for 1 or 2 cpu for example", so I'm confuse

What effect the cpu limit will have on other servers?
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: cpu limiter

Post by kraze »

The CPU limiter tool isn't something I would suggest you use on a routine basis. It was a tool designed for us so we could stop broken servers from using more CPU then they needed. The default limit should be fine for just about all servers.

If I remember correctly the usage is based off of normalized CPU usage which can be found by doing this calculation.
to get to normalized usage, you just multiply the overall cpu usage number that windows gives you by the number of cores
200% usage of an E3-1270 would be 25% of a single core.
400% usage of an E3-1270 would be 50% of a single core

If a server reaches the limit and exceeds it by 25% our system will automatically reboot the server. This tool cannot be used to assign servers to affinities, something we normally don't recommend anyways.

Using the tool shouldn't have any effect on your server unless your server hits that cap and starts getting rebooted.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: cpu limiter

Post by soja »

kraze, wouldn't it go like this:
on an E3-1270 12.5% CPU usage = 100% CPU(one core loaded)

100/8=12.5, so if a core is maxed out, windows would report 12.5% CPU.

I don't mean to confuse here, but your math seems wrong.

Another example:
windows reports 50% CPU usage, normalized=400%

on an E3-1270 maximum normalized CPU for a process is 800% (all 8 cores at 100%)
Not a NFO employee
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: cpu limiter

Post by soja »

sharp wrote:I don't really understand how the cpu limiter works? if you can create a tutorial for that that would be great.

- the percentage that I entered is just for one core? What if I have more that one core and I want some thing like "one server will be only using 1 core to run?)

Refers to : "CPU limit (%age of a core):"

- For max percentage isn't suppose to be 100? How doesn't that work?

Refers to : "set between 1 and 800"

- Is it just going to effect the cpu usage limited server ?

This is different from "one server for 1 or 2 cpu for example", so I'm confuse

What effect the cpu limit will have on other servers?
To answer the OP question the best I can, if you want a game server to be allowed 2 cores, allow it 200% CPU, if it goes over 225% for an amount of time the server will be rebooted. The max of the 8-thread machine is 800%, 100% for each core. The only instance I can see this being useful is some multi-threaded game that will lock up and use all cores.
Not a NFO employee
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: cpu limiter

Post by kraze »

My math seems to line up with yours.
on an E3-1270 12.5% CPU usage = 100% CPU(one core loaded)
So that's 100% normalized usage
200% usage of an E3-1270 would be 25% of a single core.(12.5x2=25)
400% usage of an E3-1270 would be 50% of a single core(25x2=50)
800% would be 100% usage across all eight cores
Don't let the fact that I said single core confuse you.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: cpu limiter

Post by soja »

Yes single core threw me off lol.
Not a NFO employee
User avatar
Edge100x
Founder
Founder
Posts: 13113
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: cpu limiter

Post by Edge100x »

The number for the CPU limiter is percentage of a single core.
200% usage of an E3-1270 would be 25% of a single core.(12.5x2=25)
You mean:
200% usage of an E3-1270 would be 25% of the full machine.(12.5x2=25)
In general, you should leave the field blank or set it to 0.
Post Reply