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.