07-03-2006, 08:19 AM (This post was last modified: 07-03-2006, 08:19 AM by kimball.)
Hey, I have been working for sometime on making a game control panel on Red Hat 9. It is on a pretty simple "server" it only has 1 processor and a big HD as well as 1 ethernet device.
I was wondering what the differences were when you run a server that functions on 2 or more CPU's (processors) and more then 1 Hard Drive with more then 1 external IP address.
How is all that done? Is it usually detected by linux or do you need to do anything differently for, say, for srcds to get the benefit of having 2 cpu's. And how do you configure your network with assinging more then 1 ip to a single server. (I've read the tut on this site about that.) and also how is differnet using 2 hd's?
I am just wondering so I can get an idea of the differences and allow srcds (and hlds) to take full advantage if I had a server that had these things, rather then have them but not be used.
My big question though is how do you configure a server to take advantage of 2 Cpu processors?
Most of the "configuration" is done by the operating system, not the SRCDS/HLDS config.
To answer your questions:
The easiest way to have multiple IPs on a single machine in Linux is to create "virtual interfaces" (sometimes called subinterfaces). With virtual interfaces, you can create several "virtual" network cards, which you can assign a unique IP to. Your typical network card would be labeled something like "eth0". A virtual interface would be something like "eth0:1". Another way would be to have several physical (real) network cards in the machine.
It's been said that SRCDS/HLDS can't take advantage of multiple CPUs. I'm not sure how true that is. If I watch "top" on my server, I can see the load switching between each CPU. I have nothing else running on my server, so it has to be the SRCDS process that's switching. Linux is doing it all for me. There was no configuration option in SRCDS for this to occur. I attached an image showing the spread.
Once again, multiple HDs isn't an issue with SRCDS and you don't need any SRCDS config options to take advantage of it. Linux is in charge of mounting the drives. You would simply have a second "mount point" for the new drive in addition to your first drive's mount point (by default "/"). I believe the Redhat mount points can be edited in "/etc/fstab".
I wish it was 4 real CPUs . It's a dual processor machine, but hyperthreading is enabled, so it creates two extra "logical" processors (one for each physical CPU).
If you're going to be starting a GSP, I would do 2x80 and put them in RAID1, as Hollanda suggested. That way your server shouldn't go down and you won't lose any information if one of the drives die.
Hollanda Wrote:Harddrive is not an issue with gameservers concerning speed. Sata wil do just fine. If you got enough to invest go for raptors or scsi in raid1.
i disagree! quake 3 engine loves to spike the cpu and HDD when changing map as it loads all of the pk3's and if you have dual processors you will likely be hosting more servers ... thus more hard drive reads!
Average RAM we tend to use is 1.5gb in "older" machines and 2gb minimum in the newer ones (xeon, amd 64bit etc) but for dual processors you would want to have more than 2gb to be safe or you will start paging
07-06-2006, 03:29 AM (This post was last modified: 07-06-2006, 03:31 AM by eXaXXion.)
Hollanda Wrote:Harddrive is not an issue with gameservers concerning speed. Sata wil do just fine. If you got enough to invest go for raptors or scsi in raid1.
I don't think you know the difference between SATA and SCSI and how they affect game servers and their performance. 7.5k, 10k, and 15k are the harddrive speeds and they are one of the most important factors you have to keep in mind when running/hosting high quality game servers. I don't know how many servers you are running/hosting, but I'm hosting more than 500 and I must have the fastest possible harddrives to meet my customers' demends: Lag Free Game Servers.