edit Уреди тему

Оптимизујте ext4 систем датотека за SSD

In a fedora forum, I found this list for SSD-optimalization. I've just baught a new laptop with a Kingston 80GB SSD (which is a rebranded Intel X25-M), and plan to install Ubuntu on it. Im going to run dual boot with W7 for games.
What I understand so far, is that I should use ext4 without journaling, and that I should do some other tweaks.
The question is: Which parts of this list should I do, What needs to be changed in order for it to work in Ubuntu, What can I skip, and is there anything else I should do?
SSD Optimization
Perform the following if you’re using an SSD. If you’re using a hard drive you can skip this section.

Create Ramdisks to Store Frequently Written Areas

1. Edit your /etc/fstab file. Add the following lines.
/---code tmpfs /var/log tmpfs defaults 0 0 \---

tmpfs /tmp tmpfs defaults 0 0
tmpfs /var/tmp tmpfs defaults 0 0

If you're going to put all your log files in tmpfs to prevent writing to the SSD, you might as well put your ~/.xsession-errors in tmpfs too.

One way to do this, is to move .xsession-errors to /tmp (which is in tmpfs if use the settings above):

$ sudo chown root:root .xsession-errors
$ sudo chattr +i .xsession-errors

This will effectively create a new (randomly named) .xsession-errors file in /tmp because the default $HOME/.xsession-errors is no longer writeable.

И још боље искључите комплетно генерисање ове датотеке:
/---code ln -s /dev/null ~/.xsession-errors \--- You don't need to go to that level, you can do it from within FF:

Go to URL about:config
Add an entry browser.cache­.disk.parent_di­rectory
Set the value to /tmp

When you restart, FF will scribble all its **** to /tmp/Cache instead of wearing down your flash :-).

Disable Access Time Attributes =============­===================
1. Edit your /etc/fstab. Modify the root partitions settings. Add noatime and nodiratime to defaults.
/dev/sda2 / ext4 defaults,noati­me,nodiratime 0 0

Optimizing the Kernel =============­==========
1. Add the following to your /etc/rc.local file.
# Economize the SSD
sysctl -w vm.swappiness=1 # Strongly discourage swapping
sysctl -w vm.vfs_cache_p­ressure=50 # Don't shrink the inode cache aggressively

# As in the rc.last.ctrl of Linpus
echo ondemand > /sys/devices/sys­tem/cpu/cpu0/cpu­freq/scaling_go­vernor
echo ondemand > /sys/devices/sys­tem/cpu/cpu1/cpu­freq/scaling_go­vernor
cat /sys/devices/sys­tem/cpu/cpu0/cpu­freq/ondemand/sam­pling_rate_max > /sys/devices/sys­tem/cpu/cpu0/cpu­freq/ondemand/sam­pling_rate

echo 1500 > /proc/sys/vm/­dirty_writebac­k_centisecs
echo 20 > /proc/sys/vm/­dirty_ratio
echo 10 > /proc/sys/vm/­dirty_backgrou­nd_ratio

echo 1 > /sys/devices/sys­tem/cpu/sched_smt_po­wer_savings
echo 10 > /sys/module/snd_hda_in­tel/parameter­s/power_save
echo 5 > /proc/sys/vm/­laptop_mode

#Decrease power usage of USB while idle
[ -w /sys/bus/usb/de­vices/1–5/power/level ] && echo auto > /sys/bus/usb/de­vices/1–5/power/level
[ -w /sys/bus/usb/de­vices/5–5/power/level ] && echo auto > /sys/bus/usb/de­vices/5–5/power/level

/sbin/setpci -d 197b:2381 AE=47
/sbin/modprobe pciehp
/sbin/modprobe sdhci

Change the I/O Scheduler =============­=============
1. Edit the /etc/grub.conf file. Add “elevator=noop” to the kernel line.
kernel /vmlinuz-2.6.27.5–117.fc10.i686 ro root=/dev/sda
Source: "":[http://forums.fedoraforum.org/showthread.php?…]http://forums.fedoraforum.org/showthread.php?…

I've run Ubuntu for a year now, but I'm still not completely sure on commands.

Како бисте поставили Ваш коментар морате се учланити/пријавити на сајт.