Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #179902 > unrolled thread

Tuning boot time of my server

Started byMarkus Grunwald <markus@the-grue.de>
First post2017-04-08 21:30 +0200
Last post2017-04-08 21:40 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  Tuning boot time of my server Markus Grunwald <markus@the-grue.de> - 2017-04-08 21:30 +0200
    Re: Tuning boot time of my server Erwan David <erwan@rail.eu.org> - 2017-04-08 21:30 +0200
      Re: Tuning boot time of my server Markus Grunwald <markus@the-grue.de> - 2017-04-08 21:40 +0200
    Re: Tuning boot time of my server Michael Biebl <biebl@debian.org> - 2017-04-08 21:40 +0200

#179902 — Tuning boot time of my server

FromMarkus Grunwald <markus@the-grue.de>
Date2017-04-08 21:30 +0200
SubjectTuning boot time of my server
Message-ID<tu4dz-ZU-3@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hello,

just for sports, I tried to minimise the boot time of my server, which
is running systemd. I have one mayor blocker:

 % systemd-analyze blame
         10.746s srv-share-backup.mount
         10.258s nfs-kernel-server.service
          3.311s mysql.service
          1.444s apache2.service
          1.344s epgd.service
          1.012s privoxy.service


/srv/share/backup lives on a Western Digital WD RED, and this device
takes ages to spin up. So I'd rather /not/ spin this disk, if it is
not necessary - which it isn't. That's why I've set up an automount
unit for it.
Now I don't understand why it is mounted on booting. /srv/share/backup
is exported via NFS, which might be the reason for the slow
nfs-kernel-server.service. But I have other exports on WD REDs as
well, and they are not mounted while booting.

So why is srv-share-backup.mount started at boot-time? It's not wanted
or directly enabled:

% find /etc/systemd -type l -iname \*.mount
/etc/systemd/system/local-fs.target.requires/-.mount
/etc/systemd/system/local-fs.target.wants/boot.mount
/etc/systemd/system/dev-disk-by\x2duuid-10ad4727\x2d658c\x2d4559\x2d90b3\x2dfd966f8dbf96.device.wants/boot.mount

Can you give me a hint? I've attached the tiny output of
"systemd-analyze plot " for your reference.

--
Markus Grunwald
http://www.the-grue.de/~markus/markus_grunwald.gpg

[toc] | [next] | [standalone]


#179903

FromErwan David <erwan@rail.eu.org>
Date2017-04-08 21:30 +0200
Message-ID<tu4dz-ZU-1@gated-at.bofh.it>
In reply to#179902
Le 04/08/17 à 21:15, Markus Grunwald a écrit :
> Hello,
> 
> just for sports, I tried to minimise the boot time of my server, which
> is running systemd. I have one mayor blocker:
> 
>  % systemd-analyze blame
>          10.746s srv-share-backup.mount
>          10.258s nfs-kernel-server.service
>           3.311s mysql.service
>           1.444s apache2.service
>           1.344s epgd.service
>           1.012s privoxy.service
> 
> 
> /srv/share/backup lives on a Western Digital WD RED, and this device
> takes ages to spin up. So I'd rather /not/ spin this disk, if it is
> not necessary - which it isn't. That's why I've set up an automount
> unit for it.
> Now I don't understand why it is mounted on booting. /srv/share/backup
> is exported via NFS, which might be the reason for the slow
> nfs-kernel-server.service. But I have other exports on WD REDs as
> well, and they are not mounted while booting.
> 
> So why is srv-share-backup.mount started at boot-time? It's not wanted
> or directly enabled:
> 
> % find /etc/systemd -type l -iname \*.mount
> /etc/systemd/system/local-fs.target.requires/-.mount
> /etc/systemd/system/local-fs.target.wants/boot.mount
> /etc/systemd/system/dev-disk-by\x2duuid-10ad4727\x2d658c\x2d4559\x2d90b3\x2dfd966f8dbf96.device.wants/boot.mount
> 
> Can you give me a hint? I've attached the tiny output of
> "systemd-analyze plot " for your reference.
> 
> --
> Markus Grunwald
> http://www.the-grue.de/~markus/markus_grunwald.gpg
> 

For my servers the longest time by far is when the firmware (BIOS or EFI
begins and tests evrything), not the boot itself, except on old Redhat
which waited before really starting and had no parrallel boot. Debian
boot time with or without systemd can be neglected, especially for
servers who boot not more than twice a year.

[toc] | [prev] | [next] | [standalone]


#179904

FromMarkus Grunwald <markus@the-grue.de>
Date2017-04-08 21:40 +0200
Message-ID<tu4nf-13d-7@gated-at.bofh.it>
In reply to#179903
Hello Erwan,

> Debian
> boot time with or without systemd can be neglected, especially for
> servers who boot not more than twice a year.

That's why I wrote:

> > just for sports, I tried to minimise the boot time of my server, which
> > is running systemd. I have one mayor blocker:

--
Markus Grunwald
http://www.the-grue.de/~markus/markus_grunwald.gpg

[toc] | [prev] | [next] | [standalone]


#179905

FromMichael Biebl <biebl@debian.org>
Date2017-04-08 21:40 +0200
Message-ID<tu4nf-13d-9@gated-at.bofh.it>
In reply to#179902

[Multipart message — attachments visible in raw view] — view raw

Am 08.04.2017 um 21:15 schrieb Markus Grunwald:
> Hello,
> 
> just for sports, I tried to minimise the boot time of my server, which
> is running systemd. I have one mayor blocker:
> 
>  % systemd-analyze blame
>          10.746s srv-share-backup.mount
>          10.258s nfs-kernel-server.service
>           3.311s mysql.service
>           1.444s apache2.service
>           1.344s epgd.service
>           1.012s privoxy.service
> 
> 
> /srv/share/backup lives on a Western Digital WD RED, and this device
> takes ages to spin up. So I'd rather /not/ spin this disk, if it is
> not necessary - which it isn't. That's why I've set up an automount
> unit for it.
> Now I don't understand why it is mounted on booting. /srv/share/backup
> is exported via NFS, which might be the reason for the slow
> nfs-kernel-server.service. But I have other exports on WD REDs as
> well, and they are not mounted while booting.
> 
> So why is srv-share-backup.mount started at boot-time? It's not wanted
> or directly enabled:

Most likely something is accessing the share, which trigger the mount
request. One possible candidate could be nfs-kernel-server.
If you stop exporting the share via NFS, is it still (auto)mounted?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web