Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 6586  / 1 Year ago, wed, february 8, 2023, 9:21:31

Which files/directories can I move to RAM drive to have the system working faster?



I'm planning to upgrade my laptop's memory to 8GB soon, so I'll have some fast memory to use. How to configure the system to work optimal with this memory?



The next changes I consider next are:
- upgrading hard drive to SSD
- start using virtualization (I need Windows sometimes)



Edit:



Maybe I can sacrifice boot time, and copy some files to RAM drive during boot?


More From » hardware

 Answers
6

To mount /tmp /var/log and /var/tmp in RAM. Add these lines to the end of fstab to mount /tmp (temporary files) as tmpfs (temporary file system):



tmpfs /tmp     tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0


Save, then: sudo mount -a



Reboot for the changes to take effect. Running df, you should see a new line with /tmp, /var/tmp and /var/logs mounted on tmpfs.



Note: all log files will be lost after a reboot, to back them up manually run this in terminal:



rsync -av /var/log/* ~/saved_logfiles


To move Firefox Cache Into RAM:



Type about:config in firefox address bar and click I'll be careful,I promise!.
Right click on blank area and create a new string value called:



 browser.cache.disk.parent_directory


Set its value to /tmp



Restart Firefox.


[#40691] Thursday, February 9, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
wenceslockro

Total Points: 494
Total Questions: 127
Total Answers: 97

Location: Chad
Member since Mon, Dec 5, 2022
1 Year ago
;