Is there a way I can reduce the boot up time on my Ubuntu?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I am using Ubuntu 18.04 on a HP laptop dual booted with Windows 10, with 40 GB of disk space for Ubuntu and a 20 GB of SWAP area since I have an 8 GB of RAM.
I am using a HDD. Out of the 40 GB, 32.5 GB is still available and free. I have freshly installed the OS a few weeks back.
The shutdown time is really short, say 5 seconds, but the time it takes to boot up goes up to 1 minute.
I have edited /etc/initramfs-tools/initramfs.conf and changed MODULES=dep.
This has greatly reduced time taken by initramfs.
I'm not sure how else to improve it and reduce the time taken.



Boot time from systemd-analyze blame:



 23.512s dev-sda6.device
21.462s plymouth-quit-wait.service
18.832s systemd-udevd.service
18.395s apparmor.service
17.486s systemd-tmpfiles-setup.service
6.801s NetworkManager-wait-online.service
6.732s plymouth-start.service
5.873s plymouth-read-write.service
4.169s udisks2.service
3.890s networking.service
3.889s accounts-daemon.service
3.013s speech-dispatcher.service
2.573s networkd-dispatcher.service
2.527s NetworkManager.service
2.453s avahi-daemon.service
2.449s thermald.service
2.446s alsa-restore.service
2.446s systemd-logind.service
2.443s pppd-dns.service
2.438s gpu-manager.service
2.434s rsyslog.service
2.016s apport.service
1.426s wpa_supplicant.service
1.388s dns-clean.service
1.276s grub-common.service
1.269s keyboard-setup.service
1.056s tlp.service
1.007s systemd-random-seed.service
987ms packagekit.service
896ms fwupd.service
878ms systemd-tmpfiles-setup-dev.service
779ms systemd-remount-fs.service
758ms dev-mqueue.mount
714ms sys-kernel-debug.mount
712ms dev-hugepages.mount
694ms systemd-modules-load.service
590ms polkit.service
579ms iio-sensor-proxy.service
574ms systemd-sysctl.service
442ms colord.service
434ms systemd-journal-flush.service
379ms systemd-timesyncd.service
332ms dev-disk-byx2duuid-72e62aa6x2deefax2d49e1x2daba3x2d858b0e7dfbd3.swap
330ms upower.service
321ms systemd-journald.service
312ms systemd-backlight@backlight:intel_backlight.service
230ms setvtrgb.service
217ms ufw.service
209ms user@1000.service
179ms systemd-resolved.service
174ms bolt.service
141ms gdm.service
106ms kmod-static-nodes.service
87ms console-setup.service
73ms systemd-update-utmp.service
56ms systemd-udev-trigger.service
52ms kerneloops.service
22ms systemd-user-sessions.service
20ms sys-fs-fuse-connections.mount
19ms rtkit-daemon.service
19ms sys-kernel-config.mount
8ms systemd-update-utmp-runlevel.service


free --human:



 total used free shared buff/cache available
Mem: 7.7G 1.2G 5.4G 148M 1.1G 6.3G
Swap: 19G 0B 19G


Output of ls /etc/apparmor.d/:



abstractions force-complain tunables usr.bin.man usr.lib.libreoffice.program.soffice.bin usr.sbin.cupsd usr.sbin.tcpdump
cache local usr.bin.evince usr.lib.libreoffice.program.oosplash usr.lib.libreoffice.program.xpdfimport usr.sbin.ippusbxd
disable sbin.dhclient usr.bin.firefox usr.lib.libreoffice.program.senddoc usr.sbin.cups-browsed usr.sbin.rsyslogd


NOTE:



  • In order to improve the time taken by systemd-journal-flush.service I have reduced the MAX file size the journal flush service uses to 50M.

  • sda6 is the partition where I have installed Ubuntu on my HDD

  • I do not use Thunderbolt on my machine

  • I don't use SSD

EDIT: Added benchmark results



sudo hdparm -Tt /dev/sda :



/dev/sda:
Timing cached reads: 11730 MB in 2.00 seconds = 5876.89 MB/sec
Timing buffered disk reads: 322 MB in 3.00 seconds = 107.22 MB/sec


sudo hdparm -v /dev/sda :



/dev/sda:
multcount = 16 (on)
IO_support = 1 (32-bit)
readonly = 0 (off)
readahead = 256 (on)
geometry = 121601/255/63, sectors = 1953525168, start = 0


dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output :



10240+0 records in
10240+0 records out
83886080 bytes (84 MB, 80 MiB) copied, 0.0681511 s, 1.2 GB/s


