Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am being sponsored by a company with a counterstrike source server. I am trying to optimize the server CPU usage.
The problem I am having is that it seams that a severe part of the servers CPU usage is being used by "US" part, around 60%. I am seeing the is the "top" command. This is a little wierd because on my other linux server the US part of the server is only using about 4-5% TOP!
How can i see which processes (or systemfunctions) are using these 60% (well around 30 since its an HT CPU)
This is how it looks like in TOP:
Cpu0 : 1.7% us, 2.7% sy, 0.0% ni, 95.7% id, 0.0% wa, 0.0% hi, 0.0% si
Cpu1 : 58.0% us, 0.7% sy, 0.0% ni, 38.3% id, 0.0% wa, 1.0% hi, 2.0% si
It MIGHT be that i have totally missinterped the TOP command and the "us" part is unused CPU space. Then the question is how can i get the server program to use that space. Because the server is lagging and dropping in FPS, obviously not getting the CPU power it needs.
How about that - seems it is too. Too long since I ran with the default obviously.
So, ... I take it that means you aren't seeing any candidate(s) as the big consumer ???.
Start looking for several (lots) of the same thing then - maybe a script, maybe just a setting somewhere causing spawning.
You aren't mis-interpreting the data; "us" is user (i.e. non-kernel) CPU consumption - idle time is listed as "id".
I am running a gameserver, Low-Latency high-performance program. The server program is lagging, not getting enough performance, and IF top is correct there are still alot of CPU space to be used. Why doesn't the server program get access to this unused CPU space?
Would the program get access to the CPU space if i would renice it to like -10 or something?
Or are there some other kind of command i can process to give it access to more beef? =)
O.K. - that's a different question than I thought you were asking.
Start with the obvious - seems you have no need of multithreading, so turn off H/T and see if that helps. Some code works worse with it rather than better.
Some (most ???) BIOS have an option to turn it off.
Run with that and see how it goes.
Re-nice'ing might work, but if it's the only workload, possibly won't be of any benefit.
Other than that, you might be looking at kernel options (like pre-emptible) and tunables (like swappiness). Have a search on LQ for appropriate threads - I don't run servers that need this sort of attention.
Yeah, HT would be a good option to turn off. The strange part about HT in srcds (Counterstrike source server software) is that the performance is accually diminised without HT, I guess the software is somehow optimized for HT (It does say that it uses the I686 arch and if I recall correctly I686 har HT tech involved in it, I may be wrong on this point though.
Yeah, I've thought about recompiling the kernel to. The only problem is that I am not root on the server and the server manager hasn't installed the programs a wan't him to so i can compile a new kernel. A new kernel would probobly help alot.
Exacly what options do you think I would need to get the most out of my P4 server? I know some but more advice is always better
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.