LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-17-2022, 12:42 AM   #1
linnymint
LQ Newbie
 
Registered: Jul 2014
Distribution: Linux Mint 17 Mate & LMDE4
Posts: 23

Rep: Reputation: 0
Speed up boot process?


Has anyone used ureadahead, readahead, e4rat, or anything else to speed the boot process in Debian or any Debian.based distro? It takes anywhere from 50 to 70+ seconds to get from the grub menu to the login manager, and another 20 to 30+ seconds to get to the desktop. Google chrome takes several seconds to load the first time in a session, but that is still much faster than Google chrome in W7. I am dual booting W7 and lmde4.
 
Old 03-17-2022, 02:11 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,791

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
obviously that depends on the hardware. And you can use systemd-analyze to check your boot.
https://www.youtube.com/watch?v=FDuQ...l=SethJennings
https://www.tecmint.com/systemd-anal...p-performance/
 
Old 03-17-2022, 09:59 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by linnymint View Post
Has anyone used ureadahead, readahead, e4rat, or anything else to speed the boot process in Debian or any Debian.based distro? It takes anywhere from 50 to 70+ seconds to get from the grub menu to the login manager, and another 20 to 30+ seconds to get to the desktop. Google chrome takes several seconds to load the first time in a session, but that is still much faster than Google chrome in W7. I am dual booting W7 and lmde4.
The highlighted sentence makes me believe that your hardware is not adequate to comfortably handle a modern web browser.
The software you mentioned - I think readahead is just part fo the kernel, I can't find ureadahead anywhere, and I have never used e4rat. I am under the impression that this functionality is being handled by the kernel & the init process.
I appreciate that you have a problem, though - I just don't think this is the way to solve it.

In any case, more info we need.
 
Old 03-19-2022, 07:58 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i like to use systemd-analyze with the " plot " option to make a *.svg image of the boot process
this way i can see it in detail and figure out what is taking way to long
 
Old 03-24-2022, 12:54 AM   #5
linnymint
LQ Newbie
 
Registered: Jul 2014
Distribution: Linux Mint 17 Mate & LMDE4
Posts: 23

Original Poster
Rep: Reputation: 0
Speed up boot process?

Thanks, it'll be a bit before I can post as requested as I have only intermittant access to the computer in question.
 
Old 03-24-2022, 10:51 AM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
If you have two or more hard drives installed then you can speed up Debian a lot by splitting it across both (or all) drives. I generally put / and /usr on different drives. If you have a third drive then put your user data on that drive.

The basic idea is to have as many drives busy in parallel as possible.

Last edited by jailbait; 03-24-2022 at 10:52 AM.
 
Old 04-06-2022, 12:50 AM   #7
linnymint
LQ Newbie
 
Registered: Jul 2014
Distribution: Linux Mint 17 Mate & LMDE4
Posts: 23

Original Poster
Rep: Reputation: 0
I have also posted in the forum on th Linux Mint website. My machine is a laptop so multiple drives is not an option. Detailed info on my machine is posted there:

https://forums.linuxmint.com/viewtop...bf48d#p2158254

As to the handling of Google Chrome, LMDE handles it much faster than W7, especially from a cold boot. In that case, W7 may take over a minute to open the browser the first time in the session not including a web page, where LMDE only takes about 4 seconds. Subsequent opening of the browser is far faster than the first in W7. LMDE is a little faster in subsequent opening than the first, but then how much faster could it get? Page loading is also faster in LMDE than in W7.
 
Old 04-06-2022, 01:04 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by linnymint View Post
but then how much faster could it get?
I think that's the maximum fastness right there, for this particular hardware.
Please refer to my previous post, and the implied question(s) you chose to ignore.
 
Old 04-06-2022, 01:41 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,791

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
yes, you cannot do significant changes, but you can obviously try to remove unnecessary services. Adding RAM is a good idea, but will not help on the boot time (but on browsing).
The only way to speed it up is a new SSD (as far as I see).
You wrote it:
Quote:
An ssd would probably be the single most effective performance enhancment, but at present I just can't fit that into the budget right now.
 
Old 04-06-2022, 04:27 AM   #10
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
In most cases, upgrading the RAM helps improve the performance massively. I would recommend upgrading to the max allowed (by the system and the budget).

Quote:
i like to use systemd-analyze with the " plot " option to make a *.svg image of the boot process
I didn't know this tool existed and I love it. I was able to plot the boot process and get details about how quickly the system is booting up. Thanks for sharing.
 
Old 04-06-2022, 09:55 AM   #11
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,986

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
This is the hard drive you currently have:

https://www.amazon.com/Samsung-SpinP.../dp/B002YZDV5A

and it's a 5400rpm drive. You would be much better off spending money on a new SSD drive rather than a ram upgrade.

Quote:
Google chrome takes several seconds to load the first time in a session, but that is still much faster than Google chrome in W7. I am dual booting W7 and lmde4.
That is symptomatic of a slow hard drive as is the slow boot time. The first load up of chrome has to come off the hard drive where it is loaded into ram and run. After closing chrome, it stays in ram for some time unless some other program needs the ram. The second load up of chrome will come off that ram cache and will be much faster.

You may want to run Samsung's hard drive diagnostic utility on the drive to make sure its functioning properly. You can download it here:

https://www.lifewire.com/samsung-hutil-review-2624563
 
Old 04-06-2022, 01:31 PM   #12
linnymint
LQ Newbie
 
Registered: Jul 2014
Distribution: Linux Mint 17 Mate & LMDE4
Posts: 23

Original Poster
Rep: Reputation: 0
Speed up boot process?

I will try that the next chance I get, thanks.
 
Old 04-06-2022, 02:09 PM   #13
linnymint
LQ Newbie
 
Registered: Jul 2014
Distribution: Linux Mint 17 Mate & LMDE4
Posts: 23

Original Poster
Rep: Reputation: 0
Speed up boot process?

To Ondoho : Sorry if it seemed like I was ignoring the request for more info. I am infrequently able use the machine in question and do most posting from my cell phone. I did post info in a forum on the Linux Mint website and linked to that in an earlier post. As far as software loading time is concerned, it is quite acceptable in LMDE, but it can be abysmal in W7.

Last edited by linnymint; 04-06-2022 at 02:52 PM. Reason: Clarification
 
Old 04-26-2022, 09:34 AM   #14
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Rep: Reputation: 66
I recently upgrade my laptops old hdd to ssd the difference is night and day. upgrading ram will help but not as much as a ssd will.
 
Old 03-20-2023, 04:10 PM   #15
linnymint
LQ Newbie
 
Registered: Jul 2014
Distribution: Linux Mint 17 Mate & LMDE4
Posts: 23

Original Poster
Rep: Reputation: 0
I did the same in January and that made all the difference in the world. My wife says it is the best thing I've given her. I also maxed out the memory to 8 gigs, but that has made little or no difference. Might extend the life of the ssd by reducing unnecessary writes to cache.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
API for current running process details like process name, process id, amount of memory used anki123 Linux - General 1 01-20-2019 02:06 AM
Finding the Process ID of a Process While Initiating the Process senthilmuthiah Linux - Newbie 7 04-02-2009 10:37 AM
Linux boot up process Vs. Windows boot up process darkskull Linux - Software 7 12-30-2006 04:21 PM
How can I speed up the boot process on 2005 LE? amdrake Mandriva 7 07-17-2005 11:55 PM
How to speed-up boot process? registering Mandriva 4 04-21-2005 02:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration