View previous topic :: View next topic |
Author |
Message |
Crg Guru
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Sat Jan 10, 2004 7:09 pm Post subject: Apache/Databases & kernel 2.6 performance. |
|
|
If you're running a webserver or a database on kernel 2.6 you'll probably find it is slower than 2.4. To correct this you should change your io scheduler to either deadline or cfq.
With the anticipatory scheduler (which is the default in 2.6) I saw a drop in an apache/mysql web app of almost 50%.
To change scheduler append:
or
to either grub or lilo.
cfq is not in the vanilla kernel - it is in the mm series or you can patch it in. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sat Jan 10, 2004 8:14 pm Post subject: |
|
|
Interesting. I just read an article on the scheduler in Linux Journal. I thought I read that deadline was the default. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Crg Guru
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Sat Jan 10, 2004 11:40 pm Post subject: |
|
|
pjp wrote: | Interesting. I just read an article on the scheduler in Linux Journal. I thought I read that deadline was the default. |
Doesn't seem to be.
vanilla linux-2.6.1/driver/block/Kconfig.iosched
Code: | config IOSCHED_AS
bool "Anticipatory I/O scheduler" if EMBEDDED
default y
---help---
The anticipatory I/O scheduler is the default disk scheduler. |
|
|
Back to top |
|
|
|