SEARCH

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

You are not logged in.

#26 2011-06-28 06:21:55

tonyoptical
#! CrunchBanger
Registered: 2009-09-08
Posts: 226

Re: HOWTO - Optimize #! statler for use with a solid state drive

Offline

Be excellent to each other!

#27 2011-07-24 08:52:13

Gamin92
Member
Registered: 2011-07-15
Posts: 14

Re: HOWTO - Optimize #! statler for use with a solid state drive

Hi,

I tried your optimizations. I changed scheduler without any problem, but TRIM check doesn't give me bunch of zeros...
Here is my fstab :

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda1 during installation
UUID=5f9cdcc6-405a-4396-83f9-a6779d1bc8bd /               ext4    noatime,discard 0       1
# /home was on /dev/sda3 during installation
UUID=1c4cd914-6009-41e8-b2fb-782540c6849a /home           ext4    noatime,discard       0       2
# swap was on /dev/sda5 during installation
#UUID=3de7175d-8eb8-4d4b-81b1-a5013c042406 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0

#temp file settings

tmpfs   /tmp       tmpfs   defaults,noatime,mode=1777   0  0
tmpfs   /var/log   tmpfs   defaults,noatime,mode=0755   0  0
tmpfs   /var/tmp   tmpfs   defaults,noatime,mode=1777   0  0
tmpfs   /var/spool tmpfs   defaults,noatime,mode=1777   0  0

Can you see something wrong ?
I'm running an OCZ Agility 3 (brand new, TRIM is of course included, also updated firmware) on ext4.

Offline

#28 2011-07-24 09:29:15

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: HOWTO - Optimize #! statler for use with a solid state drive

Hmmm nothing looks wrong in your fstab as far as I can tell, except that you have a SWAP slice...but that shouldn't stop TRIM from working. What kernel are you using?

Offline

#29 2011-07-24 09:40:35

Gamin92
Member
Registered: 2011-07-15
Posts: 14

Re: HOWTO - Optimize #! statler for use with a solid state drive

Offline

#30 2011-07-24 09:44:28

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: HOWTO - Optimize #! statler for use with a solid state drive

There's the liquorix kernel that you can install with the cb-welcome script, that would be the easiest way. I use the 2.6.38 kernel that is in the backports repo and that works a lot better for me than liquorix did, but I still have liquorix installed as a backup.

Offline

#31 2011-07-24 10:04:07

Gamin92
Member
Registered: 2011-07-15
Posts: 14

Re: HOWTO - Optimize #! statler for use with a solid state drive

How can I install 2.6.38 ? What do I have to add to source.list ? Because I tried to sudo apt-get install linux-image-2.6.38-bpo.2amd64 ans sudo apt-get install linux-image-2.6.38-bpo.2amd64_2.6.38~5-bpo60+1_amd64.deb, both returned "E:impossible to find package"... (translated from french).

Offline

#32 2011-07-24 10:09:37

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: HOWTO - Optimize #! statler for use with a solid state drive

actually you should remove the # in front of the backports line in sources.list

Offline

#33 2011-07-24 10:17:59

Gamin92
Member
Registered: 2011-07-15
Posts: 14

Re: HOWTO - Optimize #! statler for use with a solid state drive

Already did that :

## CRUNCHBANG
## Compatible with Debian Squeeze, but use at your own risk.
deb http://packages.crunchbanglinux.org/statler statler main

## DEBIAN
deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free
#deb-src http://ftp.de.debian.org/debian/ squeeze main contrib non-free

## DEBIAN SECURITY
deb http://security.debian.org/ squeeze/updates main
#deb-src http://security.debian.org/ squeeze/updates main

## DEBIAN BACKPORTS
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

## DEBIAN MULTIMEDIA
deb http://www.debian-multimedia.org stable main non-free

This is my sources.list.

Offline

#34 2011-07-24 13:08:45

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: HOWTO - Optimize #! statler for use with a solid state drive

apt-cache search 2.6.38

Offline

#35 2011-07-24 18:01:57

Gamin92
Member
Registered: 2011-07-15
Posts: 14

Re: HOWTO - Optimize #! statler for use with a solid state drive

Thanks for the help, I changed my kernel with KernelCheck, works fine...

Last edited by Gamin92 (2011-07-24 18:21:22)

Offline

#36 2011-07-24 18:12:54

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: HOWTO - Optimize #! statler for use with a solid state drive

Offline

#37 2011-07-24 18:20:06

Gamin92
Member
Registered: 2011-07-15
Posts: 14

Re: HOWTO - Optimize #! statler for use with a solid state drive

Oh, I forgot one question. I know you don't recommand it but I'd like to stop the ext4 logging (journaling). How can I do that ?
Edit : I changed kernel, but now at sartup, in grub, I got 4 lines : with new kernel (desk & console modes) and with old kernel (desk é wonsole modes). Also, it looks like it takes (almost) 2x more space than before, like if I had 2 CB installed with each kernel... Is there a way to clean that ?

Last edited by Gamin92 (2011-07-24 19:18:27)

Offline

#38 2011-07-25 04:02:44

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,419

Re: HOWTO - Optimize #! statler for use with a solid state drive

Offline

#39 2011-07-30 15:46:44

munchen800
Member
Registered: 2011-07-28
Posts: 13

Re: HOWTO - Optimize #! statler for use with a solid state drive

Offline

#40 2011-07-30 16:13:15

TRF
#! Member
Registered: 2009-07-25
Posts: 86

Re: HOWTO - Optimize #! statler for use with a solid state drive

followed with thread and enjoying life with my new ssd (20 hours so far)
(any thought to add it to wiki?):rolleyes:

Offline

#41 2011-07-31 00:30:21

munchen800
Member
Registered: 2011-07-28
Posts: 13

Re: HOWTO - Optimize #! statler for use with a solid state drive

Offline

#42 2011-10-18 22:19:13

convergent
#! Member
Registered: 2010-06-26
Posts: 54

Re: HOWTO - Optimize #! statler for use with a solid state drive

$ uname -a
Linux crunchbang 2.6.36-2.dmz.5-liquorix-amd64 #1 ZEN SMP PREEMPT Tue Dec 14 20:40:25 CST 2010 x86_64 GNU/Linux

Offline

#43 2011-10-29 22:17:23

dc46and2
New Member
Registered: 2011-10-29
Posts: 2

Re: HOWTO - Optimize #! statler for use with a solid state drive

GRUB_CMDLINE_LINUX="elevator=deadline"

Offline

#44 2012-03-13 13:17:33

hydn
Member
Registered: 2012-03-13
Posts: 22
Website

Re: HOWTO - Optimize #! statler for use with a solid state drive

thx!

Offline

#45 2012-04-18 03:33:55

Larsantos
Member
Registered: 2012-04-17
Posts: 15

Re: HOWTO - Optimize #! statler for use with a solid state drive

Hi,

I've followed the guide and almost everything worked.

On step 4, after issuing the sync command the read-sector didn't return zeros.

On step 5, after changing the /etc/grub.d/10_linux file issuing the cat command showed cfq as scheduler.


my fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda1 during installation
UUID=127e39b4-6c4d-45d9-b161-3836ca31c296 /               ext4    noatime,discard 0       1
/dev/sdb1       /media/usb0     auto    rw,user,noauto  0       0

#temp file settings

tmpfs     /tmp       tmpfs    defaults,noatime,mode=1777    0    0
tmpfs     /var/log   tmpfs    defaults,noatime,mode=0577    0    0
tmpfs     /var/tmp   tmpfs    defaults,noatime,mode=1777    0    0
tmpfs     /var/spool tmpfs    defaults,noatime,mode=1777    0    0

10_linux snipet

linux_entry ()
{
  os="$1"
  version="$2"
  recovery="$3"
  args="$4"
  if ${recovery} ; then
    title="$(gettext_quoted "%s, with Linux %s (recovery mode)")"
  else
    title="$(gettext_quoted "%s, with Linux %s")"
  fi
  printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${version}"
  save_default_entry | sed -e "s/^/\t/"

  # Use ELILO's generic "efifb" when it's known to be available.
  # FIXME: We need an interface to select vesafb in case efifb can't be used.
  if [ "x$GRUB_GFXPAYLOAD_LINUX" != x ]; then
      cat << EOF
    set gfxpayload=$GRUB_GFXPAYLOAD_LINUX
EOF
  fi

  if [ -z "${prepare_boot_cache}" ]; then
    prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
  fi
  printf '%s\n' "${prepare_boot_cache}"
  cat << EOF
    echo    '$(printf "$(gettext_quoted "Loading Linux %s ...")" ${version})'
    linux    ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro elevator=deadline ${args}
EOF
  if test -n "${initrd}" ; then
    cat << EOF
    echo    '$(gettext_quoted "Loading initial ramdisk ...")'
    initrd    ${rel_dirname}/${initrd}
EOF
  fi
  cat << EOF
}
EOF
}
hellhound@voidzone:~$ uname -r
3.2.0-0.bpo.2-amd64

Any pointers?

TIA

Edit: missed my #! version: crunchbang-10-20120207-amd64.bpo
        missed my cpu: Intel(R) Atom(TM) CPU N570   @ 1.66GHz

Last edited by Larsantos (2012-04-18 03:44:35)


Toshiba NB520-11V -- Linux 2.6.32-5-amd64 x86_64

Offline

#46 2012-04-29 17:25:29

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: HOWTO - Optimize #! statler for use with a solid state drive

Here is the script I wrote to set the I/O scheduler of my SDD to deadline by it's UUID since /dev/sdX names are unreliable on my desktop computers.  It should be run from /etc/rc.local.

#! /bin/bash
rootname="`ls -lF /dev/disk/by-uuid | grep "UUID Goes Here" | cut -c86-88`"
echo deadline > /sys/block/"$rootname"/queue/scheduler
echo 1 > /sys/block/"$rootname"/queue/iosched/fifo_batch

Offline

#47 2012-04-29 19:11:36

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: HOWTO - Optimize #! statler for use with a solid state drive

@arclance: Thanks for the useful script!

@larsantos: You might be having issues with setting the scheduler in that file because your using UUIDs (that would be my best guess anyways). You could try using arclance's script, or if you don't intend to use any mechanical hard drives in your machine ever, you could try using elevator=noop as a kernel parameter. If you're using GRUB, you can implement this by editing /boot/grub/menu.lst and changing

kernel /vmlinuz26 root=/dev/sda3 ro 

to

kernel /vmlinuz26 root=/dev/sda1 ro elevator=noop

If you're using GRUB2 you can edit /etc/default/grub and add:

GRUB_CMDLINE_LINUX="elevator=noop"

Remember to always run update-grub to make these changes effective!

As far as discard not working, I'm not sure why this would be the case, given that you have a kernel that is more than recent enough. What SSD are you using? Some older SSDs don't support TRIM.

Last edited by mynis01 (2012-04-29 19:12:44)

Offline

#48 2012-05-22 01:21:59

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: HOWTO - Optimize #! statler for use with a solid state drive

Bump. Edited the kernel section to reflect current #! releases and added some info about setting i/o scheduler. There's a few other things I'm going to try and add to the guide by the time waldorf goes stable. Does anyone have any tweaks of their own to add? Does any of this stuff not work anymore and/or is deprecated on a current statler or waldorf revision? Let me know so I can maitain this page! Also, this line can be used to set the i/o scheduler in systems that have grub issues or are running syslinux. What's the most secure way to run this command at boot?:

echo noop > /sys/block/sdX/queue/scheduler

I use /etc/rc.local but I'm not sure if this will work in #!

Last edited by mynis01 (2012-05-22 01:31:57)

Offline

#49 2012-05-22 09:07:48

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: HOWTO - Optimize #! statler for use with a solid state drive

Does work in #!.
I use rc.local to start my networking.

Offline

Be excellent to each other!

#50 2012-05-22 09:19:14

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

Re: HOWTO - Optimize #! statler for use with a solid state drive

@BSM - why rc.local? /boot/syslinux/syslinux.cfg or /boot/extlinux/extlinux.conf has the APPEND line, which is like /etc/default/grub for Grub Two.

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.
Server: acrobat

Debian Logo