[SOLVED] Slow Boot after Swap Partition Removal

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Davent
Level 1
Level 1
Posts: 39
Joined: Sat Apr 28, 2018 11:23 am
Location: Bolton UK

[SOLVED] Slow Boot after Swap Partition Removal

Post by Davent »

Since the Linux Mint 19.3 upgrade, I decided that I could remove my 10Gb Swap partition as I now have 20Gb RAM on my Laptop system. Prior to the Swap file removal, boot up speeds were very fast, between 30 - 45 seconds. Since then the boot speed has slowed down considerably to nearly 1 minute. Whilst this is tolerable, it is never the less annoying and I would like to remedy this if possible. NB. As you can see I have a second ssd on my laptop and I have devoted a seperate partition on this second drive for Timeshift. The system is very speedy and stable once loaded.

Can anyone see any clues as to what has caused this slow down? Please find enclosed relevant details:

Code: Select all

System:    Host: LinuxMint19 Kernel: 4.15.0-74-generic x86_64 bits: 64 compiler: gcc v: 7.4.0 
           Desktop: Cinnamon 4.4.8 wm: muffin dm: LightDM Distro: Linux Mint 19.3 Tricia 
           base: Ubuntu 18.04 bionic 
Machine:   Type: Laptop System: ASUSTeK product: X556UAK v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: X556UAK v: 1.0 serial: <filter> UEFI: American Megatrends 
           v: X556UAK.304 date: 10/24/2016 
Battery:   ID-1: BAT0 charge: 30.3 Wh condition: 30.7/38.0 Wh (81%) volts: 7.6/7.6 
           model: ASUSTeK ASUS Battery serial: <filter> status: Not charging 
CPU:       Topology: Dual Core model: Intel Core i7-7500U bits: 64 type: MT MCP arch: Kaby Lake 
           rev: 9 L2 cache: 4096 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 23232 
           Speed: 3500 MHz min/max: 400/3500 MHz Core speeds (MHz): 1: 3500 2: 3501 3: 3500 
           4: 3503 
Graphics:  Device-1: Intel HD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:5916 
           Display: x11 server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa tty: N/A 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2) v: 4.5 Mesa 19.2.1 
           compat-v: 3.0 direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK driver: snd_hda_intel 
           v: kernel bus ID: 00:1f.3 chip ID: 8086:9d71 
           Sound Server: ALSA v: k4.15.0-74-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK 
           driver: r8169 v: 2.3LK-NAPI port: e000 bus ID: 02:00.0 chip ID: 10ec:8168 
           IF: enp2s0 state: down mac: <filter> 
           Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter vendor: AzureWave 
           driver: ath10k_pci v: kernel port: e000 bus ID: 03:00.0 chip ID: 168c:0042 
           IF: wlp3s0 state: up mac: <filter> 
Drives:    Local Storage: total: 5.46 TiB used: 1.01 TiB (18.5%) 
           ID-1: /dev/sda vendor: Crucial model: CT2000MX500SSD1 size: 1.82 TiB speed: 6.0 Gb/s 
           serial: <filter> 
           ID-2: /dev/sdb vendor: Samsung model: SSD 860 QVO 4TB size: 3.64 TiB speed: 6.0 Gb/s 
           serial: <filter> 
Partition: ID-1: / size: 47.56 GiB used: 28.78 GiB (60.5%) fs: ext4 dev: /dev/sda4 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 chip ID: 1d6b:0002 
           Device-1: 1-5:2 info: Realtek RTS5129 Card Reader Controller type: <vendor specific> 
           driver: rtsx_usb,rtsx_usb_ms,rtsx_usb_sdmmc rev: 2.0 chip ID: 0bda:0129 
           Device-2: 1-6:3 info: IMC Networks type: Video driver: uvcvideo rev: 2.0 
           chip ID: 13d3:5a01 
           Device-3: 1-8:4 info: IMC Networks type: Bluetooth driver: btusb rev: 1.1 
           chip ID: 13d3:3496 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 chip ID: 1d6b:0003 
Sensors:   System Temperatures: cpu: 53.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] http: //dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/jon-hedgerows-get-iplayer-bionic.list 
           1: deb http: //ppa.launchpad.net/jon-hedgerows/get-iplayer/ubuntu bionic main
           2: deb-src http: //ppa.launchpad.net/jon-hedgerows/get-iplayer/ubuntu bionic main
           Active apt repos in: /etc/apt/sources.list.d/mkusb-ppa-bionic.list 
           1: deb http: //ppa.launchpad.net/mkusb/ppa/ubuntu bionic main
           2: deb-src http: //ppa.launchpad.net/mkusb/ppa/ubuntu bionic main
           Active apt repos in: /etc/apt/sources.list.d/mscore-ubuntu-mscore3-stable-bionic.list 
           1: deb http: //ppa.launchpad.net/mscore-ubuntu/mscore3-stable/ubuntu bionic main
           2: deb-src http: //ppa.launchpad.net/mscore-ubuntu/mscore3-stable/ubuntu bionic main
           Active apt repos in: /etc/apt/sources.list.d/nilarimogard-webupd8-bionic.list 
           1: deb http: //ppa.launchpad.net/nilarimogard/webupd8/ubuntu bionic main
           2: deb-src http: //ppa.launchpad.net/nilarimogard/webupd8/ubuntu bionic main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http: //www.mirrorservice.org/sites/packages.linuxmint.com/packages tricia main upstream import backport
           2: deb http: //archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
           3: deb http: //archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
           4: deb http: //archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ bionic partner
           Active apt repos in: /etc/apt/sources.list.d/openshot_developers-ppa-bionic.list 
           1: deb http: //ppa.launchpad.net/openshot.developers/ppa/ubuntu bionic main
           2: deb-src http: //ppa.launchpad.net/openshot.developers/ppa/ubuntu bionic main
           No active apt repos in: /etc/apt/sources.list.d/plexmediaserver.list 
           Active apt repos in: /etc/apt/sources.list.d/rvm-smplayer-bionic.list 
           1: deb http: //ppa.launchpad.net/rvm/smplayer/ubuntu bionic main
           2: deb-src http: //ppa.launchpad.net/rvm/smplayer/ubuntu bionic main
           Active apt repos in: /etc/apt/sources.list.d/stebbins-handbrake-releases-bionic.list 
           1: deb http: //ppa.launchpad.net/stebbins/handbrake-releases/ubuntu bionic main
           2: deb-src http: //ppa.launchpad.net/stebbins/handbrake-releases/ubuntu bionic main
           Active apt repos in: /etc/apt/sources.list.d/teejee2008-ppa-bionic.list 
           1: deb http: //ppa.launchpad.net/teejee2008/ppa/ubuntu bionic main
           2: deb-src http: //ppa.launchpad.net/teejee2008/ppa/ubuntu bionic main
           Active apt repos in: /etc/apt/sources.list.d/windscribe-repo.list 
           1: deb https: //repo.windscribe.com/ubuntu zesty main
Info:      Processes: 237 Uptime: 30m Memory: 19.49 GiB used: 1.52 GiB (7.8%) Init: systemd v: 237 
           runlevel: 5 Compilers: gcc: 7.4.0 alt: 7 Client: Unknown python3.6 client inxi: 3.0.32 

Code: Select all


david@LinuxMint19:~$ systemd-analyze
Startup finished in 4.331s (firmware) + 3.005s (loader) + 35.958s (kernel) + 9.504s (userspace) = 52.800s
graphical.target reached after 9.500s in userspace
david@LinuxMint19:~$ systemd-analyze blame
          6.197s NetworkManager-wait-online.service
          1.548s windscribe-cli.service
           950ms resolvconf-pull-resolved.service
           811ms media-public.mount
           739ms systemd-journal-flush.service
           679ms mnt-53EF3ACB3E6DE687.mount
           569ms vboxdrv.service
           408ms systemd-fsck@dev-disk-by\x2duuid-4AD9\x2d1017.service
           394ms dev-sda4.device
           369ms mnt-0BB076D14654125E.mount
           361ms NetworkManager.service
           339ms systemd-logind.service
           322ms ubuntu-system-adjustments.service
           318ms networkd-dispatcher.service
           317ms gpu-manager.service
           315ms grub-common.service
           310ms udisks2.service
           230ms accounts-daemon.service
           179ms ModemManager.service
           143ms systemd-timesyncd.service
           138ms alsa-restore.service
           133ms systemd-resolved.service
           107ms thermald.service
           102ms keyboard-setup.service
            97ms apparmor.service
            94ms avahi-daemon.service
            93ms systemd-rfkill.service
            92ms lvm2-monitor.service
            80ms ubiquity.service
            79ms nmbd.service
            79ms systemd-udev-trigger.service
            79ms lm-sensors.service
            79ms lightdm.service
            76ms plymouth-quit-wait.service
            75ms pppd-dns.service
            71ms polkit.service
            63ms packagekit.service
            59ms smbd.service
            53ms systemd-journald.service
            53ms rsyslog.service
            52ms upower.service
            52ms bluetooth.service
            51ms systemd-tmpfiles-setup.service
            50ms wpa_supplicant.service
            49ms systemd-udevd.service
            38ms systemd-tmpfiles-setup-dev.service
            37ms colord.service
            35ms chrome-remote-desktop.service
            34ms systemd-sysctl.service
            33ms networking.service
            31ms user@1000.service
            26ms systemd-modules-load.service
            26ms qemu-kvm.service
            25ms apport.service
            25ms systemd-tmpfiles-clean.service
            23ms speech-dispatcher.service
            23ms plymouth-read-write.service
            19ms hddtemp.service
            17ms mnt-9dacfcf5\x2d52c4\x2d468e\x2dac75\x2dc043bb53df7d.mount
            15ms boot-efi.mount
            13ms ufw.service
            13ms plymouth-start.service
            13ms blk-availability.service
            13ms sys-kernel-debug.mount
            12ms dev-mqueue.mount
            11ms setvtrgb.service
            11ms kerneloops.service
            10ms plexmediaserver.service
            10ms kmod-static-nodes.service
             9ms dev-hugepages.mount
             9ms systemd-remount-fs.service
             8ms console-setup.service
             8ms systemd-update-utmp.service
             7ms systemd-random-seed.service
             7ms systemd-user-sessions.service
             6ms ureadahead-stop.service
             5ms sys-fs-fuse-connections.mount
             5ms resolvconf.service
             5ms sys-kernel-config.mount
             4ms dns-clean.service
             4ms vboxballoonctrl-service.service
             3ms systemd-update-utmp-runlevel.service
             3ms rtkit-daemon.service
             3ms vboxweb-service.service
             3ms vboxautostart-service.service
             2ms motd-news.service
             2ms systemd-backlight@backlight:intel_backlight.service
             1ms openvpn.service
lines 66-88/88 (END)

        

Kind Regards and thank you in anticipation. Davent.
Last edited by Davent on Thu Jan 16, 2020 7:59 pm, edited 2 times in total.
Asus X556UA Laptop - Intel i7-7500U - 20Gb Ram - 2Tb + 4Tb SSD - Linux Mint 19.3 Tricia - Dual Boot

User avatar
Flemur
Level 17
Level 17
Posts: 7650
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Slow Boot after Swap File Removal

Post by Flemur »

Davent wrote:
Thu Jan 16, 2020 2:47 pm
Prior to the Swap file removal, boot up speeds were very fast, between 30 - 45 seconds. Since then the boot speed has slowed down considerably to nearly 1 minute.
It's probably still looking for that swap file, and it'll usually wait 1.5 minutes before giving up (you can change that) ...if you just deleted the file without editing the /etc/fstab file.

