How do I reserve a fixed amount of memory (16 MB) for RAM disk and do not allow the kernel to use it for other stuff?
Any pointers are appreciated. Everything that I find says "the RAM disk
dynamically grows as data is being written into it"
I recently installed IPCop on a flash card. I used the LinITX image
All works well, except after having run for a while I can no longer write
to the ram disk, even though it is not full. This creates all sort of
> root@ipcop:/var/log # mkdir test
> mkdir: cannot create directory `test': No space left on device
> root@ipcop:/var/log # df -h /ram
> Filesystem Size Used Avail Use% Mounted on
> /dev/ramdisk 16M 5.2M 11M 34% /ram
I can see there is 25M available memory, but it does not want to use it.
> root@ipcop:/var/log # free -k
> total used free shared buffers cached
> Mem: 94872 69216 25656 0 4192 46584
> -/+ buffers/cache: 18440 76432
> 0 0 0
BTW: I have 96 MB or RAM, but can't install more, because it is an old
Pentium 133 motherboard with the old 72 pin SIMM memory.
P.S. If this matters the kernel is stock 2.4.27