You are not logged in.

#1 2014-11-18 20:44:48

rep_movsd
Member
Registered: 2013-08-24
Posts: 142

systemd swap service taking very long time during boot [Solved]

Since a few days, I'm having 6 to 8 seconds of delay while booting..,

rep ~ $ systemd-analyze blame
          6.612s dev-disk-by\x2duuid-6707abf6\x2d5299\x2d4e90\x2d8d62\x2df9a03e6270a6.swap
          1.396s systemd-fsck@dev-disk-by\x2duuid-b2b35d72\x2d71b7\x2d4558\x2dbeb0\x2deceacc59294f.service
           281ms boot.mount
           227ms NetworkManager.service
           209ms systemd-fsck@dev-disk-by\x2duuid-b7c6a22b\x2d8734\x2d48d6\x2dbb31\x2d35367ac5b7b9.service
           121ms systemd-tmpfiles-setup.service
            82ms mnt-500g.mount
            79ms systemd-update-utmp.service
            62ms systemd-logind.service
            62ms systemd-journald.service
            61ms systemd-udevd.service
            57ms alsa-restore.service
            48ms wpa_supplicant.service
            33ms udisks2.service
            33ms systemd-rfkill@rfkill0.service
            33ms systemd-journal-flush.service
            31ms systemd-rfkill@rfkill1.service
            30ms systemd-rfkill@rfkill2.service
            30ms polkit.service
            29ms user@1000.service
            26ms systemd-sysctl.service
            17ms systemd-udev-trigger.service
            13ms systemd-tmpfiles-setup-dev.service
            11ms systemd-backlight@backlight:acpi_video0.service
            10ms avahi-daemon.service
             9ms upower.service
             7ms systemd-random-seed.service
             6ms rtkit-daemon.service
             5ms dev-hugepages.mount
             5ms dev-mqueue.mount
             4ms sys-kernel-debug.mount
             4ms kmod-static-nodes.service
             4ms systemd-vconsole-setup.service
             4ms sys-kernel-config.mount
             3ms sys-fs-fuse-connections.mount
             2ms systemd-user-sessions.service
             2ms systemd-remount-fs.service
             1ms tmp.mount

rep ~ $ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

multi-user.target @7.503s
`-NetworkManager.service @7.276s +227ms
  `-basic.target @7.275s
    `-timers.target @7.275s
      `-systemd-tmpfiles-clean.timer @7.275s
        `-sysinit.target @7.273s
          `-swap.target @7.273s
            `-dev-disk-by\x2duuid-6707abf6\x2d5299\x2d4e90\x2d8d62\x2df9a03e6270a6.swap @660ms +6.612s
              `-dev-disk-by\x2duuid-6707abf6\x2d5299\x2d4e90\x2d8d62\x2df9a03e6270a6.device @659ms

rep ~ $ cat /etc/fstab
# /etc/fstab: static file system information
# <file system>                                 <dir>   <type>  <options>                                                                       <dump>  <pass>
#UUID=9a336f35-6fc3-4466-988e-2d5688ef2ad5      /       ext4    rw,noatime,discard,stripe=256,nobarrier,inode_readahead_blks=256,delalloc       0       1
UUID=b2b35d72-71b7-4558-beb0-eceacc59294f       /boot   ext4    rw,noatime,discard,stripe=256,nobarrier,inode_readahead_blks=256,delalloc       0       1
UUID=6707abf6-5299-4e90-8d62-f9a03e6270a6       swap    swap    discard,sw                                                                              0       0

tmpfs   /tmp    tmpfs      defaults,noatime,mode=1777    0    0

Commenting out the swap entry in fstab makes the delay go away.
I tried recreating the swap with mkswap.

The fsck also seems to be taking inordinate amounts of time, considering I have 2 SSDs in RAID-0 mode

What gives?

Last edited by rep_movsd (2014-11-19 15:45:06)

Offline

#2 2014-11-19 15:44:31

rep_movsd
Member
Registered: 2013-08-24
Posts: 142

Re: systemd swap service taking very long time during boot [Solved]

Solved it -
I updated packages and commented out the entries in fstab

Seems like systemd will manage swap and tmpfs on its own, if there are entries in fstab as well, it seems to get stalled for a while.

Now my userspace time is down to 0.97 but I moved to nouveau from nvidia and the kernel is taking 8.8 seconds to boot now! Meh!

Offline

Board footer

Powered by FluxBB