LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

tmpfs ~/.cache cleaner daemon-script idea, to clean RAM space while trying to minimize SSD writes

Posted 10-27-2020 at 08:20 AM by the dsc (linux-related notes)
Updated 11-01-2020 at 04:45 AM by the dsc (maybe grammar or worse, maybe style)
Tags hack, script, ssd, tmpfs

In line with the idea of reducing how much it's written on SSD, some people suggest using tmpfs for lots of things, one of them can be the ~/.cache directory. Which must be implemented in a per-user basis or with some pre-mount script that would do such tmpfs mounts before each user login. But regardless, the point is that they may spare the SSD, but not the RAM, obviously. If you quit a cache-heavy program, its cache would still be there, leaving other programs you're running with less RAM to use....
Member
Posted in Uncategorized
Views 72 Comments 0 the dsc is offline
Old

Move firefox profile and cache into RAM tmpfs.

Posted 11-22-2017 at 04:57 AM by number22
Updated 11-22-2017 at 11:48 AM by number22

Relocating firefox's profile and cache into tmpfs of RAM; speed up firefox and save your hard drive's lifespan and space.

Change XXXX.UserProfile to exactly to your path of course.

creating backup locations first:
Code:
mkdir ~/backup/firefox.profile
mkdir ~/backup/firefox.cache
chmod 700 ~/backup/firefox.*
edit your /etc/fstab add following lines files will be mounted on firefox original locations, profile and cache:
Code:
tmpfs  your_home/.mozilla/firefox/XXXX.UserProfile
...
Member
Posted in Uncategorized
Views 3694 Comments 1 number22 is offline
Old

NFS-RAMBOOT - How-To for Debian 9 Stretch

Posted 06-30-2017 at 06:09 PM by IsaacKuo

NFS-RAMBOOT adapts my RAMBOOT hack to NFS root (PXE or not). On boot, it extracts an OS tarball from an nfs share into local RAM (recommended 3+GB of RAM). The result is like a very fast SSD.

Why do this? Compared to RAMBOOT, loading (and saving) the OS tarball over gigabit ethernet can be faster than a local hard drive or USB drive, if the file server has an SSD or a faster hard drive (compare 3.5" drives to 2.5" laptop drives, for example). Also, having the OS tarballs...
Senior Member
Posted in Uncategorized
Views 5278 Comments 3 IsaacKuo is offline
Old

tmpfs nfs swapfile - use one computer's RAM as SWAP for another computer

Posted 10-13-2016 at 11:51 AM by IsaacKuo
Updated 10-13-2016 at 03:11 PM by IsaacKuo

Previously, I described how to use one computer's RAM as an SSD (OS drive) for another computer. Here, I describe how to use one computer's RAM as SWAP for another computer. Bear in mind that even a RAM disk over gigabit ethernet isn't going to be as fast as a local SSD, but it's still faster and much more responsive than a local spinning hard drive.

This technique of using another computer's RAM as SWAP is a great way to augment RAMboot, as described here:

http://www.linuxquestions.org/questi...-jessie-37165/...
Senior Member
Posted in Uncategorized
Views 2891 Comments 0 IsaacKuo is offline
Old

RAMboot How-To for Debian 8 Jessie

Posted 09-19-2016 at 02:58 PM by IsaacKuo
Updated 10-17-2016 at 01:48 AM by IsaacKuo
Tags ramboot, ssd, tmpfs

I have refined and updated my RAMboot how-to for Debian 8. Honestly, my previous how-to's still work fine for Debian 8, regardless of the switch to systemd. I have, however, tightened things up.

The basic concept is to boot from a local hard drive or USB drive, using a modified initrd to unpack ramboot/image.tar.gz to a tmpfs ramdisk. From then on, the system runs entirely from ram - uncompressed. This is like running off an extremely fast SSD, but with some important differences:...
Senior Member
Posted in Uncategorized
Views 7316 Comments 4 IsaacKuo is offline

  



All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration