slow down in 2.6 vs 2.4
Hi Phy
You said:
Over the last two days I have been struggling with understanding why 2.6.x kernel is slower than 2.4.21/23 kernels. I think I have a test case which demostrates this issue.
make times:
2.4.21:
323.68user 56.07system 6:35.77elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (3138783major+3818347minor)pagefaults 0swaps
2.6.7-rc3-s63 (SPA scheduler):
334.01user 69.86system 7:01.47elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (13301major+6931745minor)pagefaults 0swaps
2.6.7-rc3:
336.17user 68.41system 7:02.47elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (13301major+6931745minor)pagefaults 0swaps
----
Your 2.4 compile is showing a massive number of major page faults. Just how big is this compile you do? Can you try running the 2.6 compile with
echo 100 > /proc/sys/vm/swappiness
Con
Oh, there is an important bit of information missing, the test is compiling gcc-3.4.0 using gcc-3.2.3 with binutils-2.13.2.1. The machine used is a dual 2.8GHz Xeon w/8G RAM (no ht).
config line is --enable-languages=c,c++
--prefix=/usr/tmp/foo
BTW, the unit never swaps when building.
Thanks!
Phy
Quoted 36 lines · --- Con Kolivas
Hi Phy
You said:
Over the last two days I have been struggling with understanding why 2.6.x kernel is slower than 2.4.21/23 kernels. I think I have a test case which demostrates this issue.
make times:2.4.21:
323.68user 56.07system 6:35.77elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (3138783major+3818347minor)pagefaults 0swaps2.6.7-rc3-s63 (SPA scheduler):
334.01user 69.86system 7:01.47elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (13301major+6931745minor)pagefaults 0swaps2.6.7-rc3:
336.17user 68.41system 7:02.47elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (13301major+6931745minor)pagefaults 0swaps----
Your 2.4 compile is showing a massive number of major page faults. Just how big
is this compile you do? Can you try running the 2.6 compile with
Quoted 4 lines
echo 100 >
/proc/sys/vm/swappinessCon
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
You might check out this URL:
http://www.usenix.org/publications/library/proceedings/als01/full_papers/ezolt/ezolt_html/
It may not be directly relevent even though the discussed problem is similar, but the tips on how to break down the problem more than likely are.
-Paul
Quoted 28 lines · Con Kolivas
Hi Phy
You said:
Over the last two days I have been struggling with understanding why 2.6.x kernel is slower than 2.4.21/23 kernels. I think I have a test case which demostrates this issue.
make times:2.4.21:
323.68user 56.07system 6:35.77elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (3138783major+3818347minor)pagefaults 0swaps2.6.7-rc3-s63 (SPA scheduler):
334.01user 69.86system 7:01.47elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (13301major+6931745minor)pagefaults 0swaps2.6.7-rc3:
336.17user 68.41system 7:02.47elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (13301major+6931745minor)pagefaults 0swaps
Quoted 2 lines
----
Your 2.4 compile is showing a massive number of major page faults.
Seems to be roughly the same total number of page faults in all three cases but there's been a big shift from majors to minors for the 2.6 kernels which I would have thought would improve performance?
Peter
Signature · 4 lines
Dr Peter Williams [email protected] "Learning, n. The kind of ignorance distinguishing the studious." -- Ambrose Bierce