Ask Your Question
1

I keep running out of tmpfs when trying to install Android SDK component.

asked 2016-04-19 12:15:15 -0500

Hi,

I am trying to update Android N's system image but I keep running out of tmpfs space. How do I resolve it?

Thanks.

image description

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2016-04-19 19:57:44 -0500

sergiomb gravatar image

updated 2016-04-20 01:53:38 -0500

you may disable tmpfs [1] , or change tmp to /var/tmp

[1] https://ask.fedoraproject.org/en/ques...

I understood the problem is /tmp with tmpfs just have capacity of 2GB, if you need more you have to disable tmpfs on /tmp or change tmp dir of android studio

edit flag offensive delete link more

Comments

Could you please explain what that does? I feel like there's something fishy in Android SDK. The image it is trying to install shouldn't take up 4GB to unarchive.

sudhirkhanger gravatar imagesudhirkhanger ( 2016-04-19 22:19:49 -0500 )edit

It means, that tmpfs is only in RAM of your PC. It takes about 50% of RAM amount. It is very small to do installation with this /tmp directory. So you need modify your /etc/fstab to avoid using tmpfs.

mrTuborg gravatar imagemrTuborg ( 2016-04-20 06:59:17 -0500 )edit

Cool. I have filed a bug report against Android Studio as I am not sure why 4GB is not enough for it. If they don't make any progress I will think about disabling tmpfs.

sudhirkhanger gravatar imagesudhirkhanger ( 2016-04-20 07:20:48 -0500 )edit

It is not a bug :) All modern Linux distro keep tmp directory in RAM, but Android Studio I think looking more in old-fashioned distribution like Debian and Ubuntu. So, I think they have option to change default /tmp dir on something else, like it was said by @sergiomb

mrTuborg gravatar imagemrTuborg ( 2016-04-21 03:22:55 -0500 )edit
2

answered 2016-07-20 04:24:25 -0500

harald gravatar image

I just added

export _JAVA_OPTIONS=-Djava.io.tmpdir=/var/tmp

at the top of studio.sh and everything works as expected now.

edit flag offensive delete link more

Comments

thanks, you saved me a lot of time

evillagr gravatar imageevillagr ( 2018-01-16 19:37:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-04-19 12:15:15 -0500

Seen: 3,424 times

Last updated: Apr 20 '16