You are not logged in.

#1 2008-06-06 10:16:40

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

I want /tmp in RAM

Hi,

I'm enjoying 1 Gb RAM, then I decided to allocate some RAM as temporary use.

I set in my /etc/fstab

/tmp                /dev/shm         tmpfs     size=256m                   0      0

But I'm not sure whether my /tmp is erased by boot procedures or because it's a real RAM.

Is there some test, to verify this?
Do I made wrong setting?

F


do it good first, it will be faster than do it twice the saint wink

Offline

#2 2008-06-06 11:05:11

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: I want /tmp in RAM

Don't you want something like this:

none    /tmp    tmpfs   nodev,nosuid,noexec,nodiratime,size=768M    0   0

That's what I'm running and my tmp is certainly in RAM and properly emptied. The size option gives an upperbound, I never reached it yet smile

Last edited by Ramses de Norre (2008-06-06 11:05:50)

Offline

#3 2008-06-07 06:39:21

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: I want /tmp in RAM

Well, temporary CD creations, will get you that much wink


do it good first, it will be faster than do it twice the saint wink

Offline

#4 2008-06-07 09:11:27

_Marco_
Member
Registered: 2008-04-21
Posts: 242

Re: I want /tmp in RAM

can I ask you what improvements do you get putting /tmp in ram?

Offline

#5 2008-06-07 11:38:45

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: I want /tmp in RAM

_Marco_ wrote:

can I ask you what improvements do you get putting /tmp in ram?

I suppose you'd barely notice... I just like the idea and probably access time to cached documents etc is faster. But still, I don't think it really matters, I just like to experiment with stuff like this smile

Offline

#6 2008-06-07 12:47:49

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: I want /tmp in RAM

It was a default setup in Arch a few years ago, btw.

Offline

#7 2008-06-07 13:21:12

dhave
Arch Linux f@h Team Member
From: Outside the matrix.
Registered: 2005-05-15
Posts: 1,112

Re: I want /tmp in RAM

lucke wrote:

It was a default setup in Arch a few years ago, btw.

Does anyone know why the default was changed?


Donate to Arch!

Tired? There's a nap for that. --anonymous

Offline

#8 2008-06-07 13:39:02

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: I want /tmp in RAM

IMHO, will reduce tear/wear on the HD, specially for unnecessary files, that are used as a simple placeholder.
Hard disks will do better on retaining important data, temporary files are accepted when RAM cannot suffice.

My dream would be to have a spindleless laptop. 64 Gb data storage, 16 Gb RAM and sata socket if HD or other removable disk will need.

F

Last edited by TheSaint (2008-06-07 13:42:36)


do it good first, it will be faster than do it twice the saint wink

Offline

#9 2008-06-07 13:54:19

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: I want /tmp in RAM

dhave wrote:
lucke wrote:

It was a default setup in Arch a few years ago, btw.

Does anyone know why the default was changed?

if I need to copy a cd the temporary image goes to /tmp of course, but I don't have 700 mB in /tmp because I don't even have 700mB of ram.

Offline

#10 2008-06-07 17:31:32

dhave
Arch Linux f@h Team Member
From: Outside the matrix.
Registered: 2005-05-15
Posts: 1,112

Re: I want /tmp in RAM

carlocci wrote:
dhave wrote:
lucke wrote:

It was a default setup in Arch a few years ago, btw.

Does anyone know why the default was changed?

if I need to copy a cd the temporary image goes to /tmp of course, but I don't have 700 mB in /tmp because I don't even have 700mB of ram.

O.K., that makes sense. Thanks for the explanation.


Donate to Arch!

Tired? There's a nap for that. --anonymous

Offline

Board footer

Powered by FluxBB