Graphical Results Image Here







share|improve this question


















  • 8




    Please don't post screenshots of text. Instead copy & paste the text here and use code formatting.
    – pomsky
    May 18 at 17:59






  • 2




    Welcome to Ask Ubuntu! ;-) Please edit your post, remove the screenshot, add the full text of the output and add the output to sudo lshw and free --human. Please help us in helping you! :-)
    – Fabby
    May 18 at 20:19











  • @EODCraftStaff - mine is taking me 1.15 mins
    – Praveen Kumar
    May 20 at 0:39










  • @Fabby - I have attached the requested details
    – Praveen Kumar
    May 20 at 0:39










  • I would try this over here: askubuntu.com/questions/1037457/…
    – Dave
    May 20 at 1:06














up vote
0
down vote

favorite












I am using Ubuntu 18.04 on a HP laptop dual booted with Windows 10, with 40 GB of disk space for Ubuntu and a 20 GB of SWAP area since I have an 8 GB of RAM.
I am using a HDD. Out of the 40 GB, 32.5 GB is still available and free. I have freshly installed the OS a few weeks back.
The shutdown time is really short, say 5 seconds, but the time it takes to boot up goes up to 1 minute.
I have edited /etc/initramfs-tools/initramfs.conf and changed MODULES=dep.
This has greatly reduced time taken by initramfs.
I'm not sure how else to improve it and reduce the time taken.



Boot time from systemd-analyze blame:



 23.512s dev-sda6.device
21.462s plymouth-quit-wait.service
18.832s systemd-udevd.service
18.395s apparmor.service
17.486s systemd-tmpfiles-setup.service
6.801s NetworkManager-wait-online.service
6.732s plymouth-start.service
5.873s plymouth-read-write.service
4.169s udisks2.service
3.890s networking.service
3.889s accounts-daemon.service
3.013s speech-dispatcher.service
2.573s networkd-dispatcher.service
2.527s NetworkManager.service
2.453s avahi-daemon.service
2.449s thermald.service
2.446s alsa-restore.service
2.446s systemd-logind.service
2.443s pppd-dns.service
2.438s gpu-manager.service
2.434s rsyslog.service
2.016s apport.service
1.426s wpa_supplicant.service
1.388s dns-clean.service
1.276s grub-common.service
1.269s keyboard-setup.service
1.056s tlp.service
1.007s systemd-random-seed.service
987ms packagekit.service
896ms fwupd.service
878ms systemd-tmpfiles-setup-dev.service
779ms systemd-remount-fs.service
758ms dev-mqueue.mount
714ms sys-kernel-debug.mount
712ms dev-hugepages.mount
694ms systemd-modules-load.service
590ms polkit.service
579ms iio-sensor-proxy.service
574ms systemd-sysctl.service
442ms colord.service
434ms systemd-journal-flush.service
379ms systemd-timesyncd.service
332ms dev-disk-byx2duuid-72e62aa6x2deefax2d49e1x2daba3x2d858b0e7dfbd3.swap
330ms upower.service
321ms systemd-journald.service
312ms systemd-backlight@backlight:intel_backlight.service
230ms setvtrgb.service
217ms ufw.service
209ms user@1000.service
179ms systemd-resolved.service
174ms bolt.service
141ms gdm.service
106ms kmod-static-nodes.service
87ms console-setup.service
73ms systemd-update-utmp.service
56ms systemd-udev-trigger.service
52ms kerneloops.service
22ms systemd-user-sessions.service
20ms sys-fs-fuse-connections.mount
19ms rtkit-daemon.service
19ms sys-kernel-config.mount
8ms systemd-update-utmp-runlevel.service


free --human:



 total used free shared buff/cache available
Mem: 7.7G 1.2G 5.4G 148M 1.1G 6.3G
Swap: 19G 0B 19G


Output of ls /etc/apparmor.d/:



abstractions force-complain tunables usr.bin.man usr.lib.libreoffice.program.soffice.bin usr.sbin.cupsd usr.sbin.tcpdump
cache local usr.bin.evince usr.lib.libreoffice.program.oosplash usr.lib.libreoffice.program.xpdfimport usr.sbin.ippusbxd
disable sbin.dhclient usr.bin.firefox usr.lib.libreoffice.program.senddoc usr.sbin.cups-browsed usr.sbin.rsyslogd


NOTE:



  • In order to improve the time taken by systemd-journal-flush.service I have reduced the MAX file size the journal flush service uses to 50M.

  • sda6 is the partition where I have installed Ubuntu on my HDD

  • I do not use Thunderbolt on my machine

  • I don't use SSD

