You are not logged in.
Pages: 1
I was reading about creating a ramdisk to prolong the life of my SSD, and it seems like a quick solution is to move files to /var/tmp, as these files aren't deleted but are still temprorary. Are they on RAM or are they just stored on my regular drive?
Thanks, ~Unsolved Cypher
Last edited by UnsolvedCypher (2012-12-31 19:14:24)
Offline
/usr/lib/systemd/system/tmp.mount
Edit: There are two types of RAM disks. One is ramfs and the other is tmpfs. They're basically the same except the tmpfs is dynamically sized.
Last edited by WonderWoofy (2012-12-31 05:52:42)
Offline
/usr/lib/systemd/system/tmp.mount
Edit: There are two types of RAM disks. One is ramfs and the other is tmpfs. They're basically the same except the tmpfs is dynamically sized.
I'm assuming this mean that /tmp is mounted as tmpfs, but /var/tmp is not. If I am correct, would modifying the file be the way to go in order to put /var/tmp in the tmpfs as well, or would I have to do something different because /var/tmp should not be cleared on reboot?
Thanks!
Offline
you shouldn't do anything, /var/tmp is not supposed to be cleared on reboot. Applications may rely on this, so you shouldn't mess with that.
imho you shouldn't be worried about this, afaik modern SSDs have a write cycle that you wouldn't be able to reach in your lifetime. And as far as I can see, there isn't much stuff written to /var/tmp anyway.
Offline
you shouldn't do anything, /var/tmp is not supposed to be cleared on reboot. Applications may rely on this, so you shouldn't mess with that.
imho you shouldn't be worried about this, afaik modern SSDs have a write cycle that you wouldn't be able to reach in your lifetime. And as far as I can see, there isn't much stuff written to /var/tmp anyway.
What I want to do is to put /var/tmp onto my RAM, but make sure that it does not clear on reboot. How would I go about doing this? Also, SSDs would last about 20 years if 50 GB was written daily. So yes, they last a while, but I'd just like to reduce unnecessary writes in addition to the nice speed boost.
Offline
What I want to do is to put /var/tmp onto my RAM, but make sure that it does not clear on reboot. How would I go about doing this?
you can't do this. RAM drive = lost on reboot.
Also, SSDs would last about 20 years if 50 GB was written daily. So yes, they last a while, but I'd just like to reduce unnecessary writes in addition to the nice speed boost.
They are not unnecessary, applications don't just write there for no reason.
I still don't see the point of this, just don't worry about it.
Offline
UnsolvedCypher wrote:What I want to do is to put /var/tmp onto my RAM, but make sure that it does not clear on reboot. How would I go about doing this?
you can't do this. RAM drive = lost on reboot.
UnsolvedCypher wrote:Also, SSDs would last about 20 years if 50 GB was written daily. So yes, they last a while, but I'd just like to reduce unnecessary writes in addition to the nice speed boost.
They are not unnecessary, applications don't just write there for no reason.
I still don't see the point of this, just don't worry about it.
I believe it would be possible to copy the files back to my SSD before reboot or shutdown. Also, I have symbolically linked some applications' caches and other operational files to this location thinking that the tmp meant that it was on tmpfs. So, I would like to actually put this on tmpfs.
Example: Browser running from RAM reduces tiny file writes and also speeds up things like cache.
Offline
I believe it would be possible to copy the files back to my SSD before reboot or shutdown. Also, I have symbolically linked some applications' caches and other operational files to this location thinking that the tmp meant that it was on tmpfs. So, I would like to actually put this on tmpfs.
Example: Browser running from RAM reduces tiny file writes and also speeds up things like cache.
Asus M4A785TD-V ;; Phenom II X4 @ 3.9GHz ;; Ripjaws 12GB DDR3-1600 ;; 128GB Samsung 830 ;; MSI GTX460 v2 w/ blob ;; Arch Linux + KDE 4.x
Offline
I believe it would be possible to copy the files back to my SSD before reboot or shutdown.
yes, you could. You would have to copy the files from /var/tmp to the SSD and then back to /var/tmp on bootup. This saves you exactly 0 write cycles - congratulations!
Also, I have symbolically linked some applications' caches and other operational files to this location thinking that the tmp meant that it was on tmpfs. So, I would like to actually put this on tmpfs.
Example: Browser running from RAM reduces tiny file writes and also speeds up things like cache.
So link them to /tmp ?
Offline
So link them to /tmp ?
I'll do that, good idea. But how would I copy the files back before shutdown?
Offline
UnsolvedCypher wrote:I believe it would be possible to copy the files back to my SSD before reboot or shutdown. Also, I have symbolically linked some applications' caches and other operational files to this location thinking that the tmp meant that it was on tmpfs. So, I would like to actually put this on tmpfs.
Example: Browser running from RAM reduces tiny file writes and also speeds up things like cache.
That's very useful, thanks. I will look into this.
Offline
Ok, I am not using Profile Sync Daemon, but it isn't starting:
[me@localhost ~]$ sudo systemctl start psd.service
Job for psd.service failed. See 'systemctl status psd.service' and 'journalctl -xn' for details.
[me@localhost ~]$ systemctl status psd.service
psd.service - Profile-sync-daemon
Loaded: loaded (/usr/lib/systemd/system/psd.service; enabled)
Active: failed (Result: exit-code) since Mon, 2012-12-31 11:32:59 EST; 10s ago
Process: 3402 ExecStart=/usr/bin/profile-sync-daemon sync (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/psd.service
Does anyone have any ideas as to why?
Thanks!
Offline
Add yourself the adm group, or use "sudo systemctl status ..." to see the relevent journal info.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Add yourself the adm group, or use "sudo systemctl status ..." to see the relevent journal info.
Thanks, adding myself to the group worked. This does what I want, so I will mark this thread as solved. Thank you to everyone who helped.
Offline
Hey, sorry I didn't read your post quite right, and my brain was for some reason telling me that you were asking about /tmp.
Offline
Hey, sorry I didn't read your post quite right, and my brain was for some reason telling me that you were asking about /tmp.
No, it's fine. It still helped remind me about tmpfs vs ramdisk.
Offline
Pages: 1