Showing the memory usage on a Raspberry Pi

A simple way to show the memory usage on a Raspberry Pi is to open the terminal program and enter

free -h -s 1

-s 1 requests an update every second. A table is displayed showing the total memory available, memory used and memory remaining. I take the memory used, divide by the total memory and multiply by 100 to get the percentage memory used. In my case running Icecast2 and MPD I use 72% of the available memory.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s