Skip to content

Increase available memory

toncho11 edited this page Sep 24, 2024 · 15 revisions

There are cases when we want to increase the memory available for applications. One such case is Elks Doom.

Configure the kernel

In /bootopts you can set the following parameters:

task=6 buf=8 cache=4 file=20 inode=24 heap=15000 n 

in order to decrease the system memory occupied by ELSK

Load an application with init

You skip bash to free so additional memory. Instead of:

#init=/bin/sash

you can put:

#init=/elksdoom.os2

The disadvantage is that if you decide to exit Elks Doom you won't be able to return to the console.

Disable unused features

In the case of Elks Doom you can disable:

  • networking
  • floppy track caching using CONFIG_TRACK_CACHE in .config, which will slow down program loading, but will save an additional 9K of RAM

Use UMB memory

Please see the dedicated page: Access-to-UMB-memory