LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 03-06-2019, 02:19 PM   #1
a0_dummy
LQ Newbie
 
Registered: Mar 2019
Posts: 3

Rep: Reputation: Disabled
boot time


Hi all,
I am new to MX Linux and not realy a subject matter expert.
Anyway I realy like MX and I installed it on one of my old laptops.
After booting it performance is quite good, but boot takes forever (at least 2 min).

I used systemd-analyse to find out why, but was not able to tune the boot process. Switching some services off did not really help and even though I disabled them with systemctl they get started again.

Here is the output of systemd-analyse and the hw profile of my laptop.

Hopefully somebody has some tips to speed up boot.

Many thanks
kalle




kalle@lappi:~$ systemd-analyze time
Startup finished in 5.209s (kernel) + 16.705s (userspace) = 21.915s
kalle@lappi:~$ systemd-analyze blame
14.681s lightdm.service
9.633s plymouth-quit.service
9.633s plymouth-quit-wait.service
3.663s webmin.service
2.886s upower.service
2.151s tlp.service
973ms networking.service


kalle@lappi:~$ sudo lshw
lappi
description: Notebook
product: EasyNote TK85 (Calpella_CRB)
vendor: Packard Bell

-cpu
description: CPU
product: Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
vendor: Intel Corp.

*-memory
description: System Memory
physical id: 1a
slot: System board or motherboard
size: 4GiB

*-disk (that is a SSD)
description: ATA Disk
product: ADATA SP900
physical id: 0.0.0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: 7b
serial: 7E0220027071
size: 119GiB (128GB)
 
Old 03-06-2019, 02:42 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,071

Rep: Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901
VOID linux boots like really fast,

product: Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
1st gen i3 @ 2.4

find out what these do, and figure out if you can do without them.
Code:
14.681s lightdm.service // replace with startx
9.633s plymouth-quit.service
9.633s plymouth-quit-wait.service
3.663s webmin.service
2.886s upower.service
2.151s tlp.service
973ms networking.service

Last edited by BW-userx; 03-06-2019 at 02:51 PM.
 
Old 03-07-2019, 03:38 AM   #3
a0_dummy
LQ Newbie
 
Registered: Mar 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
VOID linux boots like really fast,

product: Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
1st gen i3 @ 2.4

find out what these do, and figure out if you can do without them.
Code:
14.681s lightdm.service // replace with startx
9.633s plymouth-quit.service
9.633s plymouth-quit-wait.service
3.663s webmin.service
2.886s upower.service
2.151s tlp.service
973ms networking.service
Hi BW-User,
thanks for answering, but ......
I like to stay with MX Linux (and do not want to go to VOID linux)
I also switched off both plymouth** services and they became active again
(even though I "systemctl disable"'d them.

how would I replace ligthdm by startx ?
If doing so, I guess I would have to login at the console before the xwindows environment
gets started, right ?
 
Old 03-07-2019, 09:32 AM   #4
a0_dummy
LQ Newbie
 
Registered: Mar 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
VOID linux boots like really fast,
maybe, but I would like to keep MX

Quote:
Originally Posted by BW-userx View Post
find out what these do, and figure out if you can do without them.
Code:
14.681s lightdm.service // replace with startx
9.633s plymouth-quit.service
9.633s plymouth-quit-wait.service
3.663s webmin.service
2.886s upower.service
2.151s tlp.service
973ms networking.service
when I switch to startx, I guess login will be on console and not in gui
plymouth servers get reactivated when disabled with 'systemctl disable'
 
Old 03-07-2019, 03:39 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,071

Rep: Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901
it was just a suggestion, and I do not run sysd or have ran it long enough to know exacly what you need to do, thouigh I found everything I needed to now about syctl by googling it, remember you are running it on a 1st gen i3 cpu no less. not even an i5 or i7. are they not the slowest cpu in the list of ix cpu's?
 
Old 03-08-2019, 01:52 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,304
Blog Entries: 9

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
Quote:
Originally Posted by a0_dummy View Post
kalle@lappi:~$ systemd-analyze time
Startup finished in 5.209s (kernel) + 16.705s (userspace) = 21.915s
kalle@lappi:~$ systemd-analyze blame
14.681s lightdm.service
9.633s plymouth-quit.service
9.633s plymouth-quit-wait.service
3.663s webmin.service
2.886s upower.service
2.151s tlp.service
973ms networking.service
that's still nowhere near 2 minutes....
can you see what is taking so long?
ah, plymouth might be getting in the way... can you (temporarily) remove "quiet splash" from your linux command line?

you could try to further investigate what lightdm is doing there for 14s:
Code:
journalctl -b -u lightdm
also, systemd-analyze has one or two more options that might tell you more.
Code:
man systemd-analyze
 
Old 03-09-2019, 09:08 AM   #7
namida12
Member
 
Registered: Jun 2007
Location: Las Vegas, NV
Distribution: 64-bit Mepis
Posts: 130

Rep: Reputation: 19
MX Forum might assist you:
https://forum.mxlinux.org/viewtopic....489732#p489732

JR
 
Old 03-09-2019, 09:40 AM   #8
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 3,278
Blog Entries: 9

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
Quote:
Originally Posted by a0_dummy View Post
how would I replace ligthdm by startx ?
If doing so, I guess I would have to login at the console before the xwindows environment
gets started, right ?
That's right. If you look in /etc/systemd/system, you will find a link called something like display_manager.service. That has to be deactivated with systemctl so that it won't be treated as required at boot.
 
Old 03-09-2019, 02:54 PM   #9
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 17
Posts: 5,822
Blog Entries: 21

Rep: Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900
You running MX hazel? I will head out to my shop computer with MX on it to double check if

Quote:
That's right. If you look in /etc/systemd/system,
Is present or not.
Code:
harry@shop1:~
$ cat /etc/lsb-release
PRETTY_NAME="MX-16 Metamorphosis"
DISTRIB_ID=MX
DISTRIB_RELEASE=16
DISTRIB_CODENAME=Metamorphosis
DISTRIB_DESCRIPTION="MX-16 Metamorphosis"
edit:
Code:
harry@shop1:~
$ cd /etc/systemd
harry@shop1:/etc/systemd
$ ls
bootchart.conf  logind.conf  ntp-units.d    system       timesyncd.conf  user.conf
journald.conf   network      resolved.conf  system.conf  user
harry@shop1:/etc/systemd
$ cat system
cat: system: Is a directory
harry@shop1:/etc/systemd
$ cd system
harry@shop1:/etc/systemd/system
$ ls
bluetooth.target.wants                      hibernate.target.wants     sleep.target.wants
dbus-org.bluez.service                      hybrid-sleep.target.wants  sockets.target.wants
dbus-org.freedesktop.Avahi.service          local-fs.target.wants      sshd.service
dbus-org.freedesktop.nm-dispatcher.service  multi-user.target.wants    suspend.target.wants
default.target.wants                        paths.target.wants         sysinit.target.wants
display-manager.service                     poweroff.target.wants      syslog.service
getty.target.wants                          printer.target.wants       systemd-rfkill@.service
halt.target.wants                           reboot.target.wants
harry@shop1:/etc/systemd/system
Code:
harry@shop1:/etc/systemd/system
$ cat display-manager.service 
[Unit]
Description=Light Display Manager
Documentation=man:lightdm(1)
After=systemd-user-sessions.service

[Service]
# temporary safety check until all DMs are converted to correct
# display-manager.service symlink handling
ExecStartPre=/bin/sh -c '[ "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lightdm" ]'
ExecStart=/usr/sbin/lightdm
Restart=always
BusName=org.freedesktop.DisplayManager
The reason for my post since systemctl was mentioned.
https://mxlinux.org/wiki/system/systemd/

Last edited by rokytnji; 03-09-2019 at 03:13 PM.
 
Old 03-10-2019, 06:59 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,304
Blog Entries: 9

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
a package's default configuration is usually installed to /lib/systemd/, not /etc.
i suggest:
Code:
find /lib/systemd -name '*lightdm*'
if you modify that file, you should work on a copy in /etc/systemd. it will override what's in /lib/systemd.
 
Old 03-13-2019, 07:31 PM   #11
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 445

Rep: Reputation: 125Reputation: 125
MX uses sysvinit by default, not systemd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to understand user time, sys time, wait time, idle time of CPU guixingyi Linux - Server 1 08-24-2010 10:10 AM
System time vs Hardware time and Daylight Savings Time Toadman Linux - General 6 03-17-2007 08:12 AM
System time vs Hardware time and Daylight Savings Time Toadman Linux - Networking 6 03-16-2007 07:14 PM
Time, time, time raylhm SUSE / openSUSE 5 11-02-2006 03:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 12:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration