Advertisement

Got 2.6... diferences?

Started by January 14, 2004 11:16 AM
6 comments, last by -vic- 20 years, 8 months ago
I just installed kernel 2.6.0 avaliable on Debian sid repositories (got the kernel image compiled; didn''t compile it myself), and... um... maybe it is a little more responsive, but... err... not quite what i was expecting :/ I have the impression the applications aren''t starting much faster (if at all)... is there a way i can measure/benchmark that? I''ve read people say that "it will feel like you got new hardware"; but, err, i didn''t feel like that... What about you guys? Victor.
c[_]~~
It''s a lot more responsive than 2.4 under 100% CPU load. I''m running Gentoo on a PII, so that''s quite often...
Advertisement
The responsiveness work in 2.6.0 had to do mostly with fairness (having multiple processes get the right amount of CPU time) than with throughput (total efficiency of CPU time usage). 2.4 was great at the latter already but only okay a fairness. 2.6 has a couple schedulers to choose from; the default (the "anticipatory scheduler", if I''m not mistaken) uses a heuristic that is pretty good at figuring out when to give what CPU time and focuses about equally on fairness and throughput. There''s another scheduler with a heuristic that''s all about latency and less focused on throughput (how long it takes something to start once a process decides to do it).

I''m pretty sure you can choose the scheduler at boot time instead of just at compile time, but I''m not sure having not yet tried 2.6 myself (although the Debian Sid packages tempt me too ).

(I''m not a "real" kernel aficionado, so feel free to correct any mistakes in that...)

If X is still niced (the default is "nice -10" in Debian, at least a short while ago), unnice it. The AS (not sure about the other schedulers) really really pays attention to nice values and it will cause X to get too much CPU time. You can change the nice value for X in the file /etc/X11/Xwrapper.config.

quote: Original post by Null and Void
The responsiveness work in 2.6.0 had to do mostly with fairness (having multiple processes get the right amount of CPU time) than with throughput (total efficiency of CPU time usage). 2.4 was great at the latter already but only okay a fairness. 2.6 has a couple schedulers to choose from; the default (the "anticipatory scheduler", if I''m not mistaken) uses a heuristic that is pretty good at figuring out when to give what CPU time and focuses about equally on fairness and throughput. There''s another scheduler with a heuristic that''s all about latency and less focused on throughput (how long it takes something to start once a process decides to do it).

I''m pretty sure you can choose the scheduler at boot time instead of just at compile time, but I''m not sure having not yet tried 2.6 myself


Umm... so you think i should try the second scheduler? I''ll search more about it... (hope i can get it on boot time instead of compile time )


quote:
(although the Debian Sid packages tempt me too ).


Hah, talk about temptation!! I actually was going to install the 2.4.22 kernel... but err, i was so tempted... my precisouss... we wantss it!


quote:
If X is still niced (the default is "nice -10" in Debian, at least a short while ago), unnice it. The AS (not sure about the other schedulers) really really pays attention to nice values and it will cause X to get too much CPU time. You can change the nice value for X in the file /etc/X11/Xwrapper.config.


Hmmm.. thanks for that hint! I''ll unnice it.

Victor.

c[_]~~
change the nice value by running

dpkg-reconfigure xserver-common (i think)
Oh, by the way...

I understand the new kernel is focused on scalability and all... but, really, i got a bit frustrated because i heard so much talk like "feels like i''ve got a new system!", "feels like it duplicated my processor speed"; and i didn''t feel that...

The thought in my mind was: "either i''m doing something wrong, or these people are using some terribly slow distro... or maybe they''re just trolling."

Victor.
c[_]~~
Advertisement
quote: Original post by -vic-
I understand the new kernel is focused on scalability and all... but, really, i got a bit frustrated because i heard so much talk like "feels like i''ve got a new system!", "feels like it duplicated my processor speed"; and i didn''t feel that...


Anyone who said that was probably exaggerating. To me, 2.6.0 generally feels a little bit smoother and a little bit more responsive, but its only really noticable under load. Run some stress tests (like the cpuburn package or something) and you might notice it.

Image loads when I''m online since I''m too lazy to find a permanent host.The following statement is true. The previous statement is false.
Shameless promotion:
FreePop: The GPL Populous II clone.

My stuff.Shameless promotion: FreePop: The GPL god-sim.
i haven''t noticed many differences apart from this one one issue i used to have (when using 2.4.xx) where xmms would go all crackly/jumpy when doing things like changing tabs in mozilla or starting an application, so i always had to increase its priority to stop the problem. but with 2.6 i don''t have the problem so i guess the improved scheduling is helping.

This topic is closed to new replies.

Advertisement