Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.5.74 released.
View unanswered posts
View posts from last 24 hours

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


Joined: 26 Feb 2003
Posts: 652
Location: Wisconsin

PostPosted: Thu Jul 10, 2003 10:03 am    Post subject: Reply with quote

I return to good news, I see. Downloading mm3 right now, but likely won't test until this afternoon (it's 5 am now... ).

Lovechild: Will gladly test; should the SCHED_SOFTRR patch be used in conjunction with Con's OXint patches, or should I patch a virgin 2.5.74 kernel?

Gotta zip: sleep deprivation is making my eyes jitter back and forth randomly and I'm getting dizzy
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Thu Jul 10, 2003 10:06 am    Post subject: Reply with quote

bssteph wrote:
I return to good news, I see. Downloading mm3 right now, but likely won't test until this afternoon (it's 5 am now... ).

Lovechild: Will gladly test; should the SCHED_SOFTRR patch be used in conjunction with Con's OXint patches, or should I patch a virgin 2.5.74 kernel?

Gotta zip: sleep deprivation is making my eyes jitter back and forth randomly and I'm getting dizzy


If I understand the idea correctly it shouldn't matter, but try the -mm + O4int + sched-softrr first, that would be a rocking combo I think :)

If that failes give vanilla a spin.
Back to top
View user's profile Send private message
Tuna
Guru
Guru


Joined: 19 Jul 2002
Posts: 485
Location: Berlin

PostPosted: Thu Jul 10, 2003 10:30 am    Post subject: Reply with quote

zatalian: do you have SMP enabled? try without. my kernel hung at the same spot, and disableing SMP did the trick for me.

other issues i experienced with the kernel:

USB Mouse only wants to work if ACPI disabled. (acpi=off as kernel parameter)

nvidia module is not working right of the box (tested on mm3).
normally it would exit with that well known DMA error. but at first i was getting this:

Code:
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(--) NVIDIA(0): Linear framebuffer at 0xEC000000
(--) NVIDIA(0): MMIO registers at 0xEA000000


where it chickenend out.
Back to top
View user's profile Send private message
zatalian
Apprentice
Apprentice


Joined: 27 Aug 2002
Posts: 179
Location: Gent, Belgium

PostPosted: Thu Jul 10, 2003 12:06 pm    Post subject: Reply with quote

i have a dual p3, so disabling smp is not an option for me.
Back to top
View user's profile Send private message
Safrax
Guru
Guru


Joined: 23 Apr 2002
Posts: 422

PostPosted: Thu Jul 10, 2003 3:06 pm    Post subject: Reply with quote

How can I make a patch?
Code:
diff --normal -r (kerneldir1) (kerneldir2) > (patchname)
doesn't seem to work as expected.

I figure some people here might not be able to get the 2.5.74-mm3 + Con's + SCHEDRR to patch properly and I'd like to save em some time.

Edit: Forgot to say it had the o1,o2,o3,o4 and granularity patches.

It feels really smooth.
Back to top
View user's profile Send private message
daen1543
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2003
Posts: 85
Location: Berkeley, CA, USA

PostPosted: Thu Jul 10, 2003 6:19 pm    Post subject: Reply with quote

Tuna wrote:
nvidia module is not working right of the box (tested on mm3).
normally it would exit with that well known DMA error. but at first i was getting this:

Code:
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(--) NVIDIA(0): Linear framebuffer at 0xEC000000
(--) NVIDIA(0): MMIO registers at 0xEA000000


where it chickenend out.

I'm getting the same behavior. What's worse, is that now 2.5.74-mm1 which I had earlier running well with nvidia drivers, refuses to with the same symptoms. Weird
8O
Back to top
View user's profile Send private message
thubble
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2003
Posts: 119
Location: Winnipeg, Canada

PostPosted: Thu Jul 10, 2003 6:53 pm    Post subject: Reply with quote

Safrax wrote:
How can I make a patch?
Code:
diff --normal -r (kerneldir1) (kerneldir2) > (patchname)
doesn't seem to work as expected.


Code:
diff -ur (kerneldir1) (kerneldir2) > (patchname)

Note that I've never done this before, but this seems like the logical thing to do. Good luck.
Back to top
View user's profile Send private message
Safrax
Guru
Guru


Joined: 23 Apr 2002
Posts: 422

PostPosted: Thu Jul 10, 2003 6:55 pm    Post subject: Reply with quote

Thanks Thubble. That did the trick. I'll have a patch against 2.5.74-mm3 ready soon.

I have the patch ready but no place to host it. Its currently 2.4KB in size.
Back to top
View user's profile Send private message
bssteph
l33t
l33t


Joined: 26 Feb 2003
Posts: 652
Location: Wisconsin

PostPosted: Thu Jul 10, 2003 7:17 pm    Post subject: Reply with quote

-mm3 + O4int + granularity + SOFTRR works, but feels like a bit of a regression. Got some mouse chop when Mozilla was rendering, didn't have that in just O3int + granularity. Will likely revert to -mm3 + granularity + SOFTRR.

I think I'm understanding what's going on with SOFTRR now, and it seems nice. Had XMMS use realtime priority (not running as root), and it seemed to not lag up as badly (I don't know what it is, but right now my Nautilus + XMMS blues are back, and with a vengance) as before. I'm assuming the patch has the realtime looks the same to userspace, therefore XMMS was using SOFTRR? If I'm wrong please correct. Starting that recompile now.
Back to top
View user's profile Send private message
bssteph
l33t
l33t


Joined: 26 Feb 2003
Posts: 652
Location: Wisconsin

PostPosted: Thu Jul 10, 2003 7:19 pm    Post subject: Reply with quote

Safrax wrote:
Thanks Thubble. That did the trick. I'll have a patch against 2.5.74-mm3 ready soon.

I have the patch ready but no place to host it. Its currently 2.4KB in size.


I can host, at least for a while. PM me with it in a code block or something.

http://www.bssteph.net/kernel/patch-O4int_and_softrr0.3
There. This should patch cleanly.

To apply the patch do this..
place the patch in /usr/src/linux-2.4.74-mm3/

cd /usr/src/linux-2.5.74-mm3
patch -p1 < patch_O4int_and_softrr0.3

You MUST have a clean 2.5.74-mm3 merge of course.

Note: sorry Safrax, this is my own patch. I had problems with yours. :\
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Thu Jul 10, 2003 9:12 pm    Post subject: Reply with quote

Davide's idea is to follow text book scheduler design - less time more freqently to interactive tasks since we don't want them to saturate the CPU and thus starve other tasks, and longer time, less frequent for background jobs - at least that's what he described in his first mail.

I would set
CHILD_PENALTY to 95
and MAX TIMESLICE around 100-120, MIN stays at 10.

with this approach, since we want to deligate exponential rates from lowest to highest nice levels.

The problem of course is that the current scheduler scheme do not properly handle the two keys to scheduling seperately - Urgency and importance.

See sound, video, etc. may not be important but it's urgent - but the current nice scheme is very one dimensional.

Thus to provide handling of urgency, we have what's called interactivity - but this approach isn't really complete in it's current form.

I would like a setup that put more weight on urgency, since this would be the best approach for all setups (servers don't have many urgent tasks - thus importance scaling is the only concern). It seems however that the current setup prefers importance as the determining factor.

Maybe the way to go is to allow each driver to set an interactive flag or level and parse this to the scheduler when handling requests. This could be botched into the current framework with little trouble. It would however be ugly like hell.

Maybe we need to go look at different scheduling technics like adaptive scheduling and such to provide good scalability on the desktop PCs - the old scheduler is dumb enough not to care really, where as the new one seems to try very hard to scale (it's O(1) after all - meaning equal time to handle a request despite the number of processes, the old one scaled linearly to the amount of processes O(n)).

The hard part about scheduling is that no one scheme fits perfectly on all setups - so we have to pick the very best fit for our target, and with Linux taking on the desktop, embedded and the highend - one single scheduler hardly seems to do the trick.
Back to top
View user's profile Send private message
Safrax
Guru
Guru


Joined: 23 Apr 2002
Posts: 422

PostPosted: Thu Jul 10, 2003 10:12 pm    Post subject: Reply with quote

bssteph wrote:
Note: sorry Safrax, this is my own patch. I had problems with yours. :\


Ahh well. It was the first time I made a patch. Although I'd like to know more about why it didn't work.

Lovechild: Nice post. I agree with you on the state of the linux scheduler. I've always wondered how hard it would be to allow the user to pick a scheduler (assuming there were multiple schedulers to choose from) in menuconfig. Perhaps someday someone will code all that.
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Thu Jul 10, 2003 11:04 pm    Post subject: Reply with quote

Safrax wrote:
bssteph wrote:
Note: sorry Safrax, this is my own patch. I had problems with yours. :\


Ahh well. It was the first time I made a patch. Although I'd like to know more about why it didn't work.

Lovechild: Nice post. I agree with you on the state of the linux scheduler. I've always wondered how hard it would be to allow the user to pick a scheduler (assuming there were multiple schedulers to choose from) in menuconfig. Perhaps someday someone will code all that.


I doubt that will ever happen, I think the more likely thing to happen will be exporting a bunch for scheduler knobs to sysfs and having userspace adjust it to fit the machine - O(1) is quite flexable if you disregard the general rules (like it used to and the 2.4 backport still does).

I fear however that the current trend will continue - everytime someone suggests an interactive improvement to mainline the webserver,database bigshots yell and scream that this is the end of highend scalability and that only jerkoffs and whiners would consider this. In the end servers pay for dinner so they get to keep their high throughput. And if that happens I see the only solution being a desktop oriented fork of the kernel backed by the movers and shakers in that field - Mandrake, Lindows, SuSE, etc. Since some many things really need to be changed to make Linux really good on the desktop.
Back to top
View user's profile Send private message
bssteph
l33t
l33t


Joined: 26 Feb 2003
Posts: 652
Location: Wisconsin

PostPosted: Fri Jul 11, 2003 6:41 am    Post subject: Reply with quote

Safrax: Not why it didn't work, but there was a 0.3 for softrr and it seems the patch you gave me did 0.2. Also it applied granularity, which seemed bad for me, but then again, I remember my performance of .73+O1,2,3int being better than .74-mm3+O4.. Granularity will patch fine on its own, I imagine.

Anyway, the patch's actual error was that it complained every hunk was malformed. This may have been because of the board software replacing tabs with spaces, which I forgot about. But either way, the tabbing was enough to just have me do it myself. I'd only noticed it when I tried applying the patch.

Lovechild: Having drivers say how they wanted to be treated is probably the easiest, but as you said, certainly messy. And in the end it'd be nice if the scheduler were just good enough to do it on its own.

How much of these issues are handled by the elevators?

And the way interactivity is working now, does it say "I'm something that's certainly interacting with the user"? Because it seems a nice indication, but as far as I can tell from what you said, the better statement for these processes is "This needs to be done NOW"...the urgency.
While I was out I thought of a couple things that would be interesting to try with the scheduler, but never felt like actual fixes. Just workarounds. And admittedly, I'm not entirely knowledgable at this, but I gave it a think.

Anyway. O4+softrr is nice, there's a regression since my .73+O1,2,3 kernel, but that seems to have come from something else, as just .74-mm3 seemed slow. Once the reiserfs fix gets merged I'll probably leave mm again and just do sched patches.

(this post would have been more timely but I was literally dragged to go see T3 about halfway through it)
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Fri Jul 11, 2003 8:04 am    Post subject: Reply with quote

2.5.75 is out :)
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 Previous  1, 2, 3, 4, 5, 6
Page 6 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