EDIT: Added benchmark results



sudo hdparm -Tt /dev/sda :



/dev/sda:
Timing cached reads: 11730 MB in 2.00 seconds = 5876.89 MB/sec
Timing buffered disk reads: 322 MB in 3.00 seconds = 107.22 MB/sec


sudo hdparm -v /dev/sda :



/dev/sda:
multcount = 16 (on)
IO_support = 1 (32-bit)
readonly = 0 (off)
readahead = 256 (on)
geometry = 121601/255/63, sectors = 1953525168, start = 0


dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output :



10240+0 records in
10240+0 records out
83886080 bytes (84 MB, 80 MiB) copied, 0.0681511 s, 1.2 GB/s


Graphical Results Image Here







share|improve this question


















  • 8




    Please don't post screenshots of text. Instead copy & paste the text here and use code formatting.
    – pomsky
    May 18 at 17:59






  • 2




    Welcome to Ask Ubuntu! ;-) Please edit your post, remove the screenshot, add the full text of the output and add the output to sudo lshw and free --human. Please help us in helping you! :-)
    – Fabby
    May 18 at 20:19











  • @EODCraftStaff - mine is taking me 1.15 mins
    – Praveen Kumar
    May 20 at 0:39










  • @Fabby - I have attached the requested details
    – Praveen Kumar
    May 20 at 0:39










  • I would try this over here: askubuntu.com/questions/1037457/…
    – Dave
    May 20 at 1:06












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am using Ubuntu 18.04 on a HP laptop dual booted with Windows 10, with 40 GB of disk space for Ubuntu and a 20 GB of SWAP area since I have an 8 GB of RAM.
I am using a HDD. Out of the 40 GB, 32.5 GB is still available and free. I have freshly installed the OS a few weeks back.
The shutdown time is really short, say 5 seconds, but the time it takes to boot up goes up to 1 minute.
I have edited /etc/initramfs-tools/initramfs.conf and changed MODULES=dep.
This has greatly reduced time taken by initramfs.
I'm not sure how else to improve it and reduce the time taken.



Boot time from systemd-analyze blame:



 23.512s dev-sda6.device
21.462s plymouth-quit-wait.service
18.832s systemd-udevd.service
18.395s apparmor.service
17.486s systemd-tmpfiles-setup.service
6.801s NetworkManager-wait-online.service
6.732s plymouth-start.service
5.873s plymouth-read-write.service
4.169s udisks2.service
3.890s networking.service
3.889s accounts-daemon.service
3.013s speech-dispatcher.service
2.573s networkd-dispatcher.service
2.527s NetworkManager.service
2.453s avahi-daemon.service
2.449s thermald.service
2.446s alsa-restore.service
2.446s systemd-logind.service
2.443s pppd-dns.service
2.438s gpu-manager.service
2.434s rsyslog.service
2.016s apport.service
1.426s wpa_supplicant.service
1.388s dns-clean.service
1.276s grub-common.service
1.269s keyboard-setup.service
1.056s tlp.service
1.007s systemd-random-seed.service
987ms packagekit.service
896ms fwupd.service
878ms systemd-tmpfiles-setup-dev.service
779ms systemd-remount-fs.service
758ms dev-mqueue.mount
714ms sys-kernel-debug.mount
712ms dev-hugepages.mount
694ms systemd-modules-load.service
590ms polkit.service
579ms iio-sensor-proxy.service
574ms systemd-sysctl.service
442ms colord.service
434ms systemd-journal-flush.service
379ms systemd-timesyncd.service
332ms dev-disk-byx2duuid-72e62aa6x2deefax2d49e1x2daba3x2d858b0e7dfbd3.swap
330ms upower.service
321ms systemd-journald.service
312ms systemd-backlight@backlight:intel_backlight.service
230ms setvtrgb.service
217ms ufw.service
209ms user@1000.service
179ms systemd-resolved.service
174ms bolt.service
141ms gdm.service
106ms kmod-static-nodes.service
87ms console-setup.service
73ms systemd-update-utmp.service
56ms systemd-udev-trigger.service
52ms kerneloops.service
22ms systemd-user-sessions.service
20ms sys-fs-fuse-connections.mount
19ms rtkit-daemon.service
19ms sys-kernel-config.mount
8ms systemd-update-utmp-runlevel.service


free --human:



 total used free shared buff/cache available
Mem: 7.7G 1.2G 5.4G 148M 1.1G 6.3G
Swap: 19G 0B 19G


Output of ls /etc/apparmor.d/:



abstractions force-complain tunables usr.bin.man usr.lib.libreoffice.program.soffice.bin usr.sbin.cupsd usr.sbin.tcpdump
cache local usr.bin.evince usr.lib.libreoffice.program.oosplash usr.lib.libreoffice.program.xpdfimport usr.sbin.ippusbxd
disable sbin.dhclient usr.bin.firefox usr.lib.libreoffice.program.senddoc usr.sbin.cups-browsed usr.sbin.rsyslogd


NOTE:



  • In order to improve the time taken by systemd-journal-flush.service I have reduced the MAX file size the journal flush service uses to 50M.

  • sda6 is the partition where I have installed Ubuntu on my HDD

  • I do not use Thunderbolt on my machine

  • I don't use SSD

EDIT: Added benchmark results



sudo hdparm -Tt /dev/sda :



/dev/sda:
Timing cached reads: 11730 MB in 2.00 seconds = 5876.89 MB/sec
Timing buffered disk reads: 322 MB in 3.00 seconds = 107.22 MB/sec


sudo hdparm -v /dev/sda :



/dev/sda:
multcount = 16 (on)
IO_support = 1 (32-bit)
readonly = 0 (off)
readahead = 256 (on)
geometry = 121601/255/63, sectors = 1953525168, start = 0


dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output :



10240+0 records in
10240+0 records out
83886080 bytes (84 MB, 80 MiB) copied, 0.0681511 s, 1.2 GB/s


Graphical Results Image Here







share|improve this question














I am using Ubuntu 18.04 on a HP laptop dual booted with Windows 10, with 40 GB of disk space for Ubuntu and a 20 GB of SWAP area since I have an 8 GB of RAM.
I am using a HDD. Out of the 40 GB, 32.5 GB is still available and free. I have freshly installed the OS a few weeks back.
The shutdown time is really short, say 5 seconds, but the time it takes to boot up goes up to 1 minute.
I have edited /etc/initramfs-tools/initramfs.conf and changed MODULES=dep.
This has greatly reduced time taken by initramfs.
I'm not sure how else to improve it and reduce the time taken.



Boot time from systemd-analyze blame:



 23.512s dev-sda6.device
21.462s plymouth-quit-wait.service
18.832s systemd-udevd.service
18.395s apparmor.service
17.486s systemd-tmpfiles-setup.service
6.801s NetworkManager-wait-online.service
6.732s plymouth-start.service
5.873s plymouth-read-write.service
4.169s udisks2.service
3.890s networking.service
3.889s accounts-daemon.service
3.013s speech-dispatcher.service
2.573s networkd-dispatcher.service
2.527s NetworkManager.service
2.453s avahi-daemon.service
2.449s thermald.service
2.446s alsa-restore.service
2.446s systemd-logind.service
2.443s pppd-dns.service
2.438s gpu-manager.service
2.434s rsyslog.service
2.016s apport.service
1.426s wpa_supplicant.service
1.388s dns-clean.service
1.276s grub-common.service
1.269s keyboard-setup.service
1.056s tlp.service
1.007s systemd-random-seed.service
987ms packagekit.service
896ms fwupd.service
878ms systemd-tmpfiles-setup-dev.service
779ms systemd-remount-fs.service
758ms dev-mqueue.mount
714ms sys-kernel-debug.mount
712ms dev-hugepages.mount
694ms systemd-modules-load.service
590ms polkit.service
579ms iio-sensor-proxy.service
574ms systemd-sysctl.service
442ms colord.service
434ms systemd-journal-flush.service
379ms systemd-timesyncd.service
332ms dev-disk-byx2duuid-72e62aa6x2deefax2d49e1x2daba3x2d858b0e7dfbd3.swap
330ms upower.service
321ms systemd-journald.service
312ms systemd-backlight@backlight:intel_backlight.service
230ms setvtrgb.service
217ms ufw.service
209ms user@1000.service
179ms systemd-resolved.service
174ms bolt.service
141ms gdm.service
106ms kmod-static-nodes.service
87ms console-setup.service
73ms systemd-update-utmp.service
56ms systemd-udev-trigger.service
52ms kerneloops.service
22ms systemd-user-sessions.service
20ms sys-fs-fuse-connections.mount
19ms rtkit-daemon.service
19ms sys-kernel-config.mount
8ms systemd-update-utmp-runlevel.service


free --human:



 total used free shared buff/cache available
Mem: 7.7G 1.2G 5.4G 148M 1.1G 6.3G
Swap: 19G 0B 19G


