[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to increase space for tmpfs /tmp



at bottom :-

2012/3/24 Javier Vasquez <j.e.vasquez.v@gmail.com>:
> 2012/3/24 Joey Hess <joeyh@debian.org>:
>> shirish शिरीष wrote:
>>> I got this error, does anybody know how I can give more space to tmpfs ?
>>>
>>> Downloaded, time 4575.50sec, speed 29kB/sec,
>>> texlive-latex-extra-doc_2009-10_2011.20120322-1_all.debdelta
>>>  Error: applying of delta for texlive-latex-extra-doc failed:  :
>>> Sorry, not enough disk space (581788kB) in directory /tmp for applying
>>> delta (needs 668963kB) (retriable)
>>
>> Edit /etc/default/rcS, set RAMTMP=no, reboot. Or, set TMPDIR to point to
>> something like $HOME/tmp
>>
>> You may also consider filing a bug, since the more people report
>> problems with Debian's new, absurdly small /tmp, the more likely it
>> is to get fixed.
>>
>> --
>> see shy jo
>
>
> Why?
>
> You can always configure as you wish.  Take a look at:
>
> /etc/default/tmpfs
>
> There you can configure TMPFS_SIZE and TMP_SIZE, which are the ones
> asked for.  And if you definitely don't want to use tmpfs, then you
> can RAMTMP=yes as you suggested.
>
> I think this is a matter of configuration, and we all might want
> different settings for our purposes, :-)

Hi all,
Thank you Joey Hess and Javier Vasquez for answering my query but I
wish some examples would have been given alongwith it.

How do I write values of TMPFS_SIZE and TMP_SIZE

This is what it looks like atm :-

# TMPFS_SIZE: maximum size for all tmpfs filesystems if no specific
# size is provided.  If no value is provided here, the kernel default
# will be used.
TMPFS_SIZE=20%

# TMP_SIZE: maximum size of /tmp
#
# No default size.
TMP_SIZE=

Now my questions are :-

a. From where would TMPFS_Size be used ? Would it take from the space
allocated from / (which has enough empty space) or does it take from
/home. Note that I have two partitions / , /home and of course swap is
also good around 4 GB.

$ free -h
             total       used       free     shared    buffers     cached
Mem:          2.0G       1.8G       134M         0B        72M       840M
-/+ buffers/cache:       954M       1.0G
Swap:         4.6G       212M       4.4G

b. The second question is how do I phrase the two ?
tmpfs is given as 20% . 20% is default for what and from where ?

c. What do I write at TMP_SIZE= if I want to say 900 MiB or 1 GiB .


> Thanks,
>
> --
> Javier.

Looking forward for help and advice.
-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17


Reply to: