Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache/Databases & kernel 2.6 performance.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Sat Jan 10, 2004 7:09 pm    Post subject: Apache/Databases & kernel 2.6 performance. Reply with quote

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:
Code:
elevator=deadline

or
Code:
 elevator=cfq


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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Jan 10, 2004 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Sat Jan 10, 2004 11:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum