Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

Difference between revisions of "Android Boot-time Readahead"

From eLinux.org
Jump to: navigation, search
(mincore)
(treadahead: add treadahead source)
Line 36: Line 36:
 
facilities for recording iowait before and after a readahead sequence, timing the duration of
 
facilities for recording iowait before and after a readahead sequence, timing the duration of
 
readahead operations, and changing things like the process scheduling priority, I/O scheduler, and I/O scheduling priority.
 
readahead operations, and changing things like the process scheduling priority, I/O scheduler, and I/O scheduling priority.
 +
 +
[[Media:treadahead-1.3.tgz]]
 +
 +
You can build this in context of the Android build system (using the included Android.mk) or using
 +
a regular Linux host compiler (using the included Makefile).  Note that this would build for a 32-bit x86 system (which is what the Sony Internet TV is).
 +
 
[[Category:Android]]
 
[[Category:Android]]
 
[[Category:Boot Time]]
 
[[Category:Boot Time]]
 
[[Category:Presentations]]
 
[[Category:Presentations]]

Revision as of 23:41, 5 May 2011

Here is information about Android Boot-Time Readahead

to do: need to post my programs, with source, my presentation from ABS, and some of my raw results

Presentation

This is the presentation I gave at ABS 2011.

abs2011_bird_readahead.pdf

Results

Bottom line results were an approximate 5% (1.5 seconds) improvement in boot time, using readahead on only a single portion of the boot sequence. A 9% improvement was expected, given the area of the boot sequence that was optimized. So, it didn't help as much as I'd hoped, but did help a little.

More testing is needed:

  • to determine why adjusting the I/O scheduling priority did not have the expected affect
  • to apply readahead to more part of the boot sequence
  • to test other methods to avoid interfering with foreground processing
    • like, manually halting and continuing readahead during the boot, and performing smaller reads

Programs

[need to post source for programs]

mincore

Mincore is a program I wrote to report the pages in the Linux page cache for requested files.

Here's the source:

Media:mincore.c

logsync

Logsync is a program to write a log message to both the kernel log buffer (printk), and the Android log buffer. On most systems, the timestamps are different between these two logging systems. This is useful to determine a unified ordering of events reported by these separate systems.

treadahead

Tim's readahead - This is a test program to experiment with various readahead options. Besides actually performing readahead operations, it includes facilities for recording iowait before and after a readahead sequence, timing the duration of readahead operations, and changing things like the process scheduling priority, I/O scheduler, and I/O scheduling priority.

Media:treadahead-1.3.tgz

You can build this in context of the Android build system (using the included Android.mk) or using a regular Linux host compiler (using the included Makefile). Note that this would build for a 32-bit x86 system (which is what the Sony Internet TV is).