shadowbyte
Posts: 18
Joined: Sat Apr 09, 2016 3:29 am

Reducing /tmpfs on RasPi Zero?

Sun Apr 10, 2016 6:03 pm

With all of my "required" apps, I'm around 190mb of free memory.

Is it possible to reduce the size of /tmpfs (currently at 218mb)? If so, how and how much can I safely reduce this?
I'd love to have between 50-100mb back. I'm running tightvnc with xfce for python programming.

Thanks

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: Reducing /tmpfs on RasPi Zero?

Sun Apr 10, 2016 6:14 pm

shadowbyte wrote:With all of my "required" apps, I'm around 190mb of free memory.
Is it possible to reduce the size of /tmpfs (currently at 218mb)?
Is that how much you are using or how much it is capable of using if filled? What is the GPU split?
I'd love to have between 50-100mb back. I'm running tightvnc with xfce for python programming.
Do you have more than one board? You could put the editor on one and run python on another. They are five bucks.

User avatar
rpdom
Posts: 16107
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Reducing /tmpfs on RasPi Zero?

Sun Apr 10, 2016 6:25 pm

What does "free -h" report?

The second line of figures is the important one, not the top line.

shadowbyte
Posts: 18
Joined: Sat Apr 09, 2016 3:29 am

Re: Reducing /tmpfs on RasPi Zero?

Sun Apr 10, 2016 6:43 pm

stderr wrote:
shadowbyte wrote:With all of my "required" apps, I'm around 190mb of free memory.
Is it possible to reduce the size of /tmpfs (currently at 218mb)?
Is that how much you are using or how much it is capable of using if filled? What is the GPU split?
<facepalm>I hadn't thought about the GPU split.</facepalm>

Reduced it to 16 as my setup is headless. Gave me back the amount I needed.

Thanks

User avatar
jojopi
Posts: 3138
Joined: Tue Oct 11, 2011 8:38 pm

Re: Reducing /tmpfs on RasPi Zero?

Sun Apr 10, 2016 8:03 pm

The size of a tmpfs is only the maximum it can hold. When it is not full it will not use that much memory.

Also it is swappable, so if you write files into a tmpfs and stop accessing them they will eventually be paged out to disk freeing the RAM up again.

Return to “Advanced users”