Features/30SecondStartup/ReadAheadReloaded

From FedoraProject

Jump to: navigation, search

Contents

Readahead reloaded

If you compare a non-readahead bootchart with a readahead bootchart , you can clearly see, that most of the services are bound to disk I/O.

There are 2 existing "readahead/prefetching" helpers in Fedora.

Ubuntu may switch to prefetch ( https://wiki.ubuntu.com/DesktopTeam/Specs/Prefetch ) but that requires a non-standard kernel module (I don't think, that it makes it upstream).

Preload is adaptive, but gathers information by scanning /proc every 20s. Comparisons showed, that readahead performs better in the boot phase before login.

Readahead modifications

Testcase

boot, login, start firefox, close firefox

Numbers in seconds taken from the bootcharts.

[1] [2] [3]
Desktop-161569%
Desktop-2524224%
Laptop1009110%
[1]
without readahead: from start of rc.sysinit until closing of firefox
[2]
with readahead: from start of rc.sysinit until closing of firefox
[3]
speedup: = [1] / [2] - 1
Desktop-1
Default install from livecd, normal disk
Desktop-2
customized, fast RAID-1 disk (90MB/s)
Laptop
customized, slow disk

Positive Side effects

Problems

Todo

gdm/kdm

readahead

Outcome