Output of ls /etc/apparmor.d/:



abstractions force-complain tunables usr.bin.man usr.lib.libreoffice.program.soffice.bin usr.sbin.cupsd usr.sbin.tcpdump
cache local usr.bin.evince usr.lib.libreoffice.program.oosplash usr.lib.libreoffice.program.xpdfimport usr.sbin.ippusbxd
disable sbin.dhclient usr.bin.firefox usr.lib.libreoffice.program.senddoc usr.sbin.cups-browsed usr.sbin.rsyslogd


NOTE:



  • In order to improve the time taken by systemd-journal-flush.service I have reduced the MAX file size the journal flush service uses to 50M.

  • sda6 is the partition where I have installed Ubuntu on my HDD

  • I do not use Thunderbolt on my machine

  • I don't use SSD

EDIT: Added benchmark results



sudo hdparm -Tt /dev/sda :



/dev/sda:
Timing cached reads: 11730 MB in 2.00 seconds = 5876.89 MB/sec
Timing buffered disk reads: 322 MB in 3.00 seconds = 107.22 MB/sec


sudo hdparm -v /dev/sda :



/dev/sda:
multcount = 16 (on)
IO_support = 1 (32-bit)
readonly = 0 (off)
readahead = 256 (on)
geometry = 121601/255/63, sectors = 1953525168, start = 0


dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output :



10240+0 records in
10240+0 records out
83886080 bytes (84 MB, 80 MiB) copied, 0.0681511 s, 1.2 GB/s


Graphical Results Image Here









share|improve this question













share|improve this question




share|improve this question








edited May 21 at 3:53

























asked May 18 at 17:57









Praveen Kumar

264




264







  • 8




    Please don't post screenshots of text. Instead copy & paste the text here and use code formatting.
    – pomsky
    May 18 at 17:59






  • 2




    Welcome to Ask Ubuntu! ;-) Please edit your post, remove the screenshot, add the full text of the output and add the output to sudo lshw and free --human. Please help us in helping you! :-)
    – Fabby
    May 18 at 20:19











  • @EODCraftStaff - mine is taking me 1.15 mins
    – Praveen Kumar
    May 20 at 0:39










  • @Fabby - I have attached the requested details
    – Praveen Kumar
    May 20 at 0:39










  • I would try this over here: askubuntu.com/questions/1037457/…
    – Dave
    May 20 at 1:06












  • 8




    Please don't post screenshots of text. Instead copy & paste the text here and use code formatting.
    – pomsky
    May 18 at 17:59






  • 2




    Welcome to Ask Ubuntu! ;-) Please edit your post, remove the screenshot, add the full text of the output and add the output to sudo lshw and free --human. Please help us in helping you! :-)
    – Fabby
    May 18 at 20:19











  • @EODCraftStaff - mine is taking me 1.15 mins
    – Praveen Kumar
    May 20 at 0:39










  • @Fabby - I have attached the requested details
    – Praveen Kumar
    May 20 at 0:39










  • I would try this over here: askubuntu.com/questions/1037457/…
    – Dave
    May 20 at 1:06







8




8




Please don't post screenshots of text. Instead copy & paste the text here and use code formatting.
– pomsky
May 18 at 17:59




Please don't post screenshots of text. Instead copy & paste the text here and use code formatting.
– pomsky
May 18 at 17:59




2




2




Welcome to Ask Ubuntu! ;-) Please edit your post, remove the screenshot, add the full text of the output and add the output to sudo lshw and free --human. Please help us in helping you! :-)
– Fabby
May 18 at 20:19





Welcome to Ask Ubuntu! ;-) Please edit your post, remove the screenshot, add the full text of the output and add the output to sudo lshw and free --human. Please help us in helping you! :-)
– Fabby
May 18 at 20:19













@EODCraftStaff - mine is taking me 1.15 mins
– Praveen Kumar
May 20 at 0:39




@EODCraftStaff - mine is taking me 1.15 mins
– Praveen Kumar
May 20 at 0:39












@Fabby - I have attached the requested details
– Praveen Kumar
May 20 at 0:39




@Fabby - I have attached the requested details
– Praveen Kumar
May 20 at 0:39












I would try this over here: askubuntu.com/questions/1037457/…
– Dave
May 20 at 1:06




I would try this over here: askubuntu.com/questions/1037457/…
– Dave
May 20 at 1:06















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037849%2fis-there-a-way-i-can-reduce-the-boot-up-time-on-my-ubuntu%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037849%2fis-there-a-way-i-can-reduce-the-boot-up-time-on-my-ubuntu%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491