[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: [HEADS-UP] Rawhide: /tmp is now on tmpfs
From: |
Pádraig Brady |
Subject: |
Fwd: [HEADS-UP] Rawhide: /tmp is now on tmpfs |
Date: |
Fri, 01 Jun 2012 14:05:31 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 |
It seems like we should default to /var/tmp in sort(1) and tac(1),
as debian and fedora at least are probably moving to tmpfs for /tmp.
I'll monitor the situation a bit before making the change.
cheers,
Pádraig.
-------- Original Message --------
Subject: Re: [HEADS-UP] Rawhide: /tmp is now on tmpfs
Date: Thu, 31 May 2012 11:45:36 +0100
From: Pádraig Brady <address@hidden>
Reply-To: Development discussions related to Fedora <address@hidden>
To: Development discussions related to Fedora <address@hidden>
CC: Roberto Ragusa <address@hidden>
On 05/31/2012 08:14 AM, Roberto Ragusa wrote:
> On 05/31/2012 02:40 AM, Lennart Poettering wrote:
>> Heya!
>>
>> Please be aware that since the most recent systemd uploads /tmp is now
>> in tmpfs by default in Rawhide/F18.
> [...]
>> This will most likely lead to a problem or two with software that isn't
>> happy about /tmp being small.
>
> For example "sort".
This is a good example because `sort` algorithmically needs
something below RAM in the memory hierarchy (i.e. bigger),
but with the same persistence characteristics of /tmp.
Currently `sort` defaults to $TMPDIR or if not set '/tmp'.
Now /var/tmp should be "more persistent" which we don't need,
but shouldn't be an issue, but should also not be in RAM
and so is more appropriate.
So I'll patch sort to default to /var/tmp rather than /tmp.
I'm a little worried about the general availability of /var/tmp.
I know I've created distros without it at least.
For my own reference, sort does support a list of tmp dirs,
but it'll need to be tweaked to support non existent dirs:
$ seq 100000 | sort -T /foo -T /tmp -S1M
sort: cannot create temporary file in `/foo': No such file or directory
`tac` from coreutils also needs a similar patch.
cheers,
Pádraig.
- Fwd: [HEADS-UP] Rawhide: /tmp is now on tmpfs,
Pádraig Brady <=