Mount point to multiple locations?

Originally I modified my 12.2>12.3 /tmp to be configured with tmpfs which was fine for awhile.

The other day though, I downloaded a very large file using “normal” (non torrent) means and it of course maxed out the available RAM on the system.

So, I’ve since replaced the original /tmp with a new /tmp pointing to a HDD partition but I’d like to re-implement using tmpfs but with the flexibility to also overflow to a HDD location.

On “that other OS” I can configure multiple TEMP and TMP folders, wondering if the same might be possible on *NIX, can I configure multiple /tmp mounts or configure a bind mount to a subdirectory of a single /tmp? Also, of course I’m hoping for automatic performance where all of tmpfs should be utilized before writing files to the HDD.

TIA,
TSU

On Tue 19 Mar 2013 02:46:01 PM CDT, tsu2 wrote:

Originally I modified my 12.2>12.3 /tmp to be configured with tmpfs
which was fine for awhile.

The other day though, I downloaded a very large file using “normal”
(non torrent) means and it of course maxed out the available RAM on the
system.

So, I’ve since replaced the original /tmp with a new /tmp pointing to a
HDD partition but I’d like to re-implement using tmpfs but with the
flexibility to also overflow to a HDD location.

On “that other OS” I can configure multiple TEMP and TMP folders,
wondering if the same might be possible on *NIX, can I configure
multiple /tmp mounts or configure a bind mount to a subdirectory of a
single /tmp? Also, of course I’m hoping for automatic performance where
all of tmpfs should be utilized before writing files to the HDD.

TIA,
TSU

Hi
Set the environment variable?


env |grep TMPDIR
TMPDIR=/tmp

When starting your application, tell it what to use as your tmp
cache?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.3 (x86_64) Kernel 3.7.10-1.1-desktop
up 1 day 18:21, 3 users, load average: 0.00, 0.04, 0.05
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile

On 2013-03-19 15:46, tsu2 wrote:

> So, I’ve since replaced the original /tmp with a new /tmp pointing to a
> HDD partition but I’d like to re-implement using tmpfs but with the
> flexibility to also overflow to a HDD location.

tmpfs should overflow to swap. Dunno, read the manual, perhaps there is
another trick.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Malcom Thx, I’ll try that. The app I used was FF Download and apparently no one knows or it’s not possible to change the Download temp variable (is different from regular Internet Temp files)

Carlos Nope, when I checked what happened when the download stopped complaining of lack of space, RAM was maxed out but Swap was only 20% utilized.

Interesting because this is a 64bit install. Wasn’t a “single file can’t be split” issue, too because I couldn’t launch a new program like YAST until /tmp space was cleared.

TSU