Tips for reducing memory usage
by David Härdeman <email@example.com>
Note: this document currently describes Debian etch (4.0) and needs to be updated to Debian squeeze (6.0) and Debian wheezy (7.0). Some of the hints may still apply, but some may not.
If you do not have a serial port on your NSLU2, you can remove the getty on the serial line by commenting the corresponding line in
/etc/inittab, e.g. change the line
T0:23:respawn:/sbin/getty -L ttyS0 115200 linux
#T0:23:respawn:/sbin/getty -L ttyS0 115200 linux
If you are not using LVM,
/etc/init.d/libdevmapper1.02will still load the device-mapper kernel modules. Since libblkid1 depends on libdevmapper1.02 and mount depends on libblkid1, it is not possible to remove libdevmapper1.02. Instead you can prevent the script from loading the modules by inserting
If you are not using IPv6, you can prevent the module from being automatically loaded by adding the line
/etc/modprobe.d/blacklist. The same goes for any other kernel module which is automatically loaded which you know you won't need.
Removing daemons that are not needed will of course also help. Starting aptitude and marking all packages as auto-installed by selecting the
Installed packagesline and pressing
M, and thereafter checking through the list and manually marking the packages you want to keep by pressing
+is usually a good start.
openbsd-inetd will only start if there are services activated in
/etc/inetd.conf. Often the only services provided are old Unix services which are not necessary and inetd can be disabled by commenting all services in
This article has been contributed by David Härdeman <firstname.lastname@example.org>
Go back to the Debian on NSLU2 page.