Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Kernel 2.6.38 really impresses!

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
126 posts
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next
Author
Message
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

Kernel 2.6.38 really impresses!

  • Quote

Post by VinzC » Thu Mar 17, 2011 4:30 pm

Hi all.

I couldn't wait until 2.6.38 was available so I compiled it yesterday afternoon and tested it right away. I just had forgotten to recompile my ATI video driver but in the end it keeps its promises. I ran a -j16 make against glibc and gcc, ran a video through VLC and started a huge transfer through USB to my external disk. The video ran flawlessly without a hickup. I'm really pleased to see my desktop responsive again, almost like I never saw it (but I'd exaggerate ;) ).

Honestly, taste it, try it use it! It's worth the change. Be sure to check CONFIG_CGROUPS and CONFIG_CGROUP_SCHED in your kernel config for it's not enabled by default. I guess Pappy Mc Fae will have a very good time preparing a new seed for this kernel ;) .

Cheers.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
leifbk
Guru
Guru
User avatar
Posts: 431
Joined: Mon Jan 05, 2004 9:18 am
Location: Bærum, Norway
Contact:
Contact leifbk
Website

Re: Kernel 2.6.38 really impresses!

  • Quote

Post by leifbk » Thu Mar 17, 2011 6:01 pm

VinzC wrote:Be sure to check CONFIG_CGROUPS and CONFIG_CGROUP_SCHED in your kernel config for it's not enabled by default.

Cheers.
I'm running this kernel too, I've had gentoo-sources ~amd64 in my /etc/portage/package.keywords for some time, and 2.6.38 arrived yesterday, less than two days after it was announced by Linus. That's bleeding edge :)

I can't find any CONFIG_CGROUP_SCHED. Do you mean CONFIG_SCHED_AUTOGROUP ?
Grumpy old man
Top
jms.gentoo
Tux's lil' helper
Tux's lil' helper
Posts: 105
Joined: Thu May 07, 2009 5:29 am

  • Quote

Post by jms.gentoo » Thu Mar 17, 2011 7:09 pm

you only need to select
-> General setup
-->Automatic process group scheduling [CONFIG_SCHED_AUTOGROUP]
it will select automatically the rest
Selects: EVENTFD [=y] && CGROUPS [=y] && CGROUP_SCHED [=y] && FAIR_GROUP_SCHED [=y]

if you deselect CONFIG_SCHED_AUTOGROUP and go back to configure you will see these one
-> General setup
-->Control Group support[CONFIG_CGROUPS](CGROUPS )
--->Group CPU scheduler[CONFIG_CGROUP_SCHED](CGROUP_SCHED)
---->Group scheduling for SCHED_OTHER[FAIR_GROUP_SCHED]

Conclusion :to get the famous " 233-line pach " simply
select -> General setup
-->Automatic process group scheduling [CONFIG_SCHED_AUTOGROUP] (SCHED_AUTOGROUP)
and you're good to go
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Thu Mar 17, 2011 7:18 pm

i havent read up on this a ton - is this a CPU scheduling deal, IO scheduling, which?
mainly wondering if, come time to test out .38, I should pluck out BFS and go with this, or if this isn't a replacement, and is something else entirely
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
bobspencer123
Guru
Guru
User avatar
Posts: 544
Joined: Mon Dec 19, 2005 1:50 am

  • Quote

Post by bobspencer123 » Thu Mar 17, 2011 7:22 pm

Thanks for the update on this kernel. I will have to try it out. I wonder if this also fixes the fragmentation issue between nfs transfers and xfs?
Increasingly becoming a 2 channel audio nut!
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Thu Mar 17, 2011 8:22 pm

See git log entry for details.
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Thu Mar 17, 2011 11:56 pm

cach0rr0 wrote:i havent read up on this a ton - is this a CPU scheduling deal, IO scheduling, which?
mainly wondering if, come time to test out .38, I should pluck out BFS and go with this, or if this isn't a replacement, and is something else entirely
This is about TTY-based group scheduling which is not TTY-based [any more]. :P

https://lwn.net/Articles/418884/
My Gentoo installation notes.
Please learn how to denote units correctly!
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Fri Mar 18, 2011 1:32 am

Is this overhyped patch really so much better than the BFS I've been using for the past 18 months or so? I'm watching 720p video with a gcc -j32 compile on it right now.
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Fri Mar 18, 2011 2:57 am

Jaglover wrote: This is about TTY-based group scheduling which is not TTY-based [any more]. :P

https://lwn.net/Articles/418884/
cheers for the link, interesting discussion they have going on.

