Drop-in replacement boot scripts in Perl. Worthwhile?

If you have any suggestions or ideas about improving Salix, here's the place to post them.
Post Reply
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

Drop-in replacement boot scripts in Perl. Worthwhile?

Post by GJones »

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. :?
User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

Re: Drop-in replacement boot scripts in Perl. Worthwhile?

Post by pwatk »

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.
Image
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Drop-in replacement boot scripts in Perl. Worthwhile?

Post by thenktor »

I don't think it would save much time.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Drop-in replacement boot scripts in Perl. Worthwhile?

Post by JRD »

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.
Image
Post Reply