You are not logged in.

#51 2011-04-06 20:01:03

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: e4rat - reduce boot time (into X) by some 50% for ext4

KlavKalashj wrote:
lilsirecho wrote:

x86_64 compatible?

Works fine here on x86_64. Using KDE, it was a noticeable difference, I didn't use bootchart but I could feel it. KDM and desktop loading was really fast.

I assume your 64bit is using ext4..................


Sign of the times: Navajo blanket..made in China
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Online

#52 2011-04-06 21:38:43

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: e4rat - reduce boot time (into X) by some 50% for ext4

Spider.007 wrote:

Has anyone compared the stats with preload?

The wiki is somewhat opaque on what preload does but from what I gather there is no point in running the two concurrently.


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#53 2011-04-06 22:42:01

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: e4rat - reduce boot time (into X) by some 50% for ext4

TigTex wrote:

When I upgrade my kernel and do some other major changes, do I have to re-run e4rat-collect and alloc manually?

Good question, taugenix (cool translation=isnogood) is the developer, so I'll pass that one on...


ngoonee wrote:

I wonder, systemd requires an init line and so does e4rat... how would I use both?

Hm, is it not possible to have two init lines? Mind, I haven't tried yet, have you?

hauzer wrote:

Yes, I f*cked up my system testing this. The 'conversion' goes fine, but e4rat still can't move the files and they somehow get corrupted. Now I have corrupt libc.so and whatnot.. Oh well.

Is it possible that one of your partitions was not ext4?


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#54 2011-04-06 22:43:52

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 6,887

Re: e4rat - reduce boot time (into X) by some 50% for ext4

toad wrote:
ngoonee wrote:

I wonder, systemd requires an init line and so does e4rat... how would I use both?

Hm, is it not possible to have two init lines? Mind, I haven't tried yet, have you?

Have not tried with e4rat, but I recall when I was trying out systemd I couldn't do two init lines for bootchart at the same time, though.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#55 2011-04-06 23:49:44

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,097
Website

Re: e4rat - reduce boot time (into X) by some 50% for ext4

ngoonee wrote:
toad wrote:
ngoonee wrote:

I wonder, systemd requires an init line and so does e4rat... how would I use both?

Hm, is it not possible to have two init lines? Mind, I haven't tried yet, have you?

Have not tried with e4rat, but I recall when I was trying out systemd I couldn't do two init lines for bootchart at the same time, though.

Solution: make a unit for e4rat, or modify the script that it calls to bootstrap init.

e4rat has a config file which lets you specify init. it defaults to /sbin/init.

Last edited by falconindy (2011-04-07 01:37:39)

Offline

#56 2011-04-07 00:42:36

Kosava
Member
From: Serbia
Registered: 2008-08-19
Posts: 127

Re: e4rat - reduce boot time (into X) by some 50% for ext4

I dont understend well, where i need to put this line init=/usr/sbin/e4rat-collect

in /boot/grub/menu.lst

Sorry i'm not well expirienced in this but i want to trie this...

thanks.

Offline

#57 2011-04-07 00:49:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,433

Re: e4rat - reduce boot time (into X) by some 50% for ext4

Kosava wrote:

I dont understend well, where i need to put this line init=/usr/sbin/e4rat-collect

in /boot/grub/menu.lst

Sorry i'm not well expirienced in this but i want to trie this...

thanks.

Append it to the kernel line, like this

kernel /vmlinuz26 root=/dev/disk/by-uuid/bf1d191b-0f0d-4961-bd67-4d023a2e5873 ro init=/usr/sbin/e4rat-collect

Offline

#58 2011-04-07 09:39:27

Kosava
Member
From: Serbia
Registered: 2008-08-19
Posts: 127

Re: e4rat - reduce boot time (into X) by some 50% for ext4

@Karol thanks now i tried and it work.

Offline

#59 2011-04-07 09:41:56

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: e4rat - reduce boot time (into X) by some 50% for ext4

@ ngnoonee

I updated the wiki, check here: https://wiki.archlinux.org/index.php/E4rat#Bootchart


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#60 2011-04-07 10:06:55

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 6,887

Re: e4rat - reduce boot time (into X) by some 50% for ext4

toad wrote:

@ ngnoonee

I updated the wiki, check here: https://wiki.archlinux.org/index.php/E4rat#Bootchart

Thanks toad smile


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#61 2011-04-07 11:15:53

eworm
Trusted User (TU)
From: Oberhausen, Germany
Registered: 2010-01-30
Posts: 100
Website

Re: e4rat - reduce boot time (into X) by some 50% for ext4

I've added a note about e4rat and systemd to the wiki. I do not have ext4, so I can not try myself... Hope it's correct.


ArchLinux - make it simple & lightweight

Offline

#62 2011-04-07 15:38:49

radiomist
Member
From: superposicion
Registered: 2009-11-27
Posts: 62

Re: e4rat - reduce boot time (into X) by some 50% for ext4

systemd crash o,o and boot procces take infinit time

Offline

#63 2011-04-07 19:58:24

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: e4rat - reduce boot time (into X) by some 50% for ext4

The bootchart option I put in the wiki to keep logging after ?dm starts doesn't appear to be working. I've written to the devs after google wasn't forthcoming either. The bootchart wiki talks about an rc.sysinit setup but it appears to be rather cumbersome (I would much prefer a number of different grub entries...).

Anyway, there were questions re major upgrades and e4rat compatibility. Here my experience:
After the recent KDE upgrade to 4.6.2-1 KDE started fine but I had a number of problems (kde4d eating CPU, keyboard switcher did not function on window or application but only on global level). To get rid of these I had to collect and reallocate anew.

@radiomist, have you seen this https://wiki.archlinux.org/index.php/E4 … nit_system ?
Just checking 'cos the wiki is changing by the minute smile


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#64 2011-04-07 21:28:41

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 407

Re: e4rat - reduce boot time (into X) by some 50% for ext4

e4rat tries to read startup.log from /var golder. But I have /var on separate partition and it is not available on start. Are there any workarounds?

Offline

#65 2011-04-07 21:47:46

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: e4rat - reduce boot time (into X) by some 50% for ext4

deleted, too tired to think...

Last edited by toad (2011-04-07 22:23:40)


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#66 2011-04-07 22:07:17

Cody
Member
Registered: 2010-11-08
Posts: 42

Re: e4rat - reduce boot time (into X) by some 50% for ext4

When I boot with the e4rat-preload init line I get this kernel panic.

Offline

#67 2011-04-08 02:11:26

radiomist
Member
From: superposicion
Registered: 2009-11-27
Posts: 62

Re: e4rat - reduce boot time (into X) by some 50% for ext4

toad wrote:

T
@radiomist, have you seen this https://wiki.archlinux.org/index.php/E4 … nit_system ?
Just checking 'cos the wiki is changing by the minute smile

i was fallowing the wiki, fixed with pacman -Syu


Wow!! takes about 10 seconds to get into KDE, another 10 seconds to get a full funcional desktop smile

Last edited by radiomist (2011-04-08 02:38:00)

Offline

#68 2011-04-08 17:28:14

hauzer
Member
From: Belgrade, Serbia
Registered: 2010-11-17
Posts: 279
Website

Re: e4rat - reduce boot time (into X) by some 50% for ext4

Cody wrote:

When I boot with the e4rat-preload init line I get this kernel panic.

Yeah, that's what happened to me too. Seems it isn't due to file systems but something in the system. I reinstalled Arch with all ext4 partitions and was going to give e4rat one more chance, but after seeing your post, I won't.


Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
What profit hath a man of all his labour which he taketh under the sun?
All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.

Offline

#69 2011-04-08 17:30:03

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: e4rat - reduce boot time (into X) by some 50% for ext4

Interesting. Cody, I reckon you have all ext4 partitions? If not, check your startup.log and see whether it contains any files which are not on ext4 partitions...


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#70 2011-04-08 17:51:04

kokoko3k
Member
Registered: 2008-11-14
Posts: 1,546

Re: e4rat - reduce boot time (into X) by some 50% for ext4

fsckd wrote:

boot takes a few seconds longer
but processes load much faster

i suppose one would have to reallocate every now and then
as package updates would remove files already reallocated
edit: monthly cron job :-)

Yeah, everytime kde/gnome gets updated i think you need to "defrag" again.
It's not that bad after all, but why don't just use hibernation?
On recent kernels i've had no stability problems anymore,  system is up and running very fast and snappy because of buffers/cache retention.
Is there something i'm not thinking about?

Offline

#71 2011-04-08 18:19:36

uc50ic4more
Member
From: Windsor, Ontario, Canada
Registered: 2011-03-21
Posts: 50

Re: e4rat - reduce boot time (into X) by some 50% for ext4

eDio wrote:

e4rat tries to read startup.log from /var golder. But I have /var on separate partition and it is not available on start. Are there any workarounds?

Move the log file?

Offline

#72 2011-04-08 20:10:24

Stebalien
Member
Registered: 2010-04-27
Posts: 1,231
Website

Re: e4rat - reduce boot time (into X) by some 50% for ext4

eDio wrote:

e4rat tries to read startup.log from /var golder. But I have /var on separate partition and it is not available on start. Are there any workarounds?

--edit: Use the latest e4rat and edit the config. ignore -vv-
It's an ugly hack but this is what I did:
Boot into init 1 (recovery mode) and run:

/etc/rc.d/syslog-ng stop
cp /var/lib/e4rat/startup.log ~
umount /var/
mkdir /var/lib/e4rat/
cp ~/startup.log /var/lib/e4rat/startup.log
rm ~/startup.log
mount -a
reboot

In other words, put the startup log in the root filesystem underneath /var.

Last edited by Stebalien (2011-04-09 16:08:54)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#73 2011-04-09 00:42:37

MystX
Member
Registered: 2009-06-04
Posts: 42

Re: e4rat - reduce boot time (into X) by some 50% for ext4

Would this work if the /home partition was still Ext3?
I'm considering reinstalling arch on my netbook for this, but would rather not have to transfer everything in /home from, then to it - much easier to just not format /home in the setup..
That being said though, /home contains most of your config stuff.. which would be used on boot.
Anyone know if it would still work?

Offline

#74 2011-04-09 06:27:31

marvn
Member
From: Prague
Registered: 2010-01-05
Posts: 84

Re: e4rat - reduce boot time (into X) by some 50% for ext4

kokoko3k wrote:
fsckd wrote:

boot takes a few seconds longer
but processes load much faster

i suppose one would have to reallocate every now and then
as package updates would remove files already reallocated
edit: monthly cron job :-)

Yeah, everytime kde/gnome gets updated i think you need to "defrag" again.
It's not that bad after all, but why don't just use hibernation?
On recent kernels i've had no stability problems anymore,  system is up and running very fast and snappy because of buffers/cache retention.
Is there something i'm not thinking about?

Dual boot


core i5 4590, x86_64, nvidia 970

Offline

#75 2011-04-09 11:22:23

kokoko3k
Member
Registered: 2008-11-14
Posts: 1,546

Re: e4rat - reduce boot time (into X) by some 50% for ext4

@marvn:
I always remount my windows partition(s) and all /media/* in read only before hibernation. and it is very uncommon i need write access to the linux ones from windows, so no problem so far.

Offline

Board footer

Powered by FluxBB