LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-27-2017, 10:41 PM   #16
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515

90 seconds to boot? Are you counting from when you press the power button or is this 90 seconds after Lilo?
Slackware boots in 17 seconds here with a few things in rc.local (the 'compat' option in Lilo is really magic).
Post takes around 6 seconds, plus 5 seconds in Lilo screen.
 
Old 04-28-2017, 01:23 PM   #17
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
The last time I looked at Slackware boot time, a big part of it was waiting on DHCP timeouts on ethernet network interfaces which might or might not even be plugged in (defaulting to 30 seconds per interface, so a minute on a dual-ethernet system).

Detecting carrier (whether the NIC is plugged in) from software is supported for -some- hardware, but not other hardware, and in the latter case all you can do is go through the motions on the assumption that there is a network attached, and deal with the DHCP timeout.

A better (albeit incomplete) solution would be to try to detect carrier on systems which support that, and skip DHCP entirely on interfaces not attached to a network, and fall back to the current behavior on systems which do not support such detection.

I looked at implementing that, but realized that I simply don't reboot my systems frequently enough to make it worthwhile, and put the idea on permanent back-burner.

I did reduce my DHCP timeout to 8 seconds in rc.inet1.conf though (DHCP_TIMEOUT). On my networks if DHCP doesn't happen in less than 8 seconds, it's never going to happen. This is not a solution suitable for every network.

If all of the interfaces defined in rc.inet1.conf are either assigned static addresses or plugged into a network with fast DHCP, of course, these delays do not manifest.
 
Old 04-28-2017, 01:26 PM   #18
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
I have a Samsung SSD and Slackware is fast - and I don't even have TRIM (noatime) enabled in fstab, I am using JFS. I still hope later down the line maybe Slackware will allow installation using a FS based on NAND devices (JFFS2, YAFFS, F2FS). Don't get me wrong, the more 'traditional' fs work, but again with the ever growing adoption of solid state NAND devices, I still feel that using a FS that is solely optimized for such drives would be a logical idea.
 
Old 04-28-2017, 01:46 PM   #19
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Jeebizz View Post
TRIM (noatime)
Just as an FYI, trim and noatime are two different things. Trim is enabled in the fstab using the discard option (or using fstrim manually through the CLI). noatime, while typically suggested for SSDs, prevents updating access times for files and folders when they're accessed. It is commonly used on SSDs to minimize the writes to the NAND (although people would enable them on HDDs to minimize extra writes that can cause thrashing), but it probably wouldn't be enough to cause the NAND to fail for too many writes. That being said, I think I enabled it on my SSD (I'm at work and too lazy to ssh into my computer to check), mainly because I don't care if access times are recorded.
 
Old 04-28-2017, 01:47 PM   #20
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
Quote:
Originally Posted by bassmadrigal View Post
Just as an FYI, trim and noatime are two different things. Trim is enabled in the fstab using the discard option (or using fstrim manually through the CLI). noatime, while typically suggested for SSDs, prevents updating access times for files and folders when they're accessed. It is commonly used on SSDs to minimize the writes to the NAND (although people would enable them on HDDs to minimize extra writes that can cause thrashing), but it probably wouldn't be enough to cause the NAND to fail for too many writes. That being said, I think I enabled it on my SSD (I'm at work and too lazy to ssh into my computer to check), mainly because I don't care if access times are recorded.
I meant also discard .
 
1 members found this post helpful.
Old 04-28-2017, 03:02 PM   #21
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
On my Desktop on SSD it takes 11-12 sec plus 4 sec POST.
Cli - 9 sec.Upss mistake. There is realy 7 sec plus POST.
DHCP-On.

https://www.hostmat.eu/images/19773751042363431913.png

and I've got super duper systemD in a deep black ass hole

Last edited by BratPit; 04-28-2017 at 04:21 PM.
 
Old 04-28-2017, 03:34 PM   #22
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Off-topic

@all Excuse me for the off-topic.

Quote:
Originally Posted by BratPit View Post
On my Desktop on SSD it takes 11-12 sec plus 4 sec POST.
Cli - 9 sec.
DHCP-On.

https://www.hostmat.eu/images/19773751042363431913.png

and I've got super duper systemD in a deep black ass hole
Is that conky from Sbo? Please, which font?
Nice wallpaper too
 
Old 04-28-2017, 03:52 PM   #23
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
If you don't like bsd-init you can put systemd on Slackware: https://github.com/Dlackware
 
Old 04-28-2017, 03:53 PM   #24
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by Paulo2 View Post
@all Excuse me for the off-topic.


Is that conky from Sbo? Please, which font?
Nice wallpaper too
That's the last / 1.9.0 / older edition of conky and old "remastered" by me script from somewhere probably conky site.

Wallpaper. Not remember from. Long ago. BUt YES
Here you are:

http://thundercr0w.deviantart.com/ar...atch-396466880


The font is .... hmm ...Noto Sans-8

Last edited by BratPit; 04-28-2017 at 04:05 PM.
 
Old 04-28-2017, 04:02 PM   #25
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
As with most things in Linux distributions, configuration has huge effects on speed, disk usage, battery life, etc. From startup times to app load times, the configuration will have far more effect on these things than whether you're using Systemd, SystemV, or whatever.

Slackware has always been slow with the default fattykernel.
 
1 members found this post helpful.
Old 04-28-2017, 04:51 PM   #26
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
In addition to what's already been said, booting Slackware in EFI mode will also be faster.

How do you set that up? By booting the installation medium in EFI mode.

Last edited by dugan; 04-29-2017 at 06:55 PM. Reason: Don't know how I made that mistake
 
1 members found this post helpful.
Old 04-28-2017, 04:55 PM   #27
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
Quote:
Originally Posted by dugan View Post
In addition to what's already been said, booting Slackware in EFI mode will also be faster.

How do you set that up? By having the installation medium botted in EFI mode.
I always wanted to mess with EFI on Slackware (on Virtualbox) - but the latest Virtualbox release still doesn't work with EFI. It no longer crashes this time when I try EFI, but the bootup is stuck on GRUB and is frozen when trying to boot the Slackware ISO.
 
Old 04-28-2017, 05:53 PM   #28
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Quote:
Originally Posted by BratPit View Post
That's the last / 1.9.0 / older edition of conky and old "remastered" by me script from somewhere probably conky site.

Wallpaper. Not remember from. Long ago. BUt YES
Here you are:

http://thundercr0w.deviantart.com/ar...atch-396466880


The font is .... hmm ...Noto Sans-8
Thanks for the info.
 
Old 04-28-2017, 08:35 PM   #29
limpingstone
Member
 
Registered: Mar 2017
Location: Mountain Time Area
Distribution: Slackware64 14.2
Posts: 52

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Paulo2 View Post
90 seconds to boot? Are you counting from when you press the power button or is this 90 seconds after Lilo?
Slackware boots in 17 seconds here with a few things in rc.local (the 'compat' option in Lilo is really magic).
Post takes around 6 seconds, plus 5 seconds in Lilo screen.
Yes. From the time I press the power button to tty1 user login terminal.
Also, I did not count the time that LILO counts down 2 minutes for the boot menu.
 
Old 04-28-2017, 08:38 PM   #30
limpingstone
Member
 
Registered: Mar 2017
Location: Mountain Time Area
Distribution: Slackware64 14.2
Posts: 52

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ttk View Post
The last time I looked at Slackware boot time, a big part of it was waiting on DHCP timeouts on ethernet network interfaces which might or might not even be plugged in (defaulting to 30 seconds per interface, so a minute on a dual-ethernet system).

Detecting carrier (whether the NIC is plugged in) from software is supported for -some- hardware, but not other hardware, and in the latter case all you can do is go through the motions on the assumption that there is a network attached, and deal with the DHCP timeout.

A better (albeit incomplete) solution would be to try to detect carrier on systems which support that, and skip DHCP entirely on interfaces not attached to a network, and fall back to the current behavior on systems which do not support such detection.

I looked at implementing that, but realized that I simply don't reboot my systems frequently enough to make it worthwhile, and put the idea on permanent back-burner.

I did reduce my DHCP timeout to 8 seconds in rc.inet1.conf though (DHCP_TIMEOUT). On my networks if DHCP doesn't happen in less than 8 seconds, it's never going to happen. This is not a solution suitable for every network.

If all of the interfaces defined in rc.inet1.conf are either assigned static addresses or plugged into a network with fast DHCP, of course, these delays do not manifest.
I tried "chmod -x rc.inet1" and the boot time did reduce. However, I have to manually turn on the DHCP services later on after booting into the screen.

And what does it mean by "try to detect carrier on systems which support that"?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Koschei: Reducing bugs and saving time LXer Syndicated Linux News 0 06-16-2016 04:55 PM
Help with reducing boot time CuriousLittlePenguin Ubuntu 2 08-19-2014 01:03 PM
reducing the bootup time hoshangi Red Hat 1 02-09-2008 06:54 AM
Reducing Boot Time sharkee Ubuntu 2 01-13-2006 09:34 PM
Reducing Startup Time w/Mandrake 9.1 eric_hcr80 Linux - Newbie 5 07-13-2003 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:15 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
Open Source Consulting | Domain Registration