Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Making a kernel patchset..
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
m0p
Apprentice
Apprentice


Joined: 20 Jun 2005
Posts: 205
Location: en_GB

PostPosted: Tue Jul 26, 2005 3:43 pm    Post subject: Making a kernel patchset.. Reply with quote

I'm trying to make a patchset for personal use. So far I have got linux-2.6.12.tar.bz2, unpacked it, applied the realtime-preempt patch, mm2, patch-2.6.12.3, patch-2.6.12-ck3, genetic-as, genetic-io and genetic-lib for 2.6.12. All of the patches applied cleanly, but nothing appears for them in Kconfig. Can anyone help me out here?

EDIT: The reason they compiled cleanly and the menuconfig entries didn't appear was because I used --dry-run! oops! Now I get loads of reversed patch errors.
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Tue Jul 26, 2005 3:49 pm    Post subject: Reply with quote

I don't believe you applied all the patches cleanly, reason?

ck3 + realtime-preempt = more rejects than you have ever dreamed of ...

i suggest you get yourself alot of kernel docs to read before trying to tackle it,
after you read them you also WILL know what you are doing....

Sorry to disappoint you here :?

T
_________________
Retired gentoo user
Back to top
View user's profile Send private message
m0p
Apprentice
Apprentice


Joined: 20 Jun 2005
Posts: 205
Location: en_GB

PostPosted: Tue Jul 26, 2005 3:58 pm    Post subject: Reply with quote

Well, I actually got realtime_preempt to patch ontop of ck3 with 1 reject only, in asm-i386/string.h, or something like that. I just told it to leave that one out, although it will probably break stuff.

EDIT: Well, as I won't be able to use the staircase scheduler, is there any other good schedulers out there? Is the Zaphod CPU scheduler any good? Genetic-lib has a plugin for it, so that might be interesting.
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Tue Jul 26, 2005 4:11 pm    Post subject: Reply with quote

Genetic scheduler is the worst you can choose for a desktop system...

AFAIK zaphod is also a server cpu-sched by design, so dont expect too much if you intend to go for it....
_________________
Retired gentoo user
Back to top
View user's profile Send private message
m0p
Apprentice
Apprentice


Joined: 20 Jun 2005
Posts: 205
Location: en_GB

PostPosted: Tue Jul 26, 2005 4:12 pm    Post subject: Reply with quote

So, can you give me any scheduler recommendations for a desktop system?
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Tue Jul 26, 2005 4:17 pm    Post subject: Reply with quote

staircase and ingosched are the only reasonable ones atm.

also, nicksched is an option too, although for the new versions i'd recommend
you to email nick piggin, as he doesn't release the minor updates officially
(at least not the last time i checked, he mailed it to me some time after i contacted him,
shortly after he did some smp updates to it....). but let's be honest, none of these will make your desktop
a space shuttle, and also, except for the genetic cpu-sched, none will make your desktop
extremely lame or unusable.....
_________________
Retired gentoo user
Back to top
View user's profile Send private message
m0p
Apprentice
Apprentice


Joined: 20 Jun 2005
Posts: 205
Location: en_GB

PostPosted: Tue Jul 26, 2005 4:20 pm    Post subject: Reply with quote

Ok, but what about the genetic anticipatory io sched, is that good? Or should I stick with CFQ? The reason I don't wanna use staircase is because it (probably) won't patch with realtime_preempt there, which I use. Or is it only the ck patch that causes this conflict?
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Tue Jul 26, 2005 4:28 pm    Post subject: Reply with quote

now, let's put one thing clear:
realtime preemption is definitely not what you would like
to run on a computer which does something else than
professional audio processing or, well, nothing.

If you try to run a few applications simultaneously (or even emerge --sync AND compile)
or start 2 xsessions and play a game in one of them, you will get a hardlock or maybe just choppiness
leading to unusability in best case.

that's my two cents to RTP patch.
For "low latency desktop" mode of realtime preempt patch,
you will gain the same by applying the sched-* patches from mm tree,
which are already in love for example.

cheers

T
_________________
Retired gentoo user
Back to top
View user's profile Send private message
m0p
Apprentice
Apprentice


Joined: 20 Jun 2005
Posts: 205
Location: en_GB

PostPosted: Tue Jul 26, 2005 4:37 pm    Post subject: Reply with quote

Ok, so it looks like I will scrap the rtp thing then. What io scheduler would you recommend for a desktop that will be either: compiling lots and lots of stuff, general desktop stuff, or if it's not any of those, gaming? I'm using the genetic-as scheduler now, and it seems good enough, but is there anything better? You said that genetic is the worst scheduler for desktop, but did you mean CPU or IO?
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Tue Jul 26, 2005 4:41 pm    Post subject: Reply with quote

cpu ofcourse....

although, i assume genetic-as is worse than non-genetic as well, only the difference is not measurable...

i generally use anticipatory without genetics, although cfq-ts is also a very good choice.
probably thats why cfq-ts is now in mainline 2.6.13.....noticed it's absence in 2.6.13 ck release, right? ;)

cheers

T
_________________
Retired gentoo user
Back to top
View user's profile Send private message
m0p
Apprentice
Apprentice


Joined: 20 Jun 2005
Posts: 205
Location: en_GB

PostPosted: Tue Jul 26, 2005 4:45 pm    Post subject: Reply with quote

Hmmm, I can't get the staircase patch to patch cleanly on a stock 2.6.12 kernel. The staircase patch I am using is from 2.6.12-ck3.
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Tue Jul 26, 2005 4:47 pm    Post subject: Reply with quote

HINT: series files aren't there just for fun ;)