If so, edit /etc/fstab as root and comment out the line that mentions the swap file: stick a # at the front:
This line from fstab is commented out:

Code: Select all

# /etc/100MB.swap   swap       swap    sw                0 0
Be careful editing...! Make a copy first:

Code: Select all

sudo cp /etc/fstab /etc/fstab.save
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

User avatar
deck_luck
Level 4
Level 4
Posts: 421
Joined: Mon May 27, 2019 6:57 pm
Location: here

Re: Slow Boot after Swap File Removal

Post by deck_luck »

The kernel is probably trying to access the old swapfile as the resume device. The resume device is used to resume from a hibernation. During your initial installation the resume device was associated with your swap. Do you know how to start a terminal session using bash? For further analysis open a terminal and please provide the output from the following commands:

Code: Select all

cat /proc/swaps
sudo cat /etc/initramfs-tools/conf.d/resume
sudo cat /etc/fstab
lsblk -f
💡Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime. ✝️ 🐧Linux Mint 19.1 XFCE
How to get help How to mark topic as [Solved]

Davent
Level 1
Level 1
Posts: 39
Joined: Sat Apr 28, 2018 11:23 am
Location: Bolton UK

Re: Slow Boot after Swap File Removal

Post by Davent »

Is this how you want me to provide the information?

Code: Select all

david@LinuxMint19:~$ cat /proc/swaps
Filename				Type		Size	Used	Priority
david@LinuxMint19:~$ sudo cat /etc/initramfs-tools/conf.d/resume
[sudo] password for david:         
RESUME=UUID=231fd997-5445-40b4-9c8e-001f0b6e41fd
david@LinuxMint19:~$ sudo cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda7 during installation
UUID=02740023-4038-49f2-a503-79f5da3ac31e /               ext4    noatime,errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
#UUID=4AD9-1017  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/sda6 during installation
#UUID=231fd997-5445-40b4-9c8e-001f0b6e41fd none            swap    sw              0       0
//192.168.1.1/USB_Storage /media/public cifs guest 0 0
//192.168.8.1/USB_Storage /media/public cifs guest 0 0
#/dev/disk/by-uuid/42F407D0F407C55F /mnt/42F407D0F407C55F auto nosuid,nodev,nofail 0 0
# Unremark next line to allow mount of Crucial Drive in Plex
#UUID=706B53496CF85530 /media/ntfsdrive ntfs-3g permissions,auto 0 0
UUID=4AD9-1017	/boot/efi	vfat	defaults	0	1
/dev/disk/by-uuid/0BB076D14654125E /mnt/0BB076D14654125E auto nosuid,nodev,nofail 0 0
/dev/disk/by-uuid/53EF3ACB3E6DE687 /mnt/53EF3ACB3E6DE687 auto nosuid,nodev,nofail 0 0
/dev/disk/by-uuid/9dacfcf5-52c4-468e-ac75-c043bb53df7d /mnt/9dacfcf5-52c4-468e-ac75-c043bb53df7d auto nosuid,nodev,nofail 0 0
david@LinuxMint19:~$ lsblk -f
NAME   FSTYPE LABEL          UUID                                 MOUNTPOINT
sda                                                               
├─sda1 vfat   SYSTEM         4AD9-1017                            /boot/efi
├─sda2                                                            
├─sda3 ntfs   Windows OS     68A2DDCDA2DD9FBC                     
├─sda4 ext4   Linux19        02740023-4038-49f2-a503-79f5da3ac31e /
├─sda5 ntfs                  53EF3ACB3E6DE687                     /mnt/53EF3ACB3E6DE687
└─sda7 ntfs                  82E2F258E2F25041                     
sdb                                                               
├─sdb1 ntfs   Samsung Data   0BB076D14654125E                     /mnt/0BB076D14654125E
└─sdb2 ext4   Timeshift Data 9dacfcf5-52c4-468e-ac75-c043bb53df7d /mnt/9dacfcf5-52c4-46
I have just noticed there is no sda6 which I think was my swap file, could this be a problem?
Asus X556UA Laptop - Intel i7-7500U - 20Gb Ram - 2Tb + 4Tb SSD - Linux Mint 19.3 Tricia - Dual Boot

User avatar
deck_luck
Level 4
Level 4
Posts: 421
Joined: Mon May 27, 2019 6:57 pm
Location: here

Re: Slow Boot after Swap File Removal

Post by deck_luck »

Davent wrote:
Thu Jan 16, 2020 3:23 pm
Is this how you want me to provide the information?
Yes, you did good.
I have just noticed there is no sda6 which I think was my swap file, could this be a problem?
The swap entries are ignored, because they are commented in the /etc/fstab. The comments begin with a # symbol.

Code: Select all

cat /etc/initramfs-tools/conf.d/resume      
RESUME=UUID=231fd997-5445-40b4-9c8e-001f0b6e41fd
Notice, your resume file has an entry with a RESUME=UUID... entry. During the boot process the kernel is attempting to find the RESUME device. After about thirty-seconds it will give up and continue.

Do you know how to modify a text file? If so change the RESUME entry to
RESUME=none

After changing the resume file, run the following command from a terminal session:

Code: Select all

sudo update-initramfs -u 
After a successfully running the update-initramfs, please reboot and report your results.
💡Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime. ✝️ 🐧Linux Mint 19.1 XFCE
How to get help How to mark topic as [Solved]

Davent
Level 1
Level 1
Posts: 39
Joined: Sat Apr 28, 2018 11:23 am
Location: Bolton UK

Re: Slow Boot after Swap File Removal

Post by Davent »

Thank you very much for your time and expertise which appears to have done the trick!!

I have followed your instructions, rebooted and this is the result :-

Code: Select all

david@LinuxMint19:~$ systemd-analyze
Startup finished in 4.183s (firmware) + 2.984s (loader) + 4.751s (kernel) + 9.322s (userspace) = 21.242s
graphical.target reached after 9.316s in userspace
It booted up in 21 seconds!! I will do further tests to make sure all is OK. then mark this as SOLVED.

I am elated and bow down to you and thank you again. Best wishes for the new year and kind regards, Davent.
Asus X556UA Laptop - Intel i7-7500U - 20Gb Ram - 2Tb + 4Tb SSD - Linux Mint 19.3 Tricia - Dual Boot

dawgdoc
Level 9
Level 9
Posts: 2741
Joined: Mon Oct 05, 2009 12:53 am
Location: Formerly of Kentucky, the land of Mint Juleps

Re: [SOLVED] Slow Boot after Swap Partition Removal

Post by dawgdoc »

I'm curious.
How well does the computer wake from Suspend or Hibernation?
SYSTEMS:
HP 15-bw0017cl -- Mint 19.3 Cinnamon
Compaq Presario CQ62 -- Mint 17 Cinnamon (support for 80 y/o family members 1st install)
READING:
The Secret of the Ninth Planet by Donald A. Wollheim

Davent
Level 1
Level 1
Posts: 39
Joined: Sat Apr 28, 2018 11:23 am
Location: Bolton UK

Re: [SOLVED] Slow Boot after Swap Partition Removal

Post by Davent »

dawgdoc wrote:
Fri Jan 17, 2020 12:33 am
How well does the computer wake from Suspend or Hibernation?
As soon as I open the lid, the laptop wakes from suspension and turns on instantly. No delay whatsoever.
Asus X556UA Laptop - Intel i7-7500U - 20Gb Ram - 2Tb + 4Tb SSD - Linux Mint 19.3 Tricia - Dual Boot

Post Reply

Return to “Newbie Questions”