Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-23-2019, 01:49 AM
|
#1
|
Member
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298
Rep:
|
Basic Question on having /tmp as tmpfs
I moved over my /tmp onto RAM as indicated here:
https://askubuntu.com/questions/1730...maximum-amount
Code:
tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,mode=1777 0 0
A couple of questions: if I do not give the size option, the size is set at half the RAM. I have 32GB ram. and /tmp gets 16GB. Does this mean I now only have 16GB for standard RAM purposes? That is, even if /tmp has 1GB data, will the other 15GB not be usable as "standard RAM" space?
The other question: in the above, there is "defaults" then other options. Do the options that follow override "defaults"?
|
|
|
02-23-2019, 02:34 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,502
|
Quote:
Originally Posted by wearetheborg
there is "defaults" then other options. Do the options that follow override "defaults"?
|
yes, it will take the default set of options and override the ones specified.
The real size of that tmpfs depends on the usage, I think it is dynamically allocated.
|
|
|
02-23-2019, 02:39 AM
|
#3
|
Member
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298
Original Poster
Rep:
|
Quote:
Originally Posted by pan64
yes, it will take the default set of options and override the ones specified.
The real size of that tmpfs depends on the usage, I think it is dynamically allocated.
|
Thanks.
When I do df-h, it gives 16GB for /tmp
|
|
|
02-23-2019, 02:49 AM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,414
|
That's the default limit, not "size" as it applies to disk partitions. Read this
|
|
|
02-23-2019, 02:50 AM
|
#5
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by wearetheborg
if I do not give the size option, the size is set at half the RAM. I have 32GB ram. and /tmp gets 16GB. Does this mean I now only have 16GB for standard RAM purposes? That is, even if /tmp has 1GB data, will the other 15GB not be usable as "standard RAM" space?
|
no.
btw, mine looks like this:
Code:
grep /tmp /etc/mtab
tmpfs /tmp tmpfs rw,nosuid,nodev 0 0
never had any problems with it.
|
|
|
All times are GMT -5. The time now is 04:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|