Page 1 of 1

Re: Htop Reports 122MB RAM

Posted: Fri Apr 20, 2012 3:53 pm
by nimdy
Noticed this when I ran Htop to check CPU load last night. It is reporting 122MB RAM, and 0MB swap (shouldnt there be 190something on the SD?). This is using the Debian image.

Re: Htop Reports 122MB RAM

Posted: Fri Apr 20, 2012 4:01 pm
by croston
The swap partition even though it exists in the Debian image is not configured to be used. I"m sure someone else will be able to explain why - I think it may be to prolong the life of your SD card.

Look at /etc/fstab. I suspect that uncommenting the swap partition line will enable swap at next boot.

Re: Htop Reports 122MB RAM

Posted: Fri Apr 20, 2012 4:26 pm
by Techmeology
Indeed, the swap is not mounted by default. Also, swappiness is set to 1, so even with the swap partition mounted, the card should not be written to most of the time unless it is necessary.

As for the 122 MB of memory, if this is the total memory (as opposed to free memory), I expect you're probably using the 128 MB start.elf (the default is 192 MB on the latest Debian image). If you'd like more memory, try the 192 MB or 224 MB start.elf (note: the 224 MB one will restrict what the GPU can do – e.g: it cannot play 1080p h264). To change the amount of memory, delete start.elf, and copy one of the other arm*_start.elf files to /boot/start.elf

Re: Htop Reports 122MB RAM

Posted: Fri Apr 20, 2012 9:47 pm
by nimdy
That'll explain it then. I'm learning, albeit slowly

Thanks.