SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-10-19 12:13:39

AngelForget
New Member
From: italy
Registered: 2012-10-08
Posts: 3

optimizations for SSD (aspire one 110) with 11 crunchbag

optimizations for SSD (Aspire One 110)
Hoping to please (maximum remains a personal reminder) summarize the recommendations for optimizing the performance of the SSD with linux.
Correct me if I'm wrong. If you have different opinions, discuss it. Thank you.

I use a dual boot I qunidi windows on sda1 and sda2 debian on. Choose accordingly (or ask).

1. filesystem to use for the installation of linux
ext4

2. disable the journal
restart to live (eg Lubuntu)
open a terminal
Code:
sudo su
tune2fs-O ^ has_journal / dev/sda2
replaced at your sda2 partition with linux.

3. mount options
edit the file / etc / fstab and add the following line to the /
Code:
noatime, nodiratime, norelatime, commit = 600, discard, nouser_xattr
aggingere also the following lines
Code:
tmpfs / tmp tmpfs defaults, noatime, mode = 1777 0 0
tmpfs / var / tmp tmpfs defaults, noatime, mode = 1777 0 0
and if you feel confident and savvy (are understanding what you are doing), the following
Code:
tmpfs / var / log tmpfs defaults, noatime, mode = 0755 0 0
tmpfs / var / spool tmpfs defaults, noatime, mode = 1777 0 0
all help reduce physical writes to disk.
hours to be picky these directories should be clean before the next reboot. if you know how to do it, do it. if you do not know what to do but you do it anyway, ask me. otherwise do not be problems, does the same.

4. options to the boot
edit the file / etc / default / grub line with GRUB_CMDLINE_LINUX = "" by adding the following options
Code:
GRUB_CMDLINE_LINUX = "elevator = deadline rootflags = commit = 600 mmc_core.removable = 0"
if in addition to drive hd ssd also used (mechanical) DO NOT turn on the option elevator = deadline but only the other.
while we're
Code:
GRUB_TIMEOUT = 1
important! just closed the file
Code:
update-grub

5. commands at startup
add to / etc / rc.local before the line exit 0 the following
Code:
echo deadline> / sys / block / sda / queue / scheduler
echo 1> / sys / block / sda / queue / iosched / fifo_batch
repeated for each disk ssd you have (in my case the only sda) and not for the hd.
add
Code:
echo-n enabled> / sys/class/thermal/thermal_zone0/mode
in the file / etc / default / rcS replace no with yes in the following lines
Code:
RAMRUN = yes
RAMLOCK = yes
in / etc / modules aggingere line
Code:
acpiphp
big_smile:D:D:D:D:P:P

Offline

Be excellent to each other!

#2 2012-10-19 17:14:03

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: optimizations for SSD (aspire one 110) with 11 crunchbag

AngelForget wrote:

2. disable the journal

Then why use a journaling filesystem? You can shrink it for an infitesimal amount of speed gained if you're inclined.


noatime, nodiratime, norelatime,

nodiratime and norelatime are subsets of noatime, and therefore redundant.

5. commands at startup
add to / etc / rc.local before the line exit 0 the following
Code:
echo deadline> / sys / block / sda / queue / scheduler

Since you've already defined your scheduler in the kernel line in Grub, there's no need to duplicate.

Your tutorial is not bad per se, but mynisBSD has already written a much better one on this forum. I'd advise anyone who wants to optimize SSDs to follow that one.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo