[SOLVED] Acer Aspire SSD temp files to RAM disk

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] Acer Aspire SSD temp files to RAM disk

Postby JoesCat » Sep 30th, '11, 04:06

Took a bit of searching around, but to increase the speed with slow SSD or simply reduce the amount of writes to the SSD, you can create a RAM disk by using part of your RAM memory as a disk drive.

If you are doing a fresh install, you should probably select to make the SSD drive as ext2, this method has no file journalling and if something goes corrupt, it's usually seen during bootup. ext2 also gets checked every now and then, and doesn't lock-up in a read-only method if something goes wrong. If it is a fresh install, select option noatime when creating the drive.

After install, look at your /etc/fstab file and make some modifications:
1) after defaults, add ,noatime to reduce the number of writes.
2) add two additional lines.
none /var/tmp tmpfs defaults,size=100M 0 0
none /tmp tmpfs defaults,size=30M 0 0



Code: Select all
# Entry for /dev/sda1 :
UUID=whatever_number_this_is_keep_it_the_same / ext2 defaults,noatime 1 1
none /proc proc defaults 0 0
none /var/tmp tmpfs defaults,size=100M 0 0
none /tmp tmpfs defaults,size=30M 0 0
# Entry for /dev/sda5 :
UUID=whatever_number_this_is_keep_it_the_same swap swap defaults 0 0


(Note: if you are using firefox for downloads, you'll need to make /tmp large enough to accept the largest file you expect to get)
User avatar
JoesCat
 
Posts: 177
Joined: Sep 15th, '11, 04:27
Location: Richmond, BC, Canada

Re: [SOLVED] Acer Aspire SSD temp files to RAM disk

Postby neildarlow » Oct 16th, '11, 18:41

Hi,

In the Mageia Control Center (under Boot|Set up boot system|Advanced) there is a checkbox Clear /tmp at each boot which actually puts /tmp on a dynamically sizeable tmpfs filesystem.

I would caution against putting /var/tmp on a tmpfs because it is possible that some application might use it for semi-permanent storage.

Regards,
Neil Darlow
EeePC 900, 900MHz Celeron-M CPU, 1GB RAM, 12GB SSD, Intel 915GM video, kernel-netbook, KDE
User avatar
neildarlow
 
Posts: 3
Joined: Aug 7th, '11, 11:56
Location: Bedfordshire, United Kingdom

Re: [SOLVED] Acer Aspire SSD temp files to RAM disk

Postby JoesCat » Oct 17th, '11, 01:12

I didn't know that Clear /tmp did that.
I'll have to investigate that.

So far, the method above seems to work okay. Main problem I ran into was when trying the android SDK, that needed at least 65M for the emulator, which got put into /tmp, not /var/tmp. /var/tmp seems to be used mainly by .kde4 caches and tmp storages. most people that would have a problem would probably find either /tmp or /var/tmp is either too big or too small depending on their application needs.

Thanks for posting your tip.
Joe

(If anyone else has other suggestions, please post them)
User avatar
JoesCat
 
Posts: 177
Joined: Sep 15th, '11, 04:27
Location: Richmond, BC, Canada


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest