LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-08-2015, 09:58 PM   #1
the98
Member
 
Registered: Sep 2010
Posts: 49

Rep: Reputation: 9
Debian limits /tmp size to 1.1 GB


Well this is odd. After an update (Debian Sid), my system is limiting my /tmp directory to 1.1 GB.

/tmp is on the root dir. Not as a different partition.

This my /etc/default/tmpfs

Code:
# Configuration for tmpfs filesystems mounted in early boot, before
# filesystems from /etc/fstab are mounted.  For information about
# these variables see the tmpfs(5) manual page.

# /run is always mounted as a tmpfs on systems which support tmpfs
# mounts.

# mount /run/lock as a tmpfs (separately from /run).  Defaults to yes;
# set to no to disable (/run/lock will then be part of the /run tmpfs,
# if available).
#RAMLOCK=yes

# mount /run/shm as a tmpfs (separately from /run).  Defaults to yes;
# set to no to disable (/run/shm will then be part of the /run tmpfs,
# if available).
#RAMSHM=yes

# mount /tmp as a tmpfs.  Defaults to no; set to yes to enable (/tmp
# will be part of the root filesystem if disabled).  /tmp may also be
# configured to be a separate mount in /etc/fstab.
#RAMTMP=no

# Size limits.  Please see tmpfs(5) for details on how to configure
# tmpfs size limits.
#TMPFS_SIZE=20%VM
#RUN_SIZE=10%
#LOCK_SIZE=5242880 # 5MiB
#SHM_SIZE=
#TMP_SIZE=

# Mount tmpfs on /tmp if there is less than the limit size (in kiB) on
# the root filesystem (overriding RAMTMP).
#TMP_OVERFLOW_LIMIT=1024
/etc/fstab

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

/dev/sr0     /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto  rw,user,noauto,sync   0       0

#/dev/sdA------------------------------------------------------------------------------
proc            /proc           proc    defaults        0       0
/dev/sda1       /               ext4    defaults,atime,errors=remount-ro 0       1
/dev/sda2       none            swap    sw              0       0
/dev/sda3      /media/Musica        ext4    defaults,atime,errors=remount-ro    0   2 

#RED-LAPTOP----------------------------------------------------------------------------
/home    /.export/home   none    bind  0  0
/tmp    /.export/tmp100   none    bind  0  0
Don't know where to look.

I noticed the package initscripts was updated, but I went back to its previous version with no success. I don't know if this is supposed to be a bug, or something I'm missing.

Any ideas?

Appreciate the help.
 
Old 04-09-2015, 02:54 AM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Well first off it would be nice to know exactly how you have this installed.

Also what it is installed on.

Also what indicates that you are limited to 1.1gigs for /tmp.

What is the size of your sda1 partition?

How much free space does sda1 currently have?

EDIT;
How much ram do you have?

Last edited by widget; 04-09-2015 at 02:55 AM.
 
Old 04-09-2015, 03:32 PM   #3
the98
Member
 
Registered: Sep 2010
Posts: 49

Original Poster
Rep: Reputation: 9
Yeah, sorry I wasn't specific. It was late at night, and I was searching and trying stuff for a while with no success.

Root partition has like 20 GB of free space. So there is something that's limiting the /tmp dir. It's clearly indicated by my file manager.

I supposed it was related to /etc/default/tmpfs, since I had had this problem in the past after a system upgrade.

This is aptitude's log, which show the packages that were upgraded:

Quote:
arj:i386 3.10.22-12 -> 3.10.22-13
binutils:i386 2.25-5 -> 2.25-6
bsdutils:i386 1:2.25.2-5 -> 1:2.25.2-6
bzip2:i386 1.0.6-7+b2 -> 1.0.6-7+b3
cabextract:i386 1.5-1 -> 1.6-1
caps:i386 0.9.23-1 -> 0.9.24-1
chromium:i386 41.0.2272.76-2 -> 41.0.2272.118-1
chromium-inspector:i386 41.0.2272.76-2 -> 41.0.2272.118-1
chromium-l10n:i386 41.0.2272.76-2 -> 41.0.2272.118-1
coreutils:i386 8.23-3 -> 8.23-4
cups-browsed:i386 1.0.61-4 -> 1.0.61-5
cups-filters:i386 1.0.61-4 -> 1.0.61-5
cups-filters-core-drivers:i386 1.0.61-4 -> 1.0.61-5
cups-pdf:i386 2.6.1-16 -> 2.6.1-17
debconf:i386 1.5.55 -> 1.5.56
debconf-i18n:i386 1.5.55 -> 1.5.56
debian-keyring:i386 2015.03.04 -> 2015.03.30
ffmpeg:i386 7:2.5.4-1 -> 7:2.6.1-1
file:i386 1:5.22+15-1 -> 1:5.22+15-2
geoip-database:i386 20150209-1 -> 20150317-1
gnumeric:i386 1.12.18-1 -> 1.12.18-2
gnumeric-common:i386 1.12.18-1 -> 1.12.18-2
grub-common:i386 2.02~beta2-21 -> 2.02~beta2-22
grub-pc:i386 2.02~beta2-21 -> 2.02~beta2-22
grub-pc-bin:i386 2.02~beta2-21 -> 2.02~beta2-22
grub-rescue-pc:i386 2.02~beta2-21 -> 2.02~beta2-22
grub2-common:i386 2.02~beta2-21 -> 2.02~beta2-22
gstreamer1.0-plugins-ugly:i386 1.4.4-2 -> 1.4.4-2+b1
icedove:i386 31.5.0-1 -> 31.6.0-1
icedtea-7-jre-jamvm:i386 7u75-2.5.4-2 -> 7u75-2.5.4-3
icedtea-netx:i386 1.5.2-1 -> 1.5.2-1.1
icedtea-netx-common:i386 1.5.2-1 -> 1.5.2-1.1
iceweasel:i386 31.5.0esr-1 -> 31.6.0esr-1
iceweasel-l10n-es-ar:i386 1:31.5.0esr-1 -> 1:31.6.0esr-1
icu-devtools:i386 52.1-7.1 -> 52.1-8
ifupdown:i386 0.7.52 -> 0.7.53.1
initscripts:i386 2.88dsf-58 -> 2.88dsf-59
keyboard-configuration:i386 1.118 -> 1.120
libav-tools:i386 6:11.2-1 -> 6:11.3-1
libavcodec-ffmpeg56:i386 7:2.5.4-1 -> 7:2.6.1-1
libavcodec56:i386 6:11.2-1 -> 6:11.3-1
libavdevice-ffmpeg56:i386 7:2.5.4-1 -> 7:2.6.1-1
libavdevice55:i386 6:11.2-1 -> 6:11.3-1
libavfilter-ffmpeg5:i386 7:2.5.4-1 -> 7:2.6.1-1
libavfilter5:i386 6:11.2-1 -> 6:11.3-1
libavformat-ffmpeg56:i386 7:2.5.4-1 -> 7:2.6.1-1
libavformat56:i386 6:11.2-1 -> 6:11.3-1
libavresample-ffmpeg2:i386 7:2.5.4-1 -> 7:2.6.1-1
libavresample2:i386 6:11.2-1 -> 6:11.3-1
libavutil-ffmpeg54:i386 7:2.5.4-1 -> 7:2.6.1-1
libavutil54:i386 6:11.2-1 -> 6:11.3-1
libbatik-java:i386 1.7+dfsg-4 -> 1.7+dfsg-5
libblkid1:i386 2.25.2-5 -> 2.25.2-6
libbz2-1.0:i386 1.0.6-7+b2 -> 1.0.6-7+b3
libc-bin:i386 2.19-15 -> 2.19-17
libc-dev-bin:i386 2.19-15 -> 2.19-17
libc6:i386 2.19-15 -> 2.19-17
libc6-dev:i386 2.19-15 -> 2.19-17
libc6-i686:i386 2.19-15 -> 2.19-17
libcap2:i386 1:2.24-6 -> 1:2.24-8
libcap2-bin:i386 1:2.24-6 -> 1:2.24-8
libcupsfilters1:i386 1.0.61-4 -> 1.0.61-5
libfontembed1:i386 1.0.61-4 -> 1.0.61-5
libfreetype6:i386 2.5.2-3 -> 2.5.2-4
libfreetype6-dev:i386 2.5.2-3 -> 2.5.2-4
libgssapi-krb5-2:i386 1.12.1+dfsg-18 -> 1.12.1+dfsg-19
libgudev-1.0-0:i386 215-12 -> 215-14
libgusb2:i386 0.2.2-1 -> 0.2.4-1
libicu-dev:i386 52.1-7.1 -> 52.1-8
libicu52:i386 52.1-7.1 -> 52.1-8
libjavascriptcoregtk-1.0-0:i386 2.4.8-1 -> 2.4.8-2
libjavascriptcoregtk-3.0-0:i386 2.4.8-1 -> 2.4.8-2
libk5crypto3:i386 1.12.1+dfsg-18 -> 1.12.1+dfsg-19
libkrb5-3:i386 1.12.1+dfsg-18 -> 1.12.1+dfsg-19
libkrb5support0:i386 1.12.1+dfsg-18 -> 1.12.1+dfsg-19
libmagic1:i386 1:5.22+15-1 -> 1:5.22+15-2
libmount1:i386 2.25.2-5 -> 2.25.2-6
libmpeg2-4:i386 0.5.1-6 -> 0.5.1-7
libnspr4:i386 2:4.10.7-1 -> 2:4.10.8-1
libnspr4-0d:i386 2:4.10.7-1 -> 2:4.10.8-1
libpam-systemd:i386 215-12 -> 215-14
libparted-fs-resize0:i386 3.2-6 -> 3.2-7
libparted2:i386 3.2-6 -> 3.2-7
libperl5.20:i386 5.20.2-2 -> 5.20.2-3
libpostproc-ffmpeg53:i386 7:2.5.4-1 -> 7:2.6.1-1
libpython-stdlib:i386 2.7.8-4 -> 2.7.9-1
libqt5webkit5:i386 5.3.2+dfsg-3 -> 5.3.2+dfsg-4
librtmp1:i386 2.4+20131018.git79459a2-5 -> 2.4+20150115.gita107cef-1
libsmartcols1:i386 2.25.2-5 -> 2.25.2-6
libssh2-1:i386 1.4.3-4 -> 1.5.0-2+b1
libssl1.0.0:i386 1.0.1k-1 -> 1.0.1k-3
libsvn1:i386 1.8.10-5 -> 1.8.10-6
libswresample-ffmpeg1:i386 7:2.5.4-1 -> 7:2.6.1-1
libswscale-ffmpeg3:i386 7:2.5.4-1 -> 7:2.6.1-1
libswscale3:i386 6:11.2-1 -> 6:11.3-1
libsystemd0:i386 215-12 -> 215-14
libtasn1-6:i386 4.2-2 -> 4.2-3
libtcl8.6:i386 8.6.2+dfsg-1 -> 8.6.2+dfsg-2
libtiff-tools:i386 4.0.3-12.1 -> 4.0.3-12.3
libtiff5:i386 4.0.3-12.1 -> 4.0.3-12.3
libudev1:i386 215-12 -> 215-14
libupower-glib3:i386 0.99.1-3.1 -> 0.99.1-3.2
libuuid1:i386 2.25.2-5 -> 2.25.2-6
libwebkitgtk-1.0-0:i386 2.4.8-1 -> 2.4.8-2
libwebkitgtk-1.0-common:i386 2.4.8-1 -> 2.4.8-2
libwebkitgtk-3.0-0:i386 2.4.8-1 -> 2.4.8-2
libwebkitgtk-3.0-common:i386 2.4.8-1 -> 2.4.8-2
libwebp5:i386 0.4.1-1.2+b2 -> 0.4.3-1
libwebpdemux1:i386 0.4.1-1.2+b2 -> 0.4.3-1
libwebpmux1:i386 0.4.1-1.2+b2 -> 0.4.3-1
libxfont1:i386 1:1.4.99.901-1+b3 -> 1:1.5.1-1
locales:i386 2.19-15 -> 2.19-17
melt:i386 0.9.2+git20141027-1 -> 0.9.6-1
mount:i386 2.25.2-5 -> 2.25.2-6
multiarch-support:i386 2.19-15 -> 2.19-17
murrine-themes:i386 0.98.8 -> 0.98.9
openjdk-7-jre:i386 7u75-2.5.4-2 -> 7u75-2.5.4-3
openjdk-7-jre-headless:i386 7u75-2.5.4-2 -> 7u75-2.5.4-3
openssh-client:i386 1:6.7p1-3 -> 1:6.7p1-5
openssl:i386 1.0.1k-1 -> 1.0.1k-3
parted:i386 3.2-6 -> 3.2-7
perl:i386 5.20.2-2 -> 5.20.2-3
perl-base:i386 5.20.2-2 -> 5.20.2-3
perl-modules:i386 5.20.2-2 -> 5.20.2-3
printer-driver-cups-pdf:i386 2.6.1-16 -> 2.6.1-17
python:i386 2.7.8-4 -> 2.7.9-1
python-debian:i386 0.1.25 -> 0.1.26
python-imaging:i386 2.6.1-1 -> 2.6.1-2
python-minimal:i386 2.7.8-4 -> 2.7.9-1
python-pil:i386 2.6.1-1+b1 -> 2.6.1-2
qt-faststart:i386 7:2.5.4-1 -> 7:2.6.1-1
rtmpdump:i386 2.4+20131018.git79459a2-5 -> 2.4+20150115.gita107cef-1
ssl-cert:i386 1.0.35 -> 1.0.36
subversion:i386 1.8.10-5 -> 1.8.10-6
systemd:i386 215-12 -> 215-14
systemd-sysv:i386 215-12 -> 215-14
sysv-rc:i386 2.88dsf-58 -> 2.88dsf-59
sysvinit-utils:i386 2.88dsf-58 -> 2.88dsf-59
tcl8.6:i386 8.6.2+dfsg-1 -> 8.6.2+dfsg-2
tzdata:i386 2015a-1 -> 2015b-1
tzdata-java:i386 2015a-1 -> 2015b-1
udev:i386 215-12 -> 215-14
unattended-upgrades:i386 0.83.6 -> 0.83.7
unrar:i386 1:5.2.5-1 -> 1:5.2.7-0.1
upower:i386 0.99.1-3.1 -> 0.99.1-3.2
util-linux:i386 2.25.2-5 -> 2.25.2-6
vim-common:i386 2:7.4.488-5 -> 2:7.4.488-7
vim-tiny:i386 2:7.4.488-5 -> 2:7.4.488-7
virtualbox:i386 4.3.18-dfsg-2 -> 4.3.18-dfsg-3
virtualbox-dkms:i386 4.3.18-dfsg-2 -> 4.3.18-dfsg-3
virtualbox-qt:i386 4.3.18-dfsg-2 -> 4.3.18-dfsg-3
wget:i386 1.16-3 -> 1.16.3-2
xsane:i386 0.999-1 -> 0.999-2
xsane-common:i386 0.999-1 -> 0.999-2
xserver-common:i386 2:1.16.2.901-1 -> 2:1.16.4-1
xserver-xephyr:i386 2:1.16.2.901-1 -> 2:1.16.4-1
xserver-xorg-core:i386 2:1.16.2.901-1 -> 2:1.16.4-1
===============================================================================
Remember, this "bug" began to happen after this upgrade.

I don't know if this is related to systemd. I'll try to downgrade, and see what happens...

My RAM is 2 GB, as well as my swap.


=========================
==========================

EDIT

I solved this with the following command:

Quote:
# systemctl mask tmp.mount
I'd like to know what this does, exactly, before marking this thread as "SOLVED". I got the idea from Arch Linux wiki, but I'm not sure if this the correct (or "clean") way to do it.

Last edited by the98; 04-09-2015 at 04:24 PM. Reason: Update
 
Old 04-09-2015, 04:49 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Systems using systemd usually are configured to automatically mount /tmp as tmpfs in RAM. By default, tmpfs limits mounts to half of physical RAM size. To do this systemd internally creates a tmp.mount file (as it does for all other mountpoints, even those configured in /etc/fstab) and uses that to mount /tmp. The systemctl command you used masks the tmp.mount file (read: it tells systemd not to use that file), which means that /tmp simply is not mounted to anything and resides on the /-filesystem.
This is indeed the correct way to do it, if you want to have /tmp on the /-filesystem.
 
1 members found this post helpful.
Old 04-09-2015, 05:00 PM   #5
the98
Member
 
Registered: Sep 2010
Posts: 49

Original Poster
Rep: Reputation: 9
Ok, crystal clear.

Thank you very much

One last question though, how do you set the size? (in case you want to do that)
 
Old 04-09-2015, 05:05 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You can either write your own tmp.mount file, put it in /etc/systemd/system and enable it using systemctl, or (recommended by systemd developers) add a mountpoint in your /etc/fstab for /tmp on tmpfs and specify the desired size (either a percentage of RAM or an absolute size) using the size= mountoption.
 
1 members found this post helpful.
Old 04-09-2015, 06:47 PM   #7
the98
Member
 
Registered: Sep 2010
Posts: 49

Original Poster
Rep: Reputation: 9
Great. Thanks again!
 
  


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] Tmpfs size (limits) Mr. Alex Linux - General 5 09-08-2012 11:48 AM
Bzip2 and File Size Limits floog Linux - Software 3 02-27-2007 10:14 AM
partition size limits pedromdsantos Linux - General 7 07-01-2005 03:56 PM
HD size limits under slackware horndude Slackware 6 02-10-2004 07:34 PM
File Size limits ascii2k Linux - General 4 04-15-2002 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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