PDA

View Full Version : Linux Ded Server, need some help


Serph
12-19-2003, 03:52 PM
Ok, I have a box colocated used to have a windows os on there everything worked fine, we switched over to linux..

questions when i exit ssh server stops, do i need some script to execute to start the server as like a background service or something?

when i do launch the server its really laggy like un playable before with windows OS used to be like 50 ping steady, now its jumping up and down and absolutely unplayable?.?.? like one second your in spot next second you've jumped a quarter way accross the map... any ideas here? I have my lagometer displayed and its going crazy :)

this is what I type in the command line
./cod_lnxded +set dedicated 2 +exec dedicated.cfg +map_rotate


bandwidth isn't the issue We've got plenty :)

Any help be greatly appreciated.. thx Serph

Serph
12-19-2003, 07:06 PM
Ok, so far I've figured that I need a script that will start my server,

whats better to have it run as a background service or run as an application?

Does anyone have a good template for a script to go off of, like one that will start my server and monitor if it shuts down to reboot.

as well, what file extension do I have to save the script as. And do I execute it the same way I'd execute anything else ./

again help really appreciated,

still have no clue with the ping issues jumping (like seriously unplayable)

thx, Serph

Serph
12-22-2003, 10:35 AM
so much for support :)

bump

[NFBS]Corven
12-23-2003, 01:26 AM
Well, I'm also in the process of setting up a dedicated Linux server and on the lookout for tips and config suggestions.

Maybe we can help each other, and in return others like us.

First question: what version of Linux are you using? Mandrake? One of the BSD's? Red Hat or it's new offshoot, Fedora? I'm currently running Red Hat Linux 8.

Second, are you running any other gaming servers or web services for that matter on the same box?

I'll be poking around the web for more assistance, and if I find any information, I'll post it back here for you.

[NFBS]Corven
12-23-2003, 01:36 AM
Heh, I *just* found this not two minutes ago:

Subject: Re: [cod] Disapointed - MAYDAY read this
From: Dave Whitla <dave.whitla@ocean.net.au>
Date: Sun, 14 Dec 2003 13:26:38 +1000


--------------------------------------------------------------------------------

On Wed, 26 Nov 2003 12:11 pm, Dave Whitla wrote:
> On Wed, 26 Nov 2003 12:02 pm, Mike wrote:
> > I take it you think we are server newbies? :)
> > I know maydays server is fast. My own server is a P4 2.4Ghz, 30Gb hdd,
> > 1024Mb pc2100 ram and a geforce 3. So I hardly think you can compare your
> > system to that? ;)
> >
> > With a system like this, it SHOULD work. :/
>
> Post output of 'ps aux' (execute this as root) as a start.
> 'top' output during a lag would be good if you could catch it ;-).
> Also can you post output of 'dpkg -l libc6'. It may be useful to Ryan.
>
> Dave

Just had a thought after some major irritation with my Linux box at home.

I think I have found the ultimate source of your problem if:

* you are using an Intel P4 processor with hyper-threading enabled
* you are using kernel 2.4.20 - with SMP compiled in (to make use of the HT
capability of the CPU)

Every so often ksoftirqd_CPU0 will tie up the CPU at almost 100% utilisation -
apparently stuck in some kind of loop - trying to schedule maybe. When this
happens every other process gets put on hold for a few seconds. If you don't
use X on your Linux box you probably wouldn't notice it except as the lag you
are experiencing.

Revert to non-SMP kernel and problem disappears.

Checking now to see if this is documented and fixed in a later kernel.

Dave

Serph
12-23-2003, 09:15 AM
hey I've solved the problem with some help over @ gameadmins.com

if you need some help I can walk you through it step by step, as I know what I'm doing now (I think lol) maybe I'll right a nifty linux guide

imported_187ON211
12-23-2003, 05:38 PM
Yaaaa i would not mind getting some start scripts for linux, i cant even get the server to boot up.

Serph
12-24-2003, 11:01 AM
use this to start your cod server on linux
screen ./cod_lnxded +sets gamestartup \"`date +"%m-%d-%y %T "`\" +set dedicated 2 +set net_ip xxx.xxx.xxx.xxx +set fs_basepath /where/cod/is/installed/ +set fs_homepath /where/cod/is/installed/ +set ttycon 0 +exec dedicated.cfg +map_rotate >/dev/null 2>&1 &

change whats needed

to get out of screen press ctrl and a then release and press d
this will detach you from your screen
to later return to your screen type screen -r
to make sure cod is running type
ps aux a list with all your proccesses will be displayed, cod server should be near the bottom as it was one of the last things you executed. (notice two of them, one with screen and one without this is normal)

Serph
12-24-2003, 11:04 AM
Does anyone know what a hitch warning is? I'm getting tonnes of them and I Know they are bad and is a reason why my server is f***ing up, what is it and why is it caused :)