You are not logged in.
Hey,
Gave this a spin today:
http://marc.theaimsgroup.com/?l=linux-k … 814504&w=2
It's a boot cache mechanism. You boot a priming run where it caches to a partition, and all runs from then on, should boot at an improved speed. On my laptop, it dropped my boot from init>slim from 32s to 26s. 6 second improvement.
As an experiment, I left the priming run going while I logged in to my desktop. currently I'm using Gnome on this computer. The next boot, Gnome logged in so fast, the splash screen only flickered on the screen, and the panels appeared near instantly.
Bootchart before: http://archlinux.org/~james/normal.png
Bootchart after: http://archlinux.org/~james/fs-fcache.png
You can see the much more efficient use of the hard disk in the second run, with most slowdowns either being CPU bound, network bound or hardware related.
fs-fcache will be in 2.6.17-beyond1 which should hit the repos in the next few days, it's also in 2.6.17-ck1, which tomk has in [community] -- although I am not sure if he has it enabled. It currently only works for ext3, but other filesystems are trivial to implement and should come soon.
James
Offline
It's in kernel26ck 2.6.17.ck1-2, which will be in community in a couple of hours.
Offline
Will be this feature implemented in GENERIC Arch kernel?
Offline
That would be great!
But, how do you create these charts?
Gruß, Johannes
http://www.hehejo.de
http://gallery.hehejo.de/jo
Offline
But, how do you create these charts?
pacman -S bootchart
Offline
Too simple. Thank you.
Gruß, Johannes
http://www.hehejo.de
http://gallery.hehejo.de/jo
Offline
So, how do i activate this? Like described in the link above?
And what if i have several partitions (/ /usr /opt ...)?
want a modular and tweaked KDE for arch? try kdemod
Offline
is this/when will this/will this be implemented in kernel26-beyond?. I just upgraded but I haven't rebooted yet. And I'm pretty sure I lost the gensplashbecause I don't know how to add it to mkinitfscpio
Offline
Do you know how long reiserfs users will have to wait to use this exciting feature?
Offline
is this/when will this/will this be implemented in kernel26-beyond?. I just upgraded but I haven't rebooted yet. And I'm pretty sure I lost the gensplashbecause I don't know how to add it to mkinitfscpio
This already available in 2.6.17-beyond1, but you have to add support to the initscripts yourself.
As for initcpio and gensplash, dtw should have the hook up soon.
Offline
Do you know how long reiserfs users will have to wait to use this exciting feature?
A few days ago, the dev said:
I hope to be able to extend it to xfs and reiser in the very near future as well, should not be hard to do.
Offline
i've got a question about the fcache_dev parameter. The example on the page says 8/6. I'm assuming that means the 6th partition of the 8th device, but the page also mentions using sda6 as his cache partition. This is confusing. Input on that would be nice. Also i was wondering how big my cache partition should be.
Offline
I too would like more indepth instructions. I would like to try this out, but I don't want to screw up anything. It seems simple enough. If someone could just provide a list of steps, I will be most grateful.
Offline
Do you know how long reiserfs users will have to wait to use this exciting feature?
Several minutes, each time it boots. LOL!
Ahhh. I kill me... Just kidding, k?
Offline
i've got a question about the fcache_dev parameter. The example on the page says 8/6. I'm assuming that means the 6th partition of the 8th device, but the page also mentions using sda6 as his cache partition. This is confusing. Input on that would be nice. Also i was wondering how big my cache partition should be.
8/6 is not drive number/partition number but major device number/minor device number so 8/6 doesn't mean sda6 or hda6.
To find proper values for fcache_dev you can do, for example,
ls -l /dev/hda8
where hda8 is the disk you want use with fcache. This command gives you result
brw-rw---- 1 root disk 3, 8 2006-06-28 10:31 /dev/hda8
where numbers after "disk" are major and minor device numbers. In my example its 3 and 8 so fcache_dev=3/8.
:: create while you can ::
Offline
Ahhh. I kill me
So I guess we shouldn't be expecting any more posts from you in the future then?
Offline
Ahhh. I kill me
So I guess we shouldn't be expecting any more posts from you in the future then?
You only wish :twisted:
Offline
I'm a bit confused about how to implement this. Do lines need to be added to the initscripts themselves, or could I just change my fstab? If so, what lines need to be changed? I'm a bit hesitant to rummage around in the init stuff, since I know next to nothing about them and would rather not totally bork my startup. A wiki page from one of you super smart fellows who have this going might be nice .
Offline
So, Is anyone ready to help out with this?
Just a list of steps if possible?
Offline
I'm waiting for reiser support to give it a go - if nobody's put up a howto at that stage, I'll do it.
Here's an observation, though - this is about as bleeding-edge as you can get, and in the time-honoured tradition, the dev has given us the code with a brief guide on what to do with it. The essential details are all there for anyone who wants them, but it will be up to users to flesh it out.
IMO, if you want to try out new functionality like this, you have to take the risk that it won't work, and that you could "screw up" or "totally bork" your system. If you don't feel like doing that, then it's OK to wait a while - if you do, and it works, you can be the "super smart fellow" who writes the wiki page.
Offline
Can some one please give some more details about it???
I want to know it is work (technical details), and how to implemts it on my system, and will there be a good nice (like allways in ARCH) a WIKI page??
This seem to be a very nice cool EDGE thing :idea:
Offline
I found a Gentoo HowTo here:
http://gentoo-wiki.com/HOWTO_FCache
I will give it a go, and maybe write my first wiki.
Offline
That's the spirit.
When you're writing it up, I'd recommend including StormBlast's advice above about finding the major/minor device numbers for the cache partition.
Offline
^ I was thinking that's one of the most important steps. That was the first thing that confused me when I was first giving this a look over.
Well I think I got it running. I am about to do a boot chart to compare.
I also got into a little trouble by adding the cache partition to fstab which is not needed.
Offline
somairotevoli: which file are you actually editing? I've been looking through /etc/rc.sysinit, and I thought I found the entry to edit but fcache doesn't work. Dmesg says it fails with err: -6.
Offline