Super Read Ahead

Fast Boot
Version: 
0.02
AttachmentSize
sreadahead-0.02.tar.gz10.02 KB

Comments (9 total)

who can write a detail document to describ how to use it?

who can write a detail document to describ how to use it?

usage of sreadhahead

see: http://linux.atcrosslevel.de/#l19 for a step by step guide.

Proposed changes

I'm taking the current code as is and setting up a public repository somewhere soon. I'll be taking patches and comments on the power at bughost dot org mailinglist, which is what we use for powertop as well.

Please send patches and questions there or directly to me.

Does/Will sreadahead support squashfs + unionfs (ext3 under) ?

Hi All,

I tried sreadahead on squashfs/unionfs/ext3 configuration but not working.

generate_filelist output nearly zero record readahead.packed.
I copied another readahead generated from NB but sreadahead seems do nothing about the file.
(the readahead.packed is located correctly as coded /etc/readahead.packed)

Is there some efforts to do with sreadahead/generate_filelist to support squashfs/union/ext3 configuration ?

how about bootsplash?

I need to use bootsplash to cover up the text message during the boot process.
However, in order to use bootsplash, we need to have initrd. The alternative would be using SPLASHY. The problem is that SPLASHY cannot be start as early as bootsplash. Is there any other solution?

how to use

After a lot of trial and error, I finally got this working:

  1. install the normal version of readahead - on debian: apt-get install readahead
  2. capture a list of files which are accessed during boot: touch /etc/readahead/profile-once then reboot
  3. install sreadahead
  4. run cd /etc ; generate_filelist /etc/readahead/boot - this will create /etc/readahead.packed
  5. edit your readahead init script so it calls sreadahead instead of readahead (on debian, this is /etc/init.d/readahead)

Clarification on Use

Would it be possible to clarify the use of generate_filelist? Whenever I call it, no matter when, it generates an empty file.

Also, http://fedora.danny.cz/sreadahead/sreadahead-0.02-make.patch has a patch to simplify the makefile.

generate_filelist requires a

generate_filelist requires a filename as its first argument. From the looks of the code, this file should contain a list of files to check to see if they are loaded into cache.

Here is the command that I used:

find / -type f \( -fstype ext3 -o -fstype rootfs \) > files
generate_filelist files

gnagaraj, can you provide the

gnagaraj, can you provide the .config file used to compile the kernel (git://git.kernel.org/pub/scm/linux/kernel/git/arjan/linux-2.6-fastboot.git) for the eeepc.
Thanks in advance.