Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-14-2006, 02:04 AM   #1
Registered: Apr 2004
Distribution: Gentoo
Posts: 134

Rep: Reputation: 16
New CentOS kernel for game server

I am helping a friend set up a Counter Strike server using CentOS Server 4.2. We want to optimize the kernel for the highest possible FPS on the server, which I found after searching is affected by the clock resolution. In the newer 2.6 kernels, this I believe can be edited in the CONFIG_HZ variable (ie, setting it to 1000 instead of 250). However, this version of CentOS uses the 2.6.9-22.EL kernel, which apparently is to old to have this option.

I tried downloading a vanilla kernel from (2.6.16, the latest version), running make oldconfig, and then changing the variable, but it resulted in a kernel panic with the error "attempted to kill init." After more searching I found that the CentOS kernels are heavily patched.

So, I have two questions. First of all, is there another parameter, or something else I can edit to make the 2.6.9-22.EL kernel source compile a kernel with the different clock resolution? Or second, is there a copy of the latest (or a later) kernel source that has the CentOS patches? I've searched, but the 2.6.9-22.EL source was the latest I could find.
Old 05-14-2006, 04:55 AM   #2
Registered: Mar 2005
Location: Cascade Mountains WA USA
Distribution: Linux From Scratch (LFS)
Posts: 149

Rep: Reputation: 16
you simply misconfigured your kernel.
you do not need to tweak any kernel settings in the centos distro
just use the default kernel
it will do just fine as is for what you are asking
Old 05-14-2006, 09:05 PM   #3
Registered: Apr 2004
Distribution: Gentoo
Posts: 134

Original Poster
Rep: Reputation: 16
By default kernel, do you mean to just not use the old config at all? Also, here is the exact message, when I try to boot to the new kernel:

Activating logical volumes
2 logical volume(s) in volume group "VolGroup00" now active
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
mount: error 2 mounting none
Switching to new root
switchroot: mount failed:22
umount /initrd/dev failed: 2
Kernel panic - not syncing: Attempted to kill init!
Here is my grub.conf:


title CentOS (2.6.16)
root (hd0,0)
kernel /vmlinuz-2.6.16 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.16.img

title CentOS_ServerCD (2.6.9-22.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-22.EL ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.9-22.EL.img
The top entry is the new kernel, while the bottom one is the kernel that came with the distro and will boot.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Centos 4 Server Reboots Randomly? Terroth Linux - Software 3 02-28-2006 04:55 PM
how to configure CentOS as internet server? czarjohnph Linux - Networking 2 01-16-2006 01:29 AM
problem with install on centos server elrehab Linux - Software 1 10-05-2005 06:18 PM
Dedicated Server with CentOS 4.x and DNS Xoleum Linux - Newbie 3 09-10-2005 03:48 PM
game not receving game list from master server Rnastyracer Linux - Games 2 04-02-2004 11:20 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:15 AM.

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