You are not logged in.
Pages: 1
I tried to use tmpfs to be mounted at /tmp, and under that folder I can have a much more speed of compiling, and I don't know If I can have more folders to use tmpfs. I have thought of /var/tmp but I check the pathname website and it says that /var/tmp is intended for files to be remained between reboots.
So Can I make more use of tmpfs or maybe it's just a waste of time? Some suggestions?
Offline
For starters, why did you create five posts about the same topic?
But you can have the Firefox profile in tmpfs, it makes firefox a lot faster ![]()
But you have to unpack it to tmpfs at every boot, but for that you can use a script ![]()
Offline
please don't spam the forum...it just makes people less willing to help you.
[home page] -- [code / configs]
"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol
Offline
I've made /tmp a symlink to /dev/shm, that's even simpler than creating a mount point.
But sorry, no idea about other directories or apps.
1000
Offline
I'm unsing tmpfs for /tmp and use it everytime for compiling packages. It gives me about 30% speedup compared to regular disc usage(eg OOo 85min->60min).
Offline
I am so sorry, Because of a network lag and that makes me click may times on the "Submit"...
Offline
I've made /tmp a symlink to /dev/shm, that's even simpler than creating a mount point.
But sorry, no idea about other directories or apps.
So would this be just:
ln -s /dev/shm /tmp
Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.
Offline
Offline
Recently i've found an interesting article about joining ramdisk (for speed) and physical storage (for plenty of space). The case was MySQL server, which benefits from temp dir on ramdisk, but sometimes may need up to serveral gigabytes available.
Offline
So Can I make more use of tmpfs or maybe it's just a waste of time? Some suggestions?
Maybe this wiki-page will help you. => http://wiki.archlinux.org/index.php/Ramdisk
"The mind can make a heaven out of hell or a hell out of heaven" -- John Milton
Offline
Slightly OT: What's the difference between ramfs and tmpfs in a nutshell?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Slightly OT: What's the difference between ramfs and tmpfs in a nutshell?
From the Ramdisk wiki...
If you don't have a lot of spare ram, it is recommended to use 'tmpfs' instead of 'ramfs', as tmpfs uses Swap when the available RAM starts to run out, whereas ramfs doesn't. of course, dipping into swap loses the performance benefits of RAM, so it's a little pointless unless you have a lot of spare RAM.
Offline
ramfs is almost completely replaced (from a user standpoint) by tmpfs, since tmpfs allows you to set size used limits, and can use swap if it's there.
Offline
Sweet, thanks guys ![]()
*passes topic back to OP* (sorry!)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
OP, you are correct that /var/tmp should not lose data between reboots. Having /tmp as a tmpfs is a good practice for compiling, especially since it drastically reduces hard drive wear (or SSD wear!), but leave /var/tmp as a 'real' partition / directory. I doubt anything very speed-dependent like compiler stuff will be stored there anyways.
Offline
I doubt anything very speed-dependent like compiler stuff will be stored there [/var/tmp] anyways.
So far I've only seen it used by KDE for its cache data.
1000
Offline
OP, you are correct that /var/tmp should not lose data between reboots. Having /tmp as a tmpfs is a good practice for compiling, especially since it drastically reduces hard drive wear (or SSD wear!), but leave /var/tmp as a 'real' partition / directory. I doubt anything very speed-dependent like compiler stuff will be stored there anyways.
I am running arch and /var/tmp mounted as tmpfs for several years now. No notable problem so far.
Offline
ramfs is almost completely replaced (from a user standpoint) by tmpfs, since tmpfs allows you to set size used limits, and can use swap if it's there.
only partially true:
ramfs can have set size too:
ramdisk_size=xxx (append to grub)
next configure ramdisk in rc.local
use ramdisk for anything you want (size limitation of course). It is safe if you follow Arch wiki regarding hdd writing before shutdown.
Offline
Writing down the whole /tmp content at shutdown doesn't make much sense to me. The intend of the /tmp directy is to store _runtime_ datas you can delete at reboot. So every distribution does in the init sripts. Also writing down all of my several gb /tmp(fs) to disc would take a lot of time.
I only 'cp' what I need to ~/tmp.
Hint: tmpfs seems to have issues at shutdown sometimes. When I have used it so extensively that it extends to use swap it has problems to get umounted at shutdown. So it's better to rm -rf /tmp/* before typing reboot ![]()
Offline
Having /tmp as a tmpfs is a good practice for compiling, especially since it drastically reduces hard drive wear (or SSD wear!), but leave /var/tmp as a 'real' partition / directory.
You can always make /var/tmp (and similars) ext4, or any other separate filesystem and increase the commit/flush intervals.
Imho "using tmpfs but with a script to populate/save data to/from it at certain points" is pretty much the same as using a normal filesystem that gets synced infrequently.
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
well temp means temporary so holding to it makes not much sense.
interesting that nobody is trying to tweak disk I/O latencies and vm (I don't mean useless vm.swappiness=0)
Offline
when i compile programs it automatically uses /tmp ?
Offline
Hmm i will try it that ,but i got question wiki says:
none /path/to/location ramfs 0 0
What i should write in /patch/to/location?
Meaby /dev/ram0 or something?
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
none /path/to/location ramfs 0 0
What i should write in /patch/to/location?
Meaby /dev/ram0 or something?
Uhhh, /tmp perhaps?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
byte wrote:I've made /tmp a symlink to /dev/shm, that's even simpler than creating a mount point.
But sorry, no idea about other directories or apps.So would this be just:
ln -s /dev/shm /tmp
Better idea:
mkdir /dev/shm/tmp /dev/shm/lock
chmod 1777 /dev/shm/tmp /dev/shm/lock
mount --bind /dev/shm/tmp /tmp
mount --bind /dev/shm/tmp /var/tmp
mount --bind /dev/shm/lock /var/lockOffline
Pages: 1