LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2007, 12:18 PM   #1
highone
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
Question Help changing the kernel tickrate?


Hey all,

I'm a nub and need help understanding what I need to do here...

I'm naturally afraid of anything that is telling me to edit my kernel so I thought I should ask the masses and see what it is I should do.

#1. I am runnign a ded box with Red Hat Enterprise 4

#2. This box is used mainly for game servers... I am running a few and a VoIP program for communications and a mySQL server for recording statistics that a perl script drops in from parsing game server log files.

#3. There is a new game in town called Quake Wars and there is a recommendation in the readme of the game server install that says this:

"Kernel 2.6, configured for 1000Hz tick and other low latency settings"

Would anyone here be able to tell me this:

How do I know what the tickrate of my kernel currently is?

How would I go about changing the tick rate if I wanted to?

Would doing this hurt the mySQL server, VoIP servers, or other game servers?

I loosely understand the idea behind tick rates but I'm not near experienced enough to understand what future problems I might experience in changing this.

Any help and advice would be much appreciated...

Thanks in advance.
 
Old 09-13-2007, 12:33 PM   #2
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 305

Rep: Reputation: 30
try running your game 1st ignoring those settings to see if you get any lags if you do then come back and someone (not me) can help
 
Old 09-13-2007, 12:34 PM   #3
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
Supported tickrates on x86* archs are 100, 500 and 1000. Other values may work, but may not. Historically, x86 was at 100, but was moved to 1000 during the 2.5 development line. This increases overhead slightly, but helps timeslice accounting resolution and a host of other things. the way to change the tick rate is to change the HZ constant that is defined in include/<your-architechture>/param.h

Code:
#define HZ 1000
to

Code:
#define HZ whatever
Then, recompile your kernel.

I would not recommend doing this, but would be curious to hear how it goes if you try to do it. There are a number of better optimaztions you could make in the kernel, I believe.

Your HZ rate is almost invariably 1000 if you are on an x86* architecture. If not, you can find out by looking at the source for your built kernel at include/<your-architechture>/param.h

best of luck
 
  


Reply


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
changing the kernel name jonhewer Linux - Kernel 2 05-06-2007 10:47 PM
kernel changing and reboot linuxhippy Slackware 1 09-01-2006 09:40 AM
changing motherboard and kernel slzckboy Linux - General 2 01-07-2006 02:58 AM
changing kernel Kendo1979 Linux - Newbie 2 04-27-2005 02:53 AM
changing the kernel albean Linux - Newbie 1 11-04-2004 11:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration