View Single Post
Staro 09.10.2013., 12:45   #51
snake29o3
Premium
Moj komp
 
snake29o3's Avatar
 
Datum registracije: Nov 2006
Lokacija: Croatia - Kutina
Postovi: 135
Optimizacija SSD-a za Linux

Vidim da je ovdje samo opisana optimizacija SSD diskova za Windows, a pošto ja koristim Linux potražio sam po netu kako se to radi za Linux i izvukao najbitnije.

1. Open /etc/fstab and add noatime,nodiratime in fstab to all Linux partition (root, home), except swap partition

2. Open /etc/rc.local and at end of file
before exit 0 add fstrim -v for every Linux partition ( for root fstrim -v /, for home fstrim -v /home)

3. Check SWAPPINES settings (Set this only if use swap partition. I have 8 GB RAM and i don't use swap partition)
Open
/etc/sys/vm/swappiness it should be 60
At the end of file /etc/sysctl.conf add following:
#
# Sharply reduce swap inclination
vm.swappiness=1
# Improve cache management
vm.vfs_cache_pressure=50

4.Scheduler -check what scheduler your system use: Open /sys/block/sda/queue/scheduler
It should look like this if it uses deadline scheduler:
noop [deadline] cfq
If not, change so it uses deadline scheduler.
Open /etc/default/grub so it use deadline scheduler for all session.
Find this line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
And change it to this: GRUB_CMDLINE_LINUX_DEFAULT="elevator=deadline quiet splash"
After that update grub: sudo update-grub

5. Hibernation - Open /usr/share/polkit-1/actions/org.freedesktop.upower.policy
and find section about Hibernation and change
<allow_active>yes</allow_active> to <allow_active>no</allow_active>

6. TEMP files in RAM ( Use this if you have 4 GB or more RAM)
Open /etc/fstab and add this:
#
# Modification for SSD
tmpfs /var/log tmpfs defaults,noatime 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
Open /etc/rc.local and add this before exit 0
#
# Modification for SSD
for dir in apparmor apt cups dist-upgrade fsck gdm installer samba unattended-upgrades ;
do
if [ ! -e /var/log/$dir ] ; then
mkdir /var/log/$dir
fi
done

7. Turn off cache for JAVA
If you have installed Oracle Java, limit the write actions of the Java plugin:
Launch the Java Control Panel /usr/lib/java/jre1.7.0_25/bin/ControlPanel (This is folder where is my Java installed)
Tab General: Temporary Internet Files - Settings...
Remove the tick for: Keep temporary files on my computer.

8. Turn off cache for Firefox Firefox panel:
Edit - Preferences - Advanced Tab
Network Cached Web Content: set it to 0

9. Turn off cache for Chrome
Launch Chrome / Chromium.
Now press the F12 key, in order to open the developers' console.
In that window you click on the gear wheel in the bottom right, in order to open the settings.
In the settings window you tick: Disable cache.
Press F12 again to close the developers' console.
snake29o3 je offline   Reply With Quote