LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 12-08-2008, 09:24 AM   #1
eSport-Eu
LQ Newbie
 
Registered: Dec 2008
Location: Paris, FRANCE
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Multi-Core CPU Load - hlds & srcds (hl1 and hl2)


Hello everyone,
I hope my post won't sound too inaccurate or isn't redundant (I haven't found much in the Linux community on the subject. I run a little GSP (Game Server Provider) company here in Europe and I am having difficulties to optimize my IT system for gaming.

One of the things I would like to know is how to monitor (is there a tool) each "core" of a CPU (we have a couple of Dual Cores and a bunch of Quad Cores) ?

The context of this question is optimization: I currently host about 15 gameservers / server and would like to use "core" load balancing (since from what I read, hlds and srcds don't support hyperhtreading) in order to make each "core" balance the total number of gameservers running on the CPU.

There are never more than 8 to 10 gameservers launched on a server at the same time, son I was wondering if I could force the CPU to launch 2 or 3 gameservers per core.

So basically:
- does anyone know if this is possible ? and if so, how ?
- is there a tool that can monitor each CPU "core" individually ?

BTW, I'm running Debian on all servers and gameservers are all on a big nfs server, processes are launched on different servers from there.

I thank all of you for the time you take to read and answer my questions.
Best regards,
Arnaud
eSport-Eu
 
Old 12-09-2008, 02:50 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
cgroup (control group) containers will probably be your best bet. This allows you to isolate specific CPUs/cores to separate "containers", and assign workloads to those containers.
With (very) recent kernels you can also assign relative weights to containers - say 35%/65% if you have a preferred workload. See ../Documentation/cgroup.txt
 
Old 12-09-2008, 05:23 AM   #3
eSport-Eu
LQ Newbie
 
Registered: Dec 2008
Location: Paris, FRANCE
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks, I'll look into it How is the application "load" balanced now (I mean with le linux (debian) out of the box ?
 
Old 12-09-2008, 05:56 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Mmmm - scheduler 101 ... must be something out there on the 'net.
Recent kernels use the CFS (completely fair scheduler) - the management of containers I mentioned above was added by Ingo recently. Have a read of this
I have no idea whether Debian have the requisite (kernel) options selected.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi -Core CPU Load Balancing RHEL 5 plemmons Red Hat 5 02-24-2008 04:24 AM
'ps' command - true meaning of 'pcpu' & 'time' values in a multi-CPU environment MarkTurbo Linux - Newbie 5 02-02-2008 04:48 AM
Multi-core CPU Question tntcoder Linux - General 3 06-26-2007 06:54 AM
CPU load on dual core systems MensaWater Linux - General 9 07-11-2006 02:12 PM
kernel 2.4.20-28.7 & cpu load Rodion Red Hat 1 02-18-2005 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration