Author Topic: Long startup time because of updatedb.service and man-db.service  (Read 9679 times)

0 Members and 1 Guest are viewing this topic.

Offline dicktater

  • Held Mitglied
  • *****
  • Posts: 2056
  • Skill: Novice
Re: Long startup time because of updatedb.service and man-db.service
« Reply #15 on: 10. July 2014, 01:04:58 »
Svajs,

I found this dev discussion from April of this year just before you posted about your recent startup issue (for which I don't have an immediate answer. sorry). Regardless, I wanted to get this posted. There are only about 7 posts in the thread, the last has perhaps with a /etc/systemd/system/updatedb.service.d/delay.conf trick/fix (may be deprecated? i dunno).

 
[arch-general] On-boot delay due to timer units

https://mailman.archlinux.org/pipermail/arch-general/2014-April/035935.html


edit:
Adding this from April 28th
 
Quote
updatedb.service slows down boot a lot. 1min and some secs for this service ? and this is happening in every boot. WTF ? I've disabled it. Better to run manually before locate command.
https://plus.google.com/wm/1/+NikTh/posts/CDdTjixAz6W
further discussion in the comments.
« Last Edit: 10. July 2014, 01:08:33 by dicktater »
The Manjaro Forum Revised Rules  How to Report Issues Properly   Please Read the Manjaro Wiki

Offline dicktater

  • Held Mitglied
  • *****
  • Posts: 2056
  • Skill: Novice
The Manjaro Forum Revised Rules  How to Report Issues Properly   Please Read the Manjaro Wiki

Offline Hadi

  • Jr. Mitglied
  • **
  • Posts: 50
  • Branch: Unstable
  • Desktop: Gnome3.18
  • GPU Card: AMD Radeon 6370M
  • GPU driver: nonfree
  • Kernel: linux-319-x64
  • Skill: Novice
Re: Long startup time because of updatedb.service and man-db.service
« Reply #17 on: 10. July 2014, 01:15:01 »
Hello guys

I have recently installed manjaro and I'm not skilled with the command line yet.
But I have also a terrible boot time.  I typed system-analyze blame and it shows me that  man.db takes about   1 minute and 40 seconds.
I'm not sure what to do....

Thanks.

Offline Svajs

  • Jr. Mitglied
  • **
  • Posts: 54
  • Branch: stable
  • Desktop: Xfce+compiz+emerald
  • GPU Card: Ati HD 5830
  • GPU driver: non-free
  • Kernel: linux316-x64
  • Skill: Intermediate
Re: Long startup time because of updatedb.service and man-db.service
« Reply #18 on: 10. July 2014, 10:12:53 »
I'll add any other links that may be relevant to your boot issue to this post as I find them.


https://forum.manjaro.org/index.php?topic=7925.msg69960#msg69960


https://forum.manjaro.org/index.php?topic=6005.msg52611#msg52611


https://forum.manjaro.org/index.php?topic=6005.msg52611#msg52611

Thank you very much! I chrooted from livecd and reinstalled drivers:
Code: [Select]
mhwd -li --pci
mhwd -r pci video-catalyst
mhwd -a pci nonfree 0300
mhwd-gpu --setgl catalyst
And now I can boot into my system again.

Now I can go back to my original slow boot issue.
UPDATE: I'm booting very fast now that I installed linux315, but can't confirm anything just yet, will have to wait a few more days.
« Last Edit: 10. July 2014, 10:25:45 by Svajs »

Offline dicktater

  • Held Mitglied
  • *****
  • Posts: 2056
  • Skill: Novice
Re: Long startup time because of updatedb.service and man-db.service
« Reply #19 on: 10. July 2014, 10:33:13 »
Thank you very much! I chrooted from livecd and reinstalled drivers:
Code: [Select]
mhwd -li --pci
mhwd -r pci video-catalyst
mhwd -a pci nonfree 0300
mhwd-gpu --setgl catalyst
And now I can boot into my system again.

Now I can go back to my original slow boot issue.
UPDATE: I'm booting very fast now that I installed linux315, but can't confirm anything just yet, will have to wait a few more days.
Good! If you confirm your problems have been solved after testing, please make a final remark and mark this thread SOLVED.
Thanks.
The Manjaro Forum Revised Rules  How to Report Issues Properly   Please Read the Manjaro Wiki

Offline Svajs

  • Jr. Mitglied
  • **
  • Posts: 54
  • Branch: stable
  • Desktop: Xfce+compiz+emerald
  • GPU Card: Ati HD 5830
  • GPU driver: non-free
  • Kernel: linux316-x64
  • Skill: Intermediate
Re: Long startup time because of updatedb.service and man-db.service
« Reply #20 on: 10. July 2014, 11:45:54 »
Good! If you confirm your problems have been solved after testing, please make a final remark and mark this thread SOLVED.
Thanks.
Sure thing! Thank you everyone for quick responses.

Offline Svajs

  • Jr. Mitglied
  • **
  • Posts: 54
  • Branch: stable
  • Desktop: Xfce+compiz+emerald
  • GPU Card: Ati HD 5830
  • GPU driver: non-free
  • Kernel: linux316-x64
  • Skill: Intermediate
Re: Long startup time because of updatedb.service and man-db.service
« Reply #21 on: 11. July 2014, 08:53:11 »
Unfortunately, still not fixed after update pack and new kernel.

Code: [Select]
$ systemd-analyze blame
1min 35.285s man-db.service
1min 22.953s updatedb.service

Offline dicktater

  • Held Mitglied
  • *****
  • Posts: 2056
  • Skill: Novice
Re: Long startup time because of updatedb.service and man-db.service
« Reply #22 on: 13. July 2014, 11:18:46 »
Unfortunately, still not fixed after update pack and new kernel.

Code: [Select]
$ systemd-analyze blame
1min 35.285s man-db.service
1min 22.953s updatedb.service
Which kernels do you have installed? Was this 'systemd-analyze blame' after the first boot after the update? Maybe check again after a couple more boots.
What login manager are you using? I had issues with 0.8.10 xcfe on one machine after the very first update with an inexplicable ~60 second delay. After struggling with it for a while, I dumped MDM for SLiM and it boots almost as fast as I think it should be.
The Manjaro Forum Revised Rules  How to Report Issues Properly   Please Read the Manjaro Wiki

Offline Verändert2.0

  • Held Mitglied
  • *****
  • Posts: 1890
  • Ni Dieu ni maître
  • Skill: Novice
Re: Long startup time because of updatedb.service and man-db.service
« Reply #23 on: 13. July 2014, 11:54:14 »
Just restart a few times. This should at least fix that man.db problem.

Offline FadeMind

  • Support Team
  • ****
  • Posts: 2331
    • gravatar
  • Branch: Arch x86_64
  • Desktop: Plasma 5
  • GPU Card: Intel + NVIDIA
  • GPU driver: Intel + NVIDIA
  • Kernel: linux
  • Skill: Intermediate
Re: Long startup time because of updatedb.service and man-db.service
« Reply #24 on: 13. July 2014, 12:03:36 »
There is something in this. My results from today morning startup:
Code: [Select]
[tomasz@manjaro ~]$ systemd-analyze blame
    1min 13.679s updatedb.service
    1min 12.920s man-db.service
         18.897s NetworkManager.service
          9.152s cups.service
          7.362s bluetooth.service
          5.516s thermald.service
          3.804s logrotate.service
          3.786s ufw.service
          2.120s lm_sensors.service
          1.988s alsa-restore.service
          1.939s systemd-logind.service
          1.914s rpcbind.service
          1.761s user@1000.service
          1.595s systemd-vconsole-setup.service
          1.422s systemd-remount-fs.service
          1.281s sys-kernel-debug.mount
          1.261s dev-hugepages.mount
          1.260s dev-mqueue.mount
          1.229s tmp.mount
          1.035s keyboardctl.service
           853ms systemd-modules-load.service
           831ms shadow.service
           754ms tlp.service
           705ms polkit.service
           495ms systemd-udev-trigger.service
           481ms rtkit-daemon.service
           426ms systemd-tmpfiles-setup-dev.service
           396ms sys-kernel-config.mount
           371ms home.mount
           290ms ntpd.service
           260ms systemd-rfkill@rfkill3.service
           256ms dev-disk-by\x2duuid-f20111de\x2d986f\x2d471b\x2d84e2\x2dc46c161e5f13.swap
           252ms kmod-static-nodes.service
           202ms systemd-rfkill@rfkill1.service
           179ms upower.service
           178ms udisks2.service
           150ms systemd-user-sessions.service
           136ms systemd-rfkill@rfkill0.service
           136ms systemd-tmpfiles-setup.service
           112ms wpa_supplicant.service                                                         
           104ms systemd-update-utmp.service                                                   
            94ms systemd-journal-flush.service                                                 
            90ms systemd-random-seed.service                                                   
            61ms systemd-sysctl.service                                                         
            58ms systemd-udevd.service                                                         
            51ms systemd-backlight@backlight:acpi_video1.service
            51ms systemd-tmpfiles-clean.service
            48ms systemd-backlight@backlight:acpi_video0.service
            26ms systemd-backlight@backlight:intel_backlight.service
            15ms systemd-rfkill@rfkill2.service
             2ms sys-fs-fuse-connections.mount
lines 7-51/51 (END)
Code: [Select]
[tomasz@manjaro ~]$ systemd-analyze
Startup finished in 2.899s (kernel) + 1min 23.249s (userspace) = 1min 26.148s
KDE, branch unstable, x64, Kernel LTS 3.14 (3.14.12-1-MANJARO)

Offline artoo

  • OpenRC Team
  • ****
  • Posts: 2373
  • Branch: Unstable
  • Desktop: LXQT/Plasma5, openrc & eudev
  • Kernel: x86_64
  • Skill: Advanced
Re: Long startup time because of updatedb.service and man-db.service
« Reply #25 on: 13. July 2014, 12:06:56 »
Just restart a few times. This should at least fix that man.db problem.

It shouldn't be a solution to reboot countless times just to sync the damn man db.
This is a ridiculous error, a race condition I guess.

Can't the systemd users just simply run

Code: [Select]
systemdctl disable man-db
Code: [Select]
systemctl disable updatedb
« Last Edit: 13. July 2014, 12:10:01 by artoo »

Offline Hadi

  • Jr. Mitglied
  • **
  • Posts: 50
  • Branch: Unstable
  • Desktop: Gnome3.18
  • GPU Card: AMD Radeon 6370M
  • GPU driver: nonfree
  • Kernel: linux-319-x64
  • Skill: Novice
Re: Long startup time because of updatedb.service and man-db.service
« Reply #26 on: 13. July 2014, 12:18:21 »
I just removed mandb from my system
That was a bad thing.... but I wasn't going to wait 2 minutes for my system to boot.

Offline Svajs

  • Jr. Mitglied
  • **
  • Posts: 54
  • Branch: stable
  • Desktop: Xfce+compiz+emerald
  • GPU Card: Ati HD 5830
  • GPU driver: non-free
  • Kernel: linux316-x64
  • Skill: Intermediate
Re: Long startup time because of updatedb.service and man-db.service
« Reply #27 on: 13. July 2014, 12:51:39 »
Which kernels do you have installed? Was this 'systemd-analyze blame' after the first boot after the update? Maybe check again after a couple more boots.
What login manager are you using? I had issues with 0.8.10 xcfe on one machine after the very first update with an inexplicable ~60 second delay. After struggling with it for a while, I dumped MDM for SLiM and it boots almost as fast as I think it should be.
I have kernels 314 and 315, currently using 315.
No, it wasn't just after the first boot, it happens again.
I'm using LXDM with autologin feature.

Just restart a few times. This should at least fix that man.db problem.
Of course it will fix it because it will get synced up, but then after a few days it will start happening again. Not a solution.

Can't the systemd users just simply run

Code: [Select]
systemdctl disable man-db
Code: [Select]
systemctl disable updatedb
I guess I will have to do that, if there is no other fix. Better not having man pages than waiting for system to boot for 2 mins.

Offline FadeMind

  • Support Team
  • ****
  • Posts: 2331
    • gravatar
  • Branch: Arch x86_64
  • Desktop: Plasma 5
  • GPU Card: Intel + NVIDIA
  • GPU driver: Intel + NVIDIA
  • Kernel: linux
  • Skill: Intermediate
Re: Long startup time because of updatedb.service and man-db.service
« Reply #28 on: 13. July 2014, 13:13:26 »
It shouldn't be a solution to reboot countless times just to sync the damn man db.
This is a ridiculous error, a race condition I guess.

Can't the systemd users just simply run

Code: [Select]
systemdctl disable man-db
Code: [Select]
systemctl disable updatedb

Disabling these services is SAFE?

Offline artoo

  • OpenRC Team
  • ****
  • Posts: 2373
  • Branch: Unstable
  • Desktop: LXQT/Plasma5, openrc & eudev
  • Kernel: x86_64
  • Skill: Advanced
Re: Long startup time because of updatedb.service and man-db.service
« Reply #29 on: 13. July 2014, 13:14:39 »
I guess I will have to do that, if there is no other fix. Better not having man pages than waiting for system to boot for 2 mins.

I think you would still have man pages available.
For reference, openrc doesn't start any mandb service or tries to update man db.
I don't really know why systemd does it at all.