You are not logged in.
There is another thing that maybe could be integrated in the WIKI: I would really like to see how e4rat runs with pre-allocation ioctl. Sadly, I didn't got a Kernel-patch for testing this.
Has anyone got this working?
Offline
Improved the PKGBUILD to search for the right configuration and patch the source. Anyone care to test?
https://aur.archlinux.org/packages.php?ID=54631
This is where we're at now:
build() {
cd "$srcdir/$pkgname-$pkgver"
echo " "
echo "Searching for startup.log"
e4rat_list=`grep startup_log_file /etc/e4rat.conf | grep -v ";" | grep -v grep | awk '{print $2}'`
src_list=`grep "#define LIST" e4rat-preload-lite.c | grep -v grep | awk '{print $3}'`
echo " -> $e4rat_list"
if [ $e4rat_list ] && [ -f $e4rat_list ]
then
sed -i "s|$src_list|\"$e4rat_list\"|g" e4rat-preload-lite.c
echo "Patched e4rat-preload-lite.c for $e4rat_list"
else
echo 'Using default startup.log location, no need to patch'
fi
echo " "
echo "Searching for init configuration"
e4rat_init=`grep init /etc/e4rat.conf | grep -v ";" | grep -v grep | awk '{print $2}'`
src_init=`grep "#define INIT" e4rat-preload-lite.c | grep -v grep | awk '{print $3}'`
echo " -> $e4rat_init"
if [ $e4rat_init ] && [ -x $e4rat_init ]
then
sed -i "s|$src_init|\"$e4rat_init\"|g" e4rat-preload-lite.c
echo "Patched e4rat-preload-lite.c for $e4rat_init"
else
echo 'Using default /sbin/init, no need to patch'
fi
echo " "
gcc -std=c99 -Wall -O2 -o e4rat-preload-lite e4rat-preload-lite.c
strip -s e4rat-preload-lite
echo "Finished compiling e4rat-preload-lite"
}
Edit: Added -lite to the wiki: https://wiki.archlinux.org/index.php/E4 … eload-lite
Last edited by sploit (2011-12-06 18:44:35)
Offline
Works fine for me.
Offline
Offline
Seems to work fine here as well. Also, you probably want to add "e4rat-preload" as dependency in the PKGBUILD.
Offline
Wow thanks a lot! It speeds up my boot process for a few seconds! Good work!
Offline
There is another thing that maybe could be integrated in the WIKI: I would really like to see how e4rat runs with pre-allocation ioctl. Sadly, I didn't got a Kernel-patch for testing this.
Has anyone got this working?
Pushing this question. Has anyone tried this?
Another thing. Maybe the question is dumb, but would it be possible to run the realloc-process from, lets say, a LiveCD to get ALL files prozessed? Even if you run it in init1, not all files are processible.
Offline
Hello everyone!
For me, e4rat-preload-lite didn't work at all. Well, almost. It sat for close to 60 seconds (!) with the message "Loading xxxx files" before init finally kicked in and the system booted.
Weird! My startup.log has 2400-something files though - could that be the problem? I like to have e4rat preload lots of stuff, even firefox and tmux. Is that bad?
Offline
Hello everyone!
For me, e4rat-preload-lite didn't work at all. Well, almost. It sat for close to 60 seconds (!) with the message "Loading xxxx files" before init finally kicked in and the system booted.
Weird! My startup.log has 2400-something files though - could that be the problem? I like to have e4rat preload lots of stuff, even firefox and tmux. Is that bad?
Nop, I do exactly the same, I preload services + desktop environment
Offline
System:
AMD 64 X2 6000+ 3.1Ghz
4GB RAM DDR2-800
WD Caviar SATAII 7200RPM 500GB
DE: Gnome-Shell (lots of daemons and extensions running)
Without E4rat
56s
With E4rat
32s - 42% Faster
With E4rat+Improved preload
30s - 46% Faster
Last edited by quiquex (2012-01-18 18:31:15)
Offline
Would it be possible to modify this so that it can accept a command-line argument to specify the number of files to preload before continuing with boot, instead of being statically set to 100?
Offline
Just installed this, where does it keep it's config?
I tried booting with it but I just get kernel panics complaining that /var/lib/e4rat/startup.log doesn't exist (even though it does and e4rat-preload works fine)
Offline
hello kaipee,
First, you have to collect boot-process log by e4rat-collect.
And then run this command by root,
e4rat-realloc /var/lib/e4rat/startup.log
Finally, try reboot with e4rat-preload.
Files you have to edit are;
1. /etc/e4rat.conf
2. /your/bootloader/config file
Anyway, it'd be better to read wiki E4rat beforehand.
Offline
Cheers Ax - already done all that (note the bit where e4rat-preload works fine)
installed
checked config
added to syslinux kernel options
rebooted, waited specified time
ran systemctl rescue
ran e4rat-realloc /var/lib/e4rat/startup.log
changed syslinux kernel to /usr/bin/e4rat-preload-lite
rebooted and got kernel panics
Last edited by kaipee (2013-02-21 12:31:16)
Offline
Kaipee, I'm sorry I didn't read you did it all.
I installed e4rat today with newely installed Arch linux, and it works fine for me.
Did you tried "ls" or "find" to check whether startup.log were made or not after runnning e4rat-realloc?
Offline
It's not e4rat that is the problem, it is this custom remake e4rat-preload-lite
Offline