You are not logged in.

#1 2019-12-03 23:12:58

archifer
Member
Registered: 2019-07-08
Posts: 49

[SOLVED] Long login time

For a while I've been facing this issue with login but I remember it used to be fine with login basically with a couple of seconds, I've been using same configuration all the time with Cinnamon DE and for now it takes me up to 30 seconds to login. I checked with:

systemd-analyze blame

and these are services highly consuming the time

14.830s systemd-journal-flush.service     
12.333s dev-sda1.device

I also masked lvm2-monitor.service it was taking a lot of time but the most aggressive is systemd-journal-flush.service I tried to clean it with

sudo journalctl --vacuum-size=1G --vacuum-time=5d --vacuum-files=5

it dropped from 18 seconds to 12 seconds but still a lot of time. Is it possible to disable or mask those services safely like lvm2 sort of?

Last edited by archifer (2019-12-12 11:40:13)

Offline

#2 2019-12-04 08:15:17

dviktor
Member
From: Moscow
Registered: 2015-10-18
Posts: 162

Re: [SOLVED] Long login time

Try to flush journals by hand and clean them once again

Offline

#3 2019-12-04 12:23:44

xerxes_
Member
Registered: 2018-04-29
Posts: 676

Re: [SOLVED] Long login time

What is your storage device (is it hdd or ssd?)?
My boot time is also something about 25-30 seconds, but I have slow hdd rotational disk (5400).
My longest 'systemd-analyze blame' services:

12.853s dev-sda2.device                                                          
 9.109s systemd-journal-flush.service

Maybe you have abnormally long 'journalctl -b' boot sessions because of some additional log messages from some system/application events?
You may try this command to verify logs (if something is wrong with them):

journalctl --verify

And show output of command:

journalctl --disk-usage

Last edited by xerxes_ (2019-12-04 12:28:24)

Offline

#4 2019-12-04 15:39:30

archifer
Member
Registered: 2019-07-08
Posts: 49

Re: [SOLVED] Long login time

xerxes_ wrote:

What is your storage device (is it hdd or ssd?)?
My boot time is also something about 25-30 seconds, but I have slow hdd rotational disk (5400).
My longest 'systemd-analyze blame' services:

12.853s dev-sda2.device                                                          
 9.109s systemd-journal-flush.service

Maybe you have abnormally long 'journalctl -b' boot sessions because of some additional log messages from some system/application events?
You may try this command to verify logs (if something is wrong with them):

journalctl --verify

And show output of command:

journalctl --disk-usage

it is HDD I have even cleaned the system from all possible trash and leftovers including jornald and it's the same but the thing is I have installed Budgie desktop and it loads twice faster, I assume the issue with the Cinnamon being heavily loaded.

Offline

#5 2019-12-08 11:00:28

archifer
Member
Registered: 2019-07-08
Posts: 49

Re: [SOLVED] Long login time

One more question, will it have any impact on the system when I mask `lvm2-monitor.service` ? I have two HDDs with seperate Home folder this is my filesystem for example

df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             2.0G     0  2.0G   0% /dev
run             2.0G  1.1M  2.0G   1% /run
/dev/sda1        27G   17G  8.5G  67% /
tmpfs           2.0G   87M  1.9G   5% /dev/shm
tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup
tmpfs           2.0G  416K  2.0G   1% /tmp
/dev/sdb1       459G  428G  7.7G  99% /mnt/movies
/dev/sdb2       459G  425G   11G  98% /mnt/media
/dev/sda5       119G   97G   21G  83% /home
tmpfs           394M   60K  394M   1% /run/user/1000

Am I ok with masking that service?

Offline

#6 2019-12-08 17:06:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,740

Re: [SOLVED] Long login time

Yes it's safe to mask that if you aren't actively using lvm2.

Offline

#7 2019-12-09 08:38:31

archifer
Member
Registered: 2019-07-08
Posts: 49

Re: [SOLVED] Long login time

V1del wrote:

Yes it's safe to mask that if you aren't actively using lvm2.

Thanks

Offline

Board footer

Powered by FluxBB