On Thu, 19 Jun 2003, John Reiser wrote: > The attempt in ltspserver:/etc/rc.local to save space my unmounting > the initial ramdisk always fails with EBUSY (Device or resource busy) > because initrd:/bin/dhclient is still running as a demon. This wastes > 2000KB of RAM, which is 1/3 of available memory on a client with > 8MB RAM [the stock ltsp kernel uses 2MB], and should not be ignored > even on a 16MB client. > > The quick-and-dirty solution: before the umount, do > kill -TERM `ps ax | sed -n -e '/dhclient/s/ *\([0-9]*\).*/\1/p'` 2>/dev/null > where stderr is discarded because both the dhclient and the sed command > string match. This is dirty because the dhcp lease info is lost; > there will be a problem when the dhcp lease expires (default 3hrs). > Forwarding the dhclient state files is cumbersome because the ramdisk > on /tmp is not available yet. Perhaps some re-arranging of steps in > rc.local can fix this. dhclient might offer a "no demon" option, > but I could not find it. I could not get "kill -TERM dhclient" > to work, contrary to documentation.
In the latest kernel that i've built, i've switched to dhcpcd, instead of dhclient, because of some issues with dhclient and MS Dhcp servers. So, the killing of the dhcp client will have to change a bit. The unmounting of the initrd is one of those nagging problems that i've just never gotten around to tackling. Thanks for taking a look at it, and offering a fix. > > With careful kernel .config, compiling-in the driver for a specific > ethernet card, removing unneeded modules from initrd (down to 630KB), > and using NFS swap, I have gotten to runlevel 3 on a 25MHz 486 with > only 4.6MB RAM. I expect runlevel 4 and print+modem client to work > reasonably. Swapping to local IDE disk should allow X11 to run. For really low ram systems, a static kernel is really the only way to go. I just really prefer an initrd for the flexibility that it offers. Thanks, Jim. ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net