try patching all patches listed in it before staircase in the right order, dont forget the 2.6.12.x update patch ;)
_________________
Retired gentoo user
Back to top
View user's profile Send private message
m0p
Apprentice
Apprentice


Joined: 20 Jun 2005
Posts: 205
Location: en_GB

PostPosted: Tue Jul 26, 2005 4:49 pm    Post subject: Reply with quote

Ahhh, that worked :)

EDIT: I have the sched patches from mm2, and the series file, but because I am patching with stuff from ck3 as well, I don't know what order to patch them in.
Back to top
View user's profile Send private message
predatorfreak
l33t
l33t


Joined: 13 Jan 2005
Posts: 708
Location: USA, Michigan.

PostPosted: Tue Jul 26, 2005 9:20 pm    Post subject: Reply with quote

Tiger683 wrote:
now, let's put one thing clear:
realtime preemption is definitely not what you would like
to run on a computer which does something else than
professional audio processing or, well, nothing.

If you try to run a few applications simultaneously (or even emerge --sync AND compile)
or start 2 xsessions and play a game in one of them, you will get a hardlock or maybe just choppiness
leading to unusability in best case.

that's my two cents to RTP patch.
For "low latency desktop" mode of realtime preempt patch,
you will gain the same by applying the sched-* patches from mm tree,
which are already in love for example.

cheers

T


Tiger, low-latency mode is equal to a preemptive mainline kernel, plus or minus.
_________________
System: predatorbox
Distro: Arch Linux x86_64
Current projects: blackhole, convmedia and anything else I cook up.
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Tue Jul 26, 2005 10:00 pm    Post subject: Reply with quote

Rather a small minus, and then you get exactly what i stated above....

so, your point is?
_________________
Retired gentoo user
Back to top
View user's profile Send private message
predatorfreak
l33t
l33t


Joined: 13 Jan 2005
Posts: 708
Location: USA, Michigan.

PostPosted: Tue Jul 26, 2005 10:04 pm    Post subject: Reply with quote

Tiger683 wrote:
Rather a small minus, and then you get exactly what i stated above....

so, your point is?


Nothing much, just trying to make sure you know.
_________________
System: predatorbox
Distro: Arch Linux x86_64
Current projects: blackhole, convmedia and anything else I cook up.
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Tue Jul 26, 2005 10:05 pm    Post subject: Reply with quote

8O

:lol:
_________________
Retired gentoo user
Back to top
View user's profile Send private message
m0p
Apprentice
Apprentice


Joined: 20 Jun 2005
Posts: 205
Location: en_GB

PostPosted: Wed Jul 27, 2005 5:06 pm    Post subject: Reply with quote

Can anyone recommend me some patches from 2.6.12-mm2 that will patch cleanly on top of 2.6.12-ck3? And does anyone know if the CFQ-TS IO scheduler is better than Genetic-anticipatory?
Back to top
View user's profile Send private message
vipernicus
Veteran
Veteran


Joined: 17 Jan 2005
Posts: 1462
Location: Your College IT Dept.

PostPosted: Thu Jul 28, 2005 6:29 pm    Post subject: Reply with quote

PM me for a super secret patchset that will make a slow processor 52% faster, and a 5400 rpm drive act like a 20000rpm scsi!

J/K.

I've tried most of the schedulers, and so far these are the best combinations in my opinion.
1. staircase, cfq-ts, ext3 w/ dir_index enabled
2. ingosched + mm sched patches, cfq-ts, ext3 w/ dir_index enabled

Note: these work good on my machine, but may work bad on yours. there is not a single patch, or mixture of patches that will make your computer faster than ____mhz/ghz or your hard drive and filesystem faster. upgrading software is not like upgrading hardware. the best performance tweak ever is buying the top performance chip, the top performance ram, the best video card, etc.
_________________
Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog
Back to top
View user's profile Send private message
martin.k
Guru
Guru


Joined: 28 Nov 2004
Posts: 493
Location: Wylatowo, Polska

PostPosted: Fri Jul 29, 2005 12:33 pm    Post subject: Reply with quote

m0p wrote:
Can anyone recommend me some patches from 2.6.12-mm2 that will patch cleanly on top of 2.6.12-ck3? And does anyone know if the CFQ-TS IO scheduler is better than Genetic-anticipatory?

Genetic-anticipatory is better for tuning IO performance (workload) on some serious machines (mainframes) but you can use it on some small machines :)
Jake Moilanen states that:
Quote:
Rebasing the genetic-lib to 2.6.12 is also high on the priority list. I did a quick update of the AS component, but I am not seeing the same type of results that I did on 2.6.11. I'm wondering if a performance counter is not getting updated appropriately. That usually breaks the genetic-lib quickly.

So you can use it but you should test if it really gives you some IO speedup.
For 2.6.11 tree it worked for me (tested with iozone, contest). But when ported to 2.6.13 I don't see the same results.
So it needs some testing and maybe some recoding from Jake.
There is some other ongoing work with anticipatory IO scheduler by Bill Buros (IBM Linux Technology Center) called Cooperative Anticipatory Scheduler (CAS). Initial benchmarks show that under the CAS web, mail, and file server benchmarks run as much as 62% faster. Alas no patches released...
If you are interested in the subject you should read this:
http://www.linuxsymposium.org/2005/linuxsymposium_procv1.pdf
http://www.linuxsymposium.org/2005/linuxsymposium_procv2.pdf
over 660 pages, but some good piece of knowledge :)
_________________
linux-2.6.17 +ck +R4 +lockless +genetic-as +... więcej nie pamiętam :)
LRU #299256
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
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