11:39 < micr0c0sm> its easy, just make sure you dont have anything in /var/tmp that expects to be persistent
11:39 < micr0c0sm> relevant lines from my /etc/fstab:
11:39 < micr0c0sm> shm /dev/shm tmpfs nosuid,mode=1777,noatime 0 0
11:39 < micr0c0sm> /dev/shm /tmp none bind 0 0
11:39 < micr0c0sm> /tmp /var/tmp none bind 0 0
11:41 < micr0c0sm> shm is shared memory (aka ram)
11:41 < micr0c0sm> mode=1777 nosuid makes sure its safe from executing silly things
11:41 < micr0c0sm> noatime means don't write the time any file in there is accessed, theres no point to there
11:42 < [BAFtop]> w.t.f.
11:42 < [BAFtop]>
http://farm3.static.flickr.com/2279/...9db54ab0e2.jpg
11:42 < [BAFtop]> ^ WTF
11:42 < micr0c0sm> bind lets you bind a mount, kind of like a softlink but much better when mounting
11:42 < micr0c0sm> so i bind my shared memory to /tmp/ and /var/tmp
11:42 < micr0c0sm> so both of those are the same directory, and they grow as necessary
11:42 < Twintop> [BAFtop]: WTF is right
11:42 < micr0c0sm> i also have 4gb of ram and never go above 1.2gb with caches so its safe
Bookmarks