5 Sep
2005
5 Sep
'05
01:14
Shriramana Sharma wrote:
Sunday 04 Sep 2005 18:20 samaye James Knott alekhiit:
Is there, then, a way to empty /tmp and swap everytime I shutdown? You could create a symlink from /tmp to /dev/shm. This means that your /tmp will be on a RAM disk.
And also means that my RAM will be hogged for this purpose, yes?
Yes, using a RAM disk, will require some RAM.
As for swap, you'd have to write junk to the partition on shut down.
How?
I'd imagine the dd command could be used to fill the partition.
Or you could simply have enough RAM, that you don't need a swap.
How do you say about 1.5 GB? (Don't have it now, but planning to get.)
How much you need, depends on what you're doing. If you're frequently hitting swap, you could use more memory.