SRCDS Steam group


upgrade kernel 2.4 to 2.6
#1
Please excuse my most basic of requests.

I am very new to this - but i would like to get my feet wet asap.

As the subject says, i would like to upgrade my kernel on my dedicated box from 2.4 to 2.6 as i am suffering from the 50fps max issue.

details:

gcc --version
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
ldd --version
ldd (GNU libc) 2.3.2
uname -a
Linux definitivegaming-166 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
access: ssh-> root


system specs:
3.0ghz p4, 1gb ram.

the question is:
how do i perform the upgrade?

Dan.
Reply
#2
Well, im not really a linux pro, but in the console try typing fps_max 500 and see if anything changes.
Reply
#3
If you're new to linux.. I wouldn't perform a kernel upgrade UNLESS you're sitting in front of the box. One wrong screw up and your kernel will panic and will no longer boot up.

What i would do is try adding -ticrate 66 before trying a kernel upgrade.. then if that don't work.. find someone who is good with linux and is someone you trust with root access to your box.
[Image: userbar_wow.jpg]
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Reply
#4
thanks for the suggestions, they were the first things i tried.

this is the content of one the private match servers sh file which is used to boot the server from cmd:

#!/bin/sh

cd /home/superserver/source3
# Server startup parameters for 217.146.91.166:27030
screen -dmS source3 ./srcds_run -game cstrike -pingboost 1 +ip 217.146.91.166 +port 27030 -secure -tickrate 100 +maxplayers 12 +sv_stats 0 +map de_aztec


echo
echo CultGaming Match Server Started
echo
in

through hlsw:

rcon fps_max returns 300 by default, changing this value to 400 or more still returns only 50 fps by looking at rcon stats.

its the same for the other servers on the box.


other threads have mentioned the same sypmtoms and the way around it was by performing the upgrade.

Dan
Reply
#5
If its a managed server.. You should request your server to have your kernel upgraded by the dataceneter.. though it might be unmanaged. I'm experienced in kernel upgrades.. its not THAT hard.. its just about getting all your hardware into the kernel and what not.
[Image: userbar_wow.jpg]
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Reply
#6
or you could just patch your 2.4 kernel with the variable hz patch,here

patch the kernel
then do a "make menuconfig" and in the "general menu" change the latency timer from 100hz to 1000 hz and wa'la your srcds will run balls out

to patch, copy the .patch file into the kernel tree typically /usr/src/linux then type "patch -p1 < vhz-j64-2.4.23.patch" hit enter
then do a "make clean" then "make menuconfig" set up everything you want including the latency timer and then exit menu config, then do a "make dep && make bzImage modules modules_install", then copy the bzImage file from arch/i386/boot/bzImage to your /boot directory, make sure its mounted though and rename bzImage to something like kernel-2.4.xx-xx then add it to your lilo.conf or menu.lst depending on your boot loader. Im assuming you have all the nesecary tools to build a kernel and the actual kernel tree. HTH
Reply
#7
i think its best that i practice on a box in front of me first before i attempt to do it remotely.
Reply
#8
i dont need to do it earlier - my gsp were cleaning up their boxes and accidently deleted the contents of mine.
they are replacing it with a new fedora core as i type this.

Thanks to everyone who gave me advice.
Dan
Reply
#9
Fasga Wrote:Well, im not really a linux pro, but in the console try typing fps_max 500 and see if anything changes.

Just to quickly correct this, if you add panic=30 to your bootloader (in /boot/grub/menu.lst), if the kernel screws up, it will revert to the previous kernel, just don't remove the last 1, just in case.

You can also you apt-get install kernel to update to the latest version, of coarse, if you want to compile it yourself and tweak and such, your gunna have to learn what ur doing.

If ur using debian, its pretty easy, you can use aptitude to do most of the work for you, if FC1-4, its a little bit more involved, still fairly simple tho.
Reply
#10
dozier768 Wrote:or you could just patch your 2.4 kernel with the variable hz patch,here

patch the kernel
then do a "make menuconfig" and in the "general menu" change the latency timer from 100hz to 1000 hz and wa'la your srcds will run balls out

to patch, copy the .patch file into the kernel tree typically /usr/src/linux then type "patch -p1 < vhz-j64-2.4.23.patch" hit enter
then do a "make clean" then "make menuconfig" set up everything you want including the latency timer and then exit menu config, then do a "make dep && make bzImage modules modules_install", then copy the bzImage file from arch/i386/boot/bzImage to your /boot directory, make sure its mounted though and rename bzImage to something like kernel-2.4.xx-xx then add it to your lilo.conf or menu.lst depending on your boot loader. Im assuming you have all the nesecary tools to build a kernel and the actual kernel tree. HTH

Hi

I just tryed that and got the following error at the "make dep && make bzImage modules modules_install" part

make[3]: *** [proc_misc.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20-8/fs/proc'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/fs/proc'
make[1]: *** [_subdir_proc] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/fs'
make: *** [_dir_fs] Error 2


any ideas on how to get it to work?

or how to get kernal 2.6 for Redhat 9 and Redhat Enterprise Linux 3.0AS
cos i cant seem to find it, and this 50fps max no matter what I do, isnt good for bussiness


Thanks

PayableOnDeath
Reply
#11
Are you patching it against a vanilla Kernel or the redhat one?, i dont know if it will patch cleanly against a redhat kernel because they are heavily altered, i use the 2.4.24 vanilla kernel from kernel.org and the patch applies nicely to it, I havent used redhat in a long time but you shouldnt have any problem running a vanilla kernel you can get it from http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2, copy it into your /usr/src directory and do a "tar -xvjpf linux-2.4.24.tar.bz2" from the console then do a "cd linux-2.4.24" and make menuconfig etc... dont forget to copy the patch in the linux-2.4.24 directory too and apply it.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)