More efficient e4rat file preloader.
- Change
LIST
andINIT
defines to your file list and init paths respectively.
- Compile file with
clang -O3 e4rat-preload-lite.c -o e4rat-preload-lite
orgcc -O3 -std=c99 e4rat-preload-lite.c -o e4rat-preload-lite
. - Strip binary:
strip -s ./e4rat-preload-lite
. - Copy init file to /sbin/e4rat-preload-lite:
cp ./e4rat-preload-lite /sbin/
. - Add
init=/sbin/e4rat-preload-lite
to kernel line in your bootloader configuration.
- Load 33% of list but not more than 1000 files before running system process.
- Load only 100 files per iteration.
This version saves 2 more seconds until fully functional gnome-shell comparing to 0.1.
Original version of this utility was written by John Lindgren. You can find it here.