[ale] compiled system calls versus shell scripts
Mike Panetta
ahuitzot at mindspring.com
Wed Oct 22 18:44:05 EDT 2003
All thats gonna do is invoke a shell. What you want to do (for all the non
shell script things you want to run) is use fork and exec. That removes
the shell from the equation.
Mike
-----Original Message-----
From: Christopher Bergeron <christopher at bergeron.com>
Sent: Oct 22, 2003 4:36 PM
To: ale at ale.org
Subject: [ale] compiled system calls versus shell scripts
Does anyone know if I would get a speed increase in my startup scripts
by converting them to a binary? Essentially, I'm trying to reduce my
boot time by running my startup commands in parallel. I stripped my
startup scripts down to 1 file and I've appended the & on most of the
commands (modprobes, ifconfig eth0 up, etc) in an attempt to speed
things up. But what I'm wondering is if I create a simple C program
that just does:
void main() {
system("modprobe whatever &");
system("ifconfig eth0 192.168.0.4 &");
}
Would this give me a faster boot during this phase? I'm thinking about
doing this and replacing my /sbin/init altogether.
I know there are already packages out there that do this, but I'm doing
it myself as more of a learning excercise. I've also heard of using a
Makefile to control startup, but that's a bit beyond me at this point.
Anyone have any suggestions?
Thanks in advance,
-CB
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list