LinuxQuestions.org
Help answer threads with 0 replies.
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 12-05-2019, 02:06 PM   #1
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Slow rc.cups service start on fresh boot


Slackware 14.2 64-bit. Intel 2.70GHz 4-core i5-6400 CPU, 16 GB RAM. System drive is Western Digital WD2003FZEX 2TB SATA III spinner.

When performing a fresh boot, rc.cups takes about 5-6 seconds to start. Performing an rc.cups restart any time after booting is almost instantaneous.

Only rc.cups has this long start. Other services start immediately.

The haveged entropy daemon is launched long before rc.cups.

Looking for ideas to resolve.

Thanks.
 
Old 12-05-2019, 05:30 PM   #2
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,338

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
haveged , is not oart of 14.2 , you are on current ? or added from SBo ?
 
Old 12-05-2019, 09:23 PM   #3
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Added from SBo.
 
Old 12-09-2019, 06:04 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,366

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
Have you tried moving rc.cups in rc.S or whatever it is that starts stuff? Justy from grokking the scripts on my own problems, I'm aware that Pat was fond of

wait 5

instructions to allow for stopped platters on lousy disks to slowly speed up and be recognized & do whatever he was thinking of. You could put in rc.cups instead of one of them ;-).
 
Old 12-09-2019, 11:22 AM   #5
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
I commented out the background tasks in rc.M. Searching for boot issue discussions I found this old thread for the idea. Now there is a momentary pause when rc.cups launches but not the longer delay as previous. My guess is the background tasks cause disk I/O tension with booting, at least with spinners. I notice the overall boot is faster without the background tasks. I'll try to find time to run some simple stopwatch tests with and without the background tasks.

Quote:
I'm aware that Pat was fond of wait 5
Once upon a time I asked Pat to reconsider those delays. I also tried to introduce a different way in my proposed Slackware rc.d Script Update Project, of which I notified Pat by email.
 
Old 12-09-2019, 03:28 PM   #6
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Quote:
I'll try to find time to run some simple stopwatch tests with and without the background tasks.
Interesting results. There is an 8 to 10 second difference in the execution time of rc.M. I ran the test several times.

With the rc.M snippets that launch processes into the background commented out, executing rc.cups from within rc.M occurs in less than 1 second. Otherwise about 5 to 6 seconds.

With the background processes enabled, there is a delay with the login process. With the background processes commented out, login responds normally.

On my system running these rc.M processes in the background affects my office system.

The problem does not exist on my laptop, which uses an SSD rather than a spinner. At this time, replacing the spinners with SSDs is not doable.

The best solution for me is keeping the rc.M background processes commented out and running the tasks as a daily cron job.

I'll presume others using spinners are affected. Perhaps the discussion could shift to how best run these processes.

Perhaps these tasks could be moved to a new rc.d script. If users want to run the tasks at boot then chmod +x. Otherwise chmod -x and let users run the same script as a daily cron job.
 
Old 12-10-2019, 04:11 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,366

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
Why not run a script on log in? That's simple, as bash runs scripts anyhow.
 
Old 12-10-2019, 09:51 AM   #8
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Quote:
Why not run a script on log in? That's simple, as bash runs scripts anyhow.
I don't understand your question.
 
Old 12-11-2019, 04:51 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,366

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
It seems your background tasks are slowing your login. I just suggested calling them from ~/.bash_profile or similar, so they would be run after you've logged in. sorry for confusion.
 
Old 12-11-2019, 08:11 AM   #10
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
The background tasks are system tasks run from rc.M, not user tasks. As already shared in a previous post. I already offloaded those system tasks to a daily cron job.
 
  


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
systemctl status postgresql-tst.service starts the service if service is stopped MarianForums Linux - Newbie 7 11-03-2018 03:02 PM
Systemd service: AUTOSSH.service does not start at boot, how can I fix this? The_Linux_Machine Linux - Newbie 1 07-06-2016 12:00 PM
cups Printing Service Fails to Start Harry Seldon Linux - Software 2 09-01-2005 04:04 PM
fresh install (fresh headache) powadha Slackware 2 03-06-2004 01:03 PM

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

All times are GMT -5. The time now is 09:33 PM.

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