Link to home
Start Free TrialLog in
Avatar of Mike R.
Mike R.

asked on

Sol 8: Run "/tmp" in RAM (not swap, and not hdd)

Hey Gang,

Weird question.  This is in relation to a customer’s requirement...so although there are probably far better ways of doing this...for the moment, I need to know how to do it this way.

I would like to set a Solaris 8 (02/02) system so the "/tmp” dir is mounted to RAM (I.E. as if it were mounted to a Windows ramdrive.)  It would be acceptable to mount it directly...OR have it mount to swap (like normal) but set swap to RAM only (no hard drive access at all.)

This can be done through configuration editing, scripts during/after boot...whatever.

Thanks!
M
ASKER CERTIFIED SOLUTION
Avatar of PsiCop
PsiCop
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike R.
Mike R.

ASKER

OK...what was throwing me off was the fact that the examples for both tmpfs and mount -F tmpfs mention swap.  We don't want the /tmp dir to touch the hard drive...however, as Solaris can run without swap, I am assuming that if swap space on the drive is not designated at all (I.E. "swap -l" responds with no swap enabled) then the command "mount -F tmpfs swap /tmp" will result with the /tmp dir being held completely in RAM.

Is this correct?

Thanks!
M
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike R.

ASKER

Great...thanks makes sense (you are right about the mounting in the vfstab.)  I will give this a shot Monday and see how we end up!

Thanks!
M
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike R.

ASKER

I have not had a chance to really "test" the configuration...but so far, everything seems to be fine with /tmp mounted normally to a tmpfs, but having no physical swap.  I agree with Nukfror, that running without physical swap is not recommended-and can lead to issues-but, for this particular install, it was a requirement.

It looks like I am not really going to be able to run the system through it paces for a while (things have started to pile up) so I am going to assign points and will re-visit the issue as a new question if it becomes necessary.

Thanks for all the help and input!
M