Welcome!
Important information
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.1 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Slower boot times [solved]

Help for Current Versions of MX
User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 7296
Joined: Wed Jul 12, 2006 2:10 am

Re: Slower boot times [solved]

#31

Post by Eadwine Rose » Wed Jan 09, 2019 8:10 am

Ugh annoying!!

My new system will also be Asus/AMD. Good experiences and all. :)

Can you order the parts from elsewhere? They can't be the only store that sells those parts.
MX-18_x64 20-12-2018 * 4.19.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 390.87 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingston * Samsung S24D330 & P2250 * HP Envy5030

User avatar
richb
Administrator
Posts: 18329
Joined: Wed Jul 12, 2006 2:17 pm

Re: Slower boot times [solved]

#32

Post by richb » Wed Jan 09, 2019 8:18 am

@Mauser, Each line begins with the time the instruction starts. By comparing that time to the time of the next instruction one can see where the delay is. Clearly the issue is smbd which I believe is the samba daemon. A samba expert would have to jump in and give some advice.
Forum Rules
Guide - How to Ask for Help

Rich
SSD Production: MX 18.1
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB, 350 GB HD

User avatar
Mauser
Forum Guide
Forum Guide
Posts: 1016
Joined: Mon Jun 27, 2016 7:32 pm

Re: Slower boot times [solved]

#33

Post by Mauser » Wed Jan 09, 2019 8:18 am

Eadwine Rose wrote:
Wed Jan 09, 2019 8:10 am
Ugh annoying!!

My new system will also be Asus/AMD. Good experiences and all. :)

Can you order the parts from elsewhere? They can't be the only store that sells those parts.
No, because everyone else charges much more. At least I will get the computer today. I will do a last minute back up of the home folder to the external bookdrive.
I am command line illiterate. :confused:

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 7296
Joined: Wed Jul 12, 2006 2:10 am

Re: Slower boot times [solved]

#34

Post by Eadwine Rose » Wed Jan 09, 2019 8:23 am

Oh you mean THEY built it for you? Ah yeah.. that is different.

Have fun with the new "baby" :smile:
MX-18_x64 20-12-2018 * 4.19.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 390.87 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingston * Samsung S24D330 & P2250 * HP Envy5030

User avatar
Mauser
Forum Guide
Forum Guide
Posts: 1016
Joined: Mon Jun 27, 2016 7:32 pm

Re: Slower boot times [solved]

#35

Post by Mauser » Wed Jan 09, 2019 8:25 am

richb wrote:
Wed Jan 09, 2019 8:18 am
@Mauser, Each line begins with the time the instruction starts. By comparing that time to the time of the next instruction one can see where the delay is. Clearly the issue is smbd which I believe is the samba daemon. A samba expert would have to jump in and give some advice.
I don't want Samba. I didn't install Samba so it shouldn't be on my computer. This is the second time this has happened. It happened on MX-17.1 and now on MX-18. Why does Samba install when I select not to install it?
I am command line illiterate. :confused:

User avatar
Mauser
Forum Guide
Forum Guide
Posts: 1016
Joined: Mon Jun 27, 2016 7:32 pm

Re: Slower boot times [solved]

#36

Post by Mauser » Wed Jan 09, 2019 8:28 am

Eadwine Rose wrote:
Wed Jan 09, 2019 8:23 am
Oh you mean THEY built it for you? Ah yeah.. that is different.

Have fun with the new "baby" :smile:
No. I am going to build it myself from scratch. I am good with hardware, it's software I struggle with. This will be my 4th computer that I will build. All the others were Intels with Radeon graphics. This will be my first AMD machine.
I am command line illiterate. :confused:

User avatar
Buck Fankers
Forum Regular
Forum Regular
Posts: 294
Joined: Sat Mar 10, 2018 9:06 pm

Re: Slower boot times

#37

Post by Buck Fankers » Wed Jan 09, 2019 9:26 am

Mauser wrote:
Tue Jan 08, 2019 11:56 pm
... What log? Where? ...
I understand you have solved problem already, but if you would like in future to keep an eye on some of your logs, copy/paste code bellow into say mxlogs.py, then run it from wherever you saved it, with this command:

Code: Select all

python3 mxlogs.py
https://dpaste.de/N1ig

This small python script greps few logs looking for certain key words such as 'Failed',... it looks into 'dmesg', boot.log and xorg log, see example bellow:
You do not have the required permissions to view the files attached to this post.
Last edited by Buck Fankers on Wed Jan 09, 2019 9:34 am, edited 2 times in total.

User avatar
Buck Fankers
Forum Regular
Forum Regular
Posts: 294
Joined: Sat Mar 10, 2018 9:06 pm

Re: Slower boot times [solved]

#38

Post by Buck Fankers » Wed Jan 09, 2019 9:30 am

Looks like whole script will fit into one msg, so here it is:

Code: Select all

#!/usr/bin/env python

import os

"""
This script prints out some errors/warning/failed msgs from log files (dmesg, Xorg.0.log, Xorg.1.log)
"""

def dmesg_fail():
    print('=====================')
    print('| dmesg | grep fail |   Shows kernel fails')
    print('=====================')
    try:
        os.system('dmesg | grep fail')
        print()
    except:
        print('dmesg | grep fail is not working...')


def dmesg_error():
    print('======================')
    print('| dmesg | grep error |   Shows kernel errors')
    print('======================')
    try:
        os.system('dmesg | grep error')
        print()
    except:
        print('dmesg | grep error is not working...')


def dmesg_warning():
    print('========================')
    print('| dmesg | grep warning |   Shows kernel warnings')
    print('========================')
    try:
        os.system('dmesg | grep Warning')
        print()
    except:
        print('dmesg | grep warning is not working...')


def dmesg_disabled():
    print('======================')
    print('| dmesg | grep disabled |   Shows kernel disabled')
    print('======================')
    try:
        os.system('dmesg | grep disabled')
        print()
    except:
        print('dmesg | grep disabled is not working...')


def boot_warning():
    """ from boot file print lines that contain words: warning """
    try:
        with open('/var/log/boot', 'r') as f:
            print('=========================')
            print('| boot | fails & errors |  "boot", Lists entries with "Failed" & "Error" keywords')
            print('=========================')
            for line in f:
                if 'failed' in line or 'error' in line:
                #if 'failed' in line or 'error' in line or 'warning' in line:
                    print(line, end='')
        print()
    except:
        print('Missing file: /var/log/boot')


def read_xorg0():
    """ from Xorg.0.log print lines that contain words: failed, error, (WW) """
    try:
        with open('/var/log/Xorg.0.log', 'r') as f:
            print('==============')
            print('| Xorg.0.log |  "Xorg.0.log", Lists entries with failed, error & (WW) keywords')
            print('==============')
            for line in f:
                if 'failed' in line or 'error' in line or '(WW)' in line:
                    print(line, end='')
        print()
    except:
        print('Missing file: Xorg.0.log')


def read_xorg0old():
    """ from Xorg.1.log print lines that contain words: failed, error, (WW) """
    try:
        with open('/var/log/Xorg.0.log.old', 'r') as f:
            print('==================')
            print('| Xorg.0.log.old |  "Xorg.0.log.old", Lists entries with failed, error & (WW) keywords')
            print('==================')
            for line in f:
                if 'failed' in line or 'error' in line or '(WW)' in line:
                    print(line, end='')
        print()
    except:
        print('Missing file: Xorg.1.log')


def mem():
    """Info about memory and swap partition"""
    print('=============')
    print("|  free -h  |   Shows memory and swap info")
    print('=============')
    os.system('free -h')
    print()


def df():
    """ Info about remaining free space on partitions """
    print('==========')
    print("|   df   |   How much free disk space is left for each partition?")
    print('==========')
    os.system('df')
    print()


dmesg_fail()
dmesg_error()
dmesg_warning()
dmesg_disabled()
read_xorg0()
read_xorg0old()
boot_warning()
mem()
df()

print('... finished :-)')


User avatar
Paul..
Forum Guide
Forum Guide
Posts: 2524
Joined: Sun Mar 18, 2007 6:34 pm

Re: Slower boot times [solved]

#39

Post by Paul.. » Wed Jan 09, 2019 10:25 am

Very helpful. Thanks, Bucks Fankers.

Asus Prime X470-Pro | AMD Ryzen 5 1400 (8 threads)
16 Gig DDR4 3000 | nVidia - GeForce GTX 750 Ti
Samsung 970 NVMe SSD | 860 500GB SSD

User avatar
Buck Fankers
Forum Regular
Forum Regular
Posts: 294
Joined: Sat Mar 10, 2018 9:06 pm

Re: Slower boot times [solved]

#40

Post by Buck Fankers » Wed Jan 09, 2019 11:49 am

Paul.. wrote:
Wed Jan 09, 2019 10:25 am
Very helpful. Thanks, Bucks Fankers.
Welcome ;-)

Say you are getting too much output, say you would like to limit some info you get, for example, you don't want to see dmesg warnings and last three outputs, simple, just put '#' in front of bottom lines like this:

Code: Select all

dmesg_fail()
dmesg_error()
# dmesg_warning()
dmesg_disabled()
read_xorg0()
read_xorg0old()
# boot_warning()
# mem()
# df()

Post Reply

Return to “MX Help”