Results 1 to 7 of 7
Thread: Linux Kernel HZ Tutorial?
Hybrid View
-
09-24-2006, 10:13 PM #1Junior Guru Wannabe
- Join Date
- May 2005
- Location
- California
- Posts
- 33
Linux Kernel HZ Tutorial?
Hello Guys,
I am really 'noob' when it comes down to editing/recompiling the kernel. So I'm here basically asking for someone to tell me or atleast point me in the right direction on how to do this.
I am told to make the kernel at 1000HZ to maximize the performance of my gameservers.
I've searched google and all tutorials are outdated.
Can anyone help me? :]
Btw, This is running Cent OS 4.x.xx
Thanks!!<<< Please see Forum Guidelines for signature setup. >>>
-
09-25-2006, 12:18 AM #2Junior Guru Wannabe
- Join Date
- Apr 2006
- Posts
- 63
do a search and you'll end up with this:
http://www.webhostingtalk.com/showthread.php?t=489019
the instructions are in the 6th post down, once you do the "make oldconfig" you'll see an option for kernel timer, select 1000hz and you're all set. you can optionally do "make menuconfig" and find it via the text menu but it's about 2 levels in. make oldconfig works just fine.
the only thing outdated about this is the kernel version, just substitute with the one you want and you're all set.
-
09-25-2006, 12:23 AM #3Junior Guru Wannabe
- Join Date
- May 2005
- Location
- California
- Posts
- 33
I saw that,
However, I'm so lost. Since the post is so outdated.<<< Please see Forum Guidelines for signature setup. >>>
-
09-25-2006, 12:36 AM #4Russ
- Join Date
- Mar 2002
- Location
- Philadelphia, PA
- Posts
- 2,517
just go to: "Processor type and features" > "Timer frequency (XXXXX HZ)". The default HZ for 2.4 Kernels is 100. You can also change the HZ via the "USER_HZ" variable located in: include/asm-<arch>/param.h.
param.h:
define USER_HZ 100 /* .. some user interfaces are in "ticks" */
http://www.serverwiki.org/index.php/Advanced_Tickrate
-
09-25-2006, 12:46 AM #5Junior Guru Wannabe
- Join Date
- Apr 2006
- Posts
- 63
post is outdated but the steps are the same for the new kernel, the only thing you have to change is the 2nd step "wget http://www.kernel.org....blah blah" to the kernel you want. so if you want the newest one you do:
"wget http://www.kernel.org/pub/linux/kern...-2.6.18.tar.gz " 3rd and 4th steps you need to change the numbers to whatever kernel you dl of course. 5th step you need to figure out what kernel you're on now so you can copy the config, do a "uname -r" and it will tell you what kernel you are on, substitute the correct numbers in the command. the rest just follow the instructions.
-
09-25-2006, 01:03 AM #6Web Hosting Master
- Join Date
- Nov 2005
- Posts
- 3,944
If your lost its not because the post is outdated...
hire someone to customize your kernel for you...that is a must for all servers. I'm sure some management companies will customize it for you for a good price.
although that post does make it completely simple...not sure how you managed to set up your box at all yet you can't understand that.
-
09-25-2006, 01:29 AM #7Problem Solver
- Join Date
- Mar 2003
- Location
- California USA
- Posts
- 13,681
Keep in mind increasing the HZ value will bring your cpu load up. Many people do not know this and do it to the server and then complain.
Steven Ciaburri | Industry's Best Server Management - Rack911.com
Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance