Page 1 of 1

SSD Optimizations - Temp Files - Etc

PostPosted: Oct 25th, '12, 17:06
by yankee495
Hi Dok and everyone. I've been going through some back problems and not on the computer much, but all is better now!

OK, so I finally have Mageia 2 on my desktop with a HyperX 120GB SSD. It installed all the hardware with very little problems (have to set up 3 monitors). With Mandriva 2010 I had to compile Ethernet drivers and I forget what all.

Even in Windows people have different opinions of what to enable/disable on a SSD system. This is even worse with Linux so I thought I'd just ask if there is a post here or somewhere with what to do? I think I can figure out how if I knew what to do.

One thing. I have a 1TB HDD, a 120GB SSD with Win7 and a 120GB SSD with Mageia 2. The HDD still boots Mandriva 2010 and Win7 on the HDD as if it were the only drive in the system. The SSD's are stand alone OS's too, not RAID or anything. So I have 4 independent OS's.

So I assume I don't want it writing a access date to the Win7 SSD if I were to read a file from it. I'll look around some more but I thought I must have overlooked something somewhere.

I had all drives hooked up when I installed Mageia 2 on the second SSD. Wow! It picked up all OS installations and I am able to boot to any OS on any drive from the boot menu on the Mageia SSD! Just Awesome!

Re: SSD Optimizations - Temp FIles - Etc

PostPosted: Oct 25th, '12, 19:19
by doktor5000
You may want to look at https://wiki.mageia.org/en/Installation ... e_Drive%29
Only modifications i did when for my SSD are noatime, no swap (as i generally don't need it, and don't do suspend or hibernate,
and when there is demand you can easily create a swapfile and swapon /path/to/swapfile && swapon -s)
and proper alignment prior to installing (although Mageia should get it right)
Something that is not special to SSDs but should be done, is using tmpfs for /tmp, which puts it into
RAM and clears it on reboot. Can be easily enabled in drakboot advanced options.

Re: SSD Optimizations - Temp FIles - Etc

PostPosted: Oct 26th, '12, 06:38
by yankee495
Thanks Dok,

I think I got it. I had read a lot but I am going to do it for a friend and don't wanna go off and leave something undone so I just ask.


This is my fstab:
Code: Select all
# Entry for /dev/sdc1 : THIS IS MAGEIA  / ON SSD
UUID=8612ece5-255b-4d3e-8ebe-c7c66988f534 / ext4 acl,discard,relatime 1 1
# Entry for /dev/sdc6 : THIS IS MAGEIA  /HOME ON SSD
UUID=7c3ffa94-54fd-47b5-b9a0-c308c79132da /home ext4 acl,discard,relatime 1 2
/dev/sr1 /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
# Entry for /dev/sda1 :  THIS IS A HDD
UUID=DE72CD2C72CD09EB /media/win_c ntfs-3g defaults,umask=000 0 0
# Entry for /dev/sdb1 :  THIS IS  WIN7 on  SSD #2  I DIDN"T KNOW HOW TO ADD DISCARD TO THIS
UUID=FEA64E68A64E220F /media/win_c2 ntfs-3g defaults,umask=000 0 0
# Entry for /dev/sda2 :THIS IS MORE ON HDD
UUID=78BACED6BACE9054 /media/win_d ntfs-3g defaults,umask=000 0 0
none /proc proc defaults 0 0
none /tmp tmpfs defaults 0 0
# Entry for /dev/sda6 :  MAGEIA PICKED THIS UP ON IT'S OWN.  IT IS SWAP FOR MANDRIVA ON HDD
UUID=f728e18d-6441-48eb-9d5b-1f8bf38c1154 swap swap defaults 0 0
# Entry for /dev/sdc5 :  THIS IS THE SWAP ON THE MAGEIA SSD COMMENTED TO DISABLE
# UUID=c017c0d2-f6d2-47bc-a051-9e7a2b273a3e swap swap defaults 0 0



After looking at it I forgot. I never found what to do to the second SSD with windows on it.

Re: SSD Optimizations - Temp FIles - Etc

PostPosted: Oct 26th, '12, 07:25
by yankee495
I found a nice script to test if TRIM is working:

Article: https://sites.google.com/site/lightrush/random-1/checkiftrimonext4isenabledandworking

Download script here and put it in /tmp:

https://sites.google.com/site/lightrush/random-1/checkiftrimonext4isenabledandworking/test_trim.sh?attredirects=0&d=1

Go to the /tmp folder as root and Make it executable:

Code: Select all
chmod +x test_trim.sh


Run the script:

Code: Select all
./test_trim.sh tempfile 50 /dev/sdX
Replace the X to match your drive.

Follow the instructions on the screen. My TRIM is working! :D