LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 02-23-2019, 01:49 AM   #1
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298

Rep: Reputation: 41
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"?
 
Old 02-23-2019, 02:34 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,879

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
Quote:
Originally Posted by wearetheborg View Post
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.
 
Old 02-23-2019, 02:39 AM   #3
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by pan64 View Post
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
 
Old 02-23-2019, 02:49 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
That's the default limit, not "size" as it applies to disk partitions. Read this
 
Old 02-23-2019, 02:50 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by wearetheborg View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ho to delete "orphaned" files after switching /tmp from ext4 to tmpfs? JZL240I-U Linux - Software 2 12-14-2012 06:29 AM
Any advantage of /tmp on tmpfs ? rng Debian 19 12-11-2012 12:55 PM
Multiple tmpfs mounts and reasonable settings for /tmp Meson Linux - General 4 07-17-2011 11:18 PM
/etc/fstab "tmpfs /tmp tmpfs defaults 0 0" ramfs?! HOW? xcislav Linux - General 2 06-04-2011 03:03 AM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration