nimdy
Posts: 67
Joined: Sun Mar 04, 2012 2:54 pm

Re: Htop Reports 122MB RAM

Fri Apr 20, 2012 3:53 pm

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.

User avatar
croston
Posts: 703
Joined: Sat Nov 26, 2011 12:33 pm
Location: Blackpool
Contact: Website

Re: Htop Reports 122MB RAM

Fri Apr 20, 2012 4:01 pm

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.

Techmeology
Posts: 30
Joined: Wed Mar 28, 2012 8:52 pm
Contact: Website

Re: Htop Reports 122MB RAM

Fri Apr 20, 2012 4:26 pm

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
Check out cool stuff I'm doing, e.g my PIC Programmer for the Raspberry Pi: http://www.techmeology.co.uk/rpipic/

nimdy
Posts: 67
Joined: Sun Mar 04, 2012 2:54 pm

Re: Htop Reports 122MB RAM

Fri Apr 20, 2012 9:47 pm

That'll explain it then. I'm learning, albeit slowly

Thanks.

Return to “Beginners”