Page 1 of 1

e4rat-lite request

Posted: Wed Jul 15, 2020 11:15 am
by oops
Hello,

If and only if it is possible, request for e4rat-lite v0.2.7 , for MX17 to 19 (x32 and amd64)

https://wiki.archlinux.org/index.php/E4rat

The e4rat-lite reduces disk access times through physical file reallocation. It is based on the online defragmentation ioctl EXT4_IOC_MOVE_EXT from the ext4 filesystem, which was introduced in Linux Kernel 2.6.31. Therefore, other filesystem types or earlier versions of extended filesystems are not supported.
The e4rat-lite is created from a simply idea of implementating the e4rat-preload-lite on the main e4rat tree, but it ended up showing a number of features that could be improved, making e4rat-lite a more independent project, with several optimizations that causes your system to start even faster than standard e4rat.

I have compiled this one (for x32 and amd64) , and it works (about 5 seconds less to boot my PC and eepc)
https://github.com/LendyZhang/e4rat-lite

Just modify into, /etc/e4rat-lite.conf

; Path to the main initialization process
; /usr/lib/systemd/systemd
; ou
; /sbin/init
init_file=/sbin/init


and add:
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "e2fslibs")

SET(CPACK_DEBIAN_PACKAGE_CONFLICTS "auditd, ureadahead")

Re: e4rat-lite request

Posted: Sun Mar 14, 2021 12:40 pm
by K-mik@Z
oops wrote: Wed Jul 15, 2020 11:15 am request for e4rat-lite v0.2.7 , for MX17 to 19 (x32 and amd64)
+1

Re: e4rat-lite request

Posted: Sun Mar 14, 2021 2:03 pm
by agnivo007
Looks interesting, but the config above shows a single choice for init. Would it work if we choose systemd boot/normal sysv from GRUB?

Re: e4rat-lite request

Posted: Sun Mar 14, 2021 4:02 pm
by oops
agnivo007 wrote: Sun Mar 14, 2021 2:03 pm Looks interesting, but the config above shows a single choice for init. Would it work if we choose systemd boot/normal sysv from GRUB?
The optimisation can work for both, but in 2 steps.
By running e4rat-lite-collect ... 2 times at boot time (sysvinit and systemd) to generate 2 startup.log, then concatenate them.
Then (2 ou 3 times):
e4rat-lite-realloc /var/lib/e4rat-lite/startup.log

Edit: e4rat or e4rat-light can be dangerous (especially during the collect times - can freeze at the grub time)
I only use now e4rat-lite for my eepc ( HDD not fast) ... with SSD e4rat is not efficient.

Re: e4rat-lite request

Posted: Sun Mar 14, 2021 11:19 pm
by agnivo007
Thanks for info, I too read a little about the 3 step process... looks like good for slower systems with mechanical spinning HDDs only, not for flash based storage (almost no gain due to similar access times of any data on them).

Re: e4rat-lite request

Posted: Mon Mar 15, 2021 9:34 am
by oops
agnivo007 wrote: Sun Mar 14, 2021 11:19 pm Thanks for info, I too read a little about the 3 step process... looks like good for slower systems with mechanical spinning HDDs only, not for flash based storage (almost no gain due to similar access times of any data on them).
Yes it is normally 3 steps (to optimize only one init system), but more for optimizing two init systems (sysvinit and systemd), but usually only one optimization is needed for your main system init.
e4rat-light is interesting for laptop or old PCs with slow mechanical spinning HDDs. (but this e4rat tool is for "experts")