Salix performs very well once the desktop is up and running (at least when you use the noop or deadline schedulers, cfq seems to have problems with something). But like Slackware, its boot performance isn't so great compared to e.g. Debian. A typical boot on Salix takes my netbook about 45 seconds; on Debian, more like 25. Most of this time appears to be spent on the multi-user boot scripts.
(Note that I use the "compact" option with LILO. Otherwise boot would take several minutes.)
Anyway I don't consider this a huge issue, since booting is still a tiny fraction of the time I spend in front of the computer. But I find myself wondering if there's anything I could do to improve boot speed a bit. So...
Back when I was using Zenwalk, I had this idea for a set of boot scripts - rc.S, rc.M, etc. - written in Perl, which would act as a drop-in replacement for the normal bash scripts. I'd heard Perl was interpreted a few hundred times faster than bash, and figured this might translate into some time savings.
I'm not a wiz with Perl, but I know enough to get by; I don't think it would be difficult for me to rewrite Salix's main rc.X scripts in it. But before I spend any time on that, I want to know: is it actually worth it? Would Perl's faster parsing result in a faster boot, or would it just not matter, due to the lack of parallelism in the Salix initscripts?
P.S. Don't worry, I'm fully aware that tampering with boot scripts can result in a shattered install. Actually I managed to do that last time.
Drop-in replacement boot scripts in Perl. Worthwhile?
Re: Drop-in replacement boot scripts in Perl. Worthwhile?
It's not a bad idea but Salix is all about staying as close as possible to Slackware so I doubt we'll adopt it.
That said, if you can write a better rc.services script that fixes the current script doing strange things to the terminal output (like stepping etc) I'd be the first person to push for it to be replaced.
That said, if you can write a better rc.services script that fixes the current script doing strange things to the terminal output (like stepping etc) I'd be the first person to push for it to be replaced.
Re: Drop-in replacement boot scripts in Perl. Worthwhile?
I don't think it would save much time.
Re: Drop-in replacement boot scripts in Perl. Worthwhile?
I say : try.
If you get some pretty good results, it could be an option. I don't know if it breaks compatilibity with Slackware or not. Depends on how you do it I suppose.
If you get some pretty good results, it could be an option. I don't know if it breaks compatilibity with Slackware or not. Depends on how you do it I suppose.