1997 2011 Ericsson AB, All Rights Reserved
The contents of this file are subject to the Erlang Public License, Version 1.1, (the "License"); you may not use this file except in compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Ericsson AB.

Erlang on embedded systems

Fredrik Tillman ETX/B/SFP/TILLMAN:96-001
1997-11-12
PA1 intro.sgml

This manual is a complement to the other manuals and describes how to install, run and maintain Erlang on an embedded system.

For more informaton about how to install and start Erlang read XXXXXXXX.

## Memory Usage

Solaris takes about 17 Mbyte of RAM on a system with 64 Mbyte of total RAM. This leaves about 47 Mbyte for the applications. If the system utilizes swapping, these figures cannot be improved because unnecessary daemon processes are swapped out. However, if swapping is disabled, or if the swap space is a precious resource in the system, it becomes necessary to kill off unnecessary daemon processes.

The following start-scripts can be deleted to prevent unnecessary daemons from starting:

/etc/rc2.d/S72autoinstall /etc/rc2.d/S74autofs /etc/rc2.d/S76nscd /etc/rc2.d/S80PRESERVE /etc/rc2.d/S80lp /etc/rc2.d/S88sendmail /etc/rc2.d/S92volmgt /etc/rc2.d/S93cacheos.finish /etc/rc3.d/S15nfs.server

More information is expected from Sun on how to modify the kernel in order to reduce the memory consumption. This will be performed by modifying the /etc/system file.

## Disk Space Usage

The disk space required by Solaris can be minimized by using the Core User support installation. It requires about 80 Mbyte of disk space. This installs only the minimum software required to boot and run Solaris. The disk space can be further reduced by deleting unnecessary individual files. However, unless disk space is a critical resource the effort required and the risks involved may not be justified.

## Other Issues

Future releases of OTP will include more information on how Solaris can be configured for use with embedded systems to get maximum performance. Issues which will be investigated include:

how disabling swapping affects the system how locking processes in memory may yield performance benefits.