having said that, I'm somewhat in Ant_P's same boat.
Sounds like heaps of hype, and while I *am* curious, things are working delightfully for me with BFS, I would be interested to see a compelling reason to make the change, rather, BFS is doing everything I need at the moment, and while I'm keen on squeezing out every last bit I can from this machine, if it's only a nominal gain, dunno, hard sell. I *am* glad mainline is starting to pay a bit more attention to interactivity requirements from desktop users, though, instead of just seeing if we can work efficiently with 4096 cores.
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
wswartzendruber
Veteran
Veteran
User avatar
Posts: 1261
Joined: Tue Mar 23, 2004 1:16 am
Location: Idaho, USA

  • Quote

Post by wswartzendruber » Fri Mar 18, 2011 5:39 am

Wonder how long it'll take it to show up in hardened-sources.
Top
printf
Apprentice
Apprentice
Posts: 157
Joined: Thu Dec 02, 2010 9:05 am

  • Quote

Post by printf » Fri Mar 18, 2011 6:06 am

usually how long it takes for at least gentoo-sources be unmasked with this kernel?
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Fri Mar 18, 2011 10:32 am

Add me to the BFS has been giving me good performance camp, though I may try 2.6.38 sometime, I'll wait for further testing.
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Fri Mar 18, 2011 4:13 pm

Ant_P wrote:Is this overhyped patch really so much better than the BFS I've been using for the past 18 months or so? I'm watching 720p video with a gcc -j32 compile on it right now.
I wouldn't say overhyped :D . IT deserved all the... «noise» there have been around. The tests I made allowed me to use my laptop as if it weren't stressed at all. Before I would have had to wait (especially with -j16) until compile was over. That's also why I had to decrease the -j value to 3 because compiling certain packages made my computer (Core2 Duo) totally unresponsive for seconds.

Those times are over!
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
pilla
Bodhisattva
Bodhisattva
User avatar
Posts: 7732
Joined: Wed Aug 07, 2002 8:19 pm
Location: Underworld

  • Quote

Post by pilla » Fri Mar 18, 2011 4:26 pm

Yes, it impressed me too. Xorg can't stop crashing on it :(
"I'm just very selective about the reality I choose to accept." -- Calvin
Top
Gusar
Advocate
Advocate
Posts: 2665
Joined: Sat Apr 09, 2005 10:19 pm
Location: Slovenia

  • Quote

Post by Gusar » Fri Mar 18, 2011 5:52 pm

Err, what's the point of using more than -j3 on a dual core machine?
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Fri Mar 18, 2011 6:05 pm

Meh, BFS is tons better, with:

Code: Select all

alias mplayer="ionice -c2 nice -n -4 /usr/bin/mplayer"
alias make='ionice -c3 schedtool -D -e /usr/bin/make'
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Fri Mar 18, 2011 6:17 pm

Gusar wrote:Err, what's the point of using more than -j3 on a dual core machine?
There is none, bar showing off. In fact -j3 itself is only needed because the vanilla scheduler has flaws; BFS on a dual core reaches peak efficiency at -j2.
Top
NathanZachary
Bodhisattva
Bodhisattva
User avatar
Posts: 2627
Joined: Tue Jan 30, 2007 1:50 am

  • Quote

Post by NathanZachary » Sat Mar 19, 2011 3:41 am

It seems that there is a problem with 2.6.38 though. udev won't build with it:

It seems that the problem is with videodev.h being removed from 2.6.38:

http://comments.gmane.org/gmane.linux.h ... evel/16670

The error I get on my new installation is:

Code: Select all

extras/v4l_id/v4l_id.c:31:28: error: linux/videodev.h: No such file or directory
There are other errors, but it fails to build (with or without the 'extra' USE flag). :(

Anyone have suggestions?
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Sat Mar 19, 2011 3:50 am

I use this configuration :

Code: Select all

General stuff
[*] Control Group support
     [ ]   Example debug cgroup subsystem
     [*]   Namespace cgroup subsystem                                                                               
     [*]   Freezer cgroup subsystem                                                                            
     [*]   Device controller for cgroups                                                                          
     [*]   Cpuset support                                                                                          
     [*]     Include legacy /proc/<pid>/cpuset file                                                               
     [ ]   Simple CPU accounting cgroup subsystem                                                                
     [ ]   Resource counters                                                                                     
     -*-   Group CPU scheduler  --->                                                                          
    <*>   Block IO controller                                                                            
          [ ]     Enable Block IO controller debugging 
[*] Automatic process group scheduling
Top
graysky
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 118
Joined: Sat Nov 25, 2006 12:46 pm
Location: above the flames and the ashes

  • Quote

Post by graysky » Sat Mar 19, 2011 10:42 am

PaulBredbury wrote:Meh, BFS is tons better, with:

Code: Select all

alias mplayer="ionice -c2 nice -n -4 /usr/bin/mplayer"
alias make='ionice -c3 schedtool -D -e /usr/bin/make'
+1 for this. It'll be interesting to see how Con implements the 2.6.38-ready BFS with this code.

http://ck-hack.blogspot.com/2011/03/263 ... eases.html
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Sat Mar 19, 2011 10:59 am

Gusar wrote:Err, what's the point of using more than -j3 on a dual core machine?
There are plenty of such questions with GNU/Linux! And the answer would always be: «because I can!»
NathanZachary wrote:It seems that there is a problem with 2.6.38 though. udev won't build with it:

It seems that the problem is with videodev.h being removed from 2.6.38:[...]

Anyone have suggestions?
I have udev-162 and it compiles fine. What version do you have?
PaulBredbury wrote:Meh, BFS is tons better, with:

Code: Select all

alias mplayer="ionice -c2 nice -n -4 /usr/bin/mplayer"
alias make='ionice -c3 schedtool -D -e /usr/bin/make'
The difference is 2.6.38 will automatically assign time slices without any overhead. I also used to renice (not the way you've shown, which I didn't know) but I found it boring in the end :D . Say 2.6.38 and AUTO_CGROUPS are for the lazy then ;) .
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
Gusar
Advocate
Advocate
Posts: 2665
Joined: Sat Apr 09, 2005 10:19 pm
Location: Slovenia

  • Quote

Post by Gusar » Sat Mar 19, 2011 11:10 am

VinzC wrote:There are plenty of such questions with GNU/Linux! And the answer would always be: «because I can!»
Which is a valid answer as such. But still, -j16 on a dual-core has no real value, it's ridiculous. And if this "miracle" patch only does something at a ridiculous setting, it's equally valid to question the "miracleness" (yes, that's a word! :)) of it.
Top
graysky
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 118
Joined: Sat Nov 25, 2006 12:46 pm
Location: above the flames and the ashes

  • Quote

Post by graysky » Sat Mar 19, 2011 11:34 am

Gusar wrote:
VinzC wrote:There are plenty of such questions with GNU/Linux! And the answer would always be: «because I can!»
Which is a valid answer as such. But still, -j16 on a dual-core has no real value, it's ridiculous. And if this "miracle" patch only does something at a ridiculous setting, it's equally valid to question the "miracleness" (yes, that's a word! :)) of it.
This is what Con argued. Why optimize a kernel to perform at insane workloads when 99.99 % of the user don't use their machines as such.
Top
jcTux
Apprentice
Apprentice
User avatar
Posts: 276
Joined: Tue Dec 29, 2009 3:57 pm
Location: Tours, France

  • Quote

Post by jcTux » Sat Mar 19, 2011 11:59 am

NathanZachary wrote:It seems that there is a problem with 2.6.38 though. udev won't build with it:

It seems that the problem is with videodev.h being removed from 2.6.38:

http://comments.gmane.org/gmane.linux.h ... evel/16670

The error I get on my new installation is:

Code: Select all

extras/v4l_id/v4l_id.c:31:28: error: linux/videodev.h: No such file or directory
There are other errors, but it fails to build (with or without the 'extra' USE flag). :(

Anyone have suggestions?
Udev compiles fine here

Code: Select all

USE="extras -devfs-compat -old-hd-rules (-selinux) -test"

Code: Select all

uname -r
2.6.38-gentoo
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Sat Mar 19, 2011 12:59 pm

VinzC wrote:There are plenty of such questions with GNU/Linux! And the answer would always be: «because I can!»
Gusar wrote:Which is a valid answer as such. But still, -j16 on a dual-core has no real value, it's ridiculous. And if this "miracle" patch only does something at a ridiculous setting, it's equally valid to question the "miracleness" (yes, that's a word! :)) of it.
graysky wrote:This is what Con argued. Why optimize a kernel to perform at insane workloads when 99.99 % of the user don't use their machines as such.
Well, I really don't like percentages like this (i.e. what's this estimation based on?) but I agree with you: most GNU/Linux users won't probably load their system that much hence the impact of the patch is limited. But the main advantage is there's no longer a need to manually tweak performance using a command. It's handled automatically, which clueless users will probably appreciate.

OTOH -j16 was indeed for the sake of testing. Of course it makes no sense to raise that number that much. [I've compiled hugin and then I saw the effect: computer not responsive for a while, high latency, high I/O rate and much longer waits.] But instead of restoring -j3, I'll keep -j5 for a while and see.

Finally, even if this patch might happen to prove useless for a majority of users, it doubtlessly comes handy with Gentoo just because compiling is a common task. No need to renice, just compile as much as you want and watch. That's the point.
Last edited by VinzC on Sat Mar 19, 2011 1:27 pm, edited 1 time in total.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
Post Reply

126 posts
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic