Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel 2.6.38 really impresses!
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Thu Mar 17, 2011 4:30 pm    Post subject: Kernel 2.6.38 really impresses! Reply with quote

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!
Back to top
View user's profile Send private message
leifbk
Guru
Guru


Joined: 05 Jan 2004
Posts: 425
Location: Bærum, Norway

PostPosted: Thu Mar 17, 2011 6:01 pm    Post subject: Re: Kernel 2.6.38 really impresses! Reply with quote

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
Back to top
View user's profile Send private message
jms.gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2009
Posts: 102

PostPosted: Thu Mar 17, 2011 7:09 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Thu Mar 17, 2011 7:18 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
bobspencer123
Guru
Guru


Joined: 19 Dec 2005
Posts: 544

PostPosted: Thu Mar 17, 2011 7:22 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Thu Mar 17, 2011 8:22 pm    Post subject: Reply with quote

See git log entry for details.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Mar 17, 2011 11:56 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Mar 18, 2011 1:32 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Fri Mar 18, 2011 2:57 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Fri Mar 18, 2011 5:39 am    Post subject: Reply with quote

Wonder how long it'll take it to show up in hardened-sources.
Back to top
View user's profile Send private message
printf
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2010
Posts: 127

PostPosted: Fri Mar 18, 2011 6:06 am    Post subject: Reply with quote

usually how long it takes for at least gentoo-sources be unmasked with this kernel?
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6223
Location: Dallas area

PostPosted: Fri Mar 18, 2011 10:32 am    Post subject: Reply with quote

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, 6.12 zen kernel, gcc 13, openrc, wayland
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Fri Mar 18, 2011 4:13 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Fri Mar 18, 2011 4:26 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Fri Mar 18, 2011 5:52 pm    Post subject: Reply with quote

Err, what's the point of using more than -j3 on a dual core machine?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Mar 18, 2011 6:05 pm    Post subject: Reply with quote

Meh, BFS is tons better, with:

Code:
alias mplayer="ionice -c2 nice -n -4 /usr/bin/mplayer"
alias make='ionice -c3 schedtool -D -e /usr/bin/make'
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Mar 18, 2011 6:17 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2609

PostPosted: Sat Mar 19, 2011 3:41 am    Post subject: Reply with quote

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.hotplug.devel/16670

The error I get on my new installation is:

Code:

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---
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Mar 19, 2011 3:50 am    Post subject: Reply with quote

I use this configuration :

Code:

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
Back to top
View user's profile Send private message
graysky
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2006
Posts: 118
Location: above the flames and the ashes

PostPosted: Sat Mar 19, 2011 10:42 am    Post subject: Reply with quote

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

Code:
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/2638-and-bfs-ck-releases.html
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sat Mar 19, 2011 10:59 am    Post subject: Reply with quote

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:
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!
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Sat Mar 19, 2011 11:10 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
graysky
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2006
Posts: 118
Location: above the flames and the ashes

PostPosted: Sat Mar 19, 2011 11:34 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
jcTux
Apprentice
Apprentice


Joined: 29 Dec 2009
Posts: 276
Location: Tours, France

PostPosted: Sat Mar 19, 2011 11:59 am    Post subject: Reply with quote

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.hotplug.devel/16670

The error I get on my new installation is:

Code:

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:
USE="extras -devfs-compat -old-hd-rules (-selinux) -test"

Code:
uname -r
2.6.38-gentoo
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sat Mar 19, 2011 12:59 pm    Post subject: Reply with quote

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.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!


Last edited by VinzC on Sat Mar 19, 2011 1:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2, 3, 4, 5, 6  Next
Page 1 of 6

 
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