Author Topic: testing trim on ssd not working (solved)-ongoing  (Read 2960 times)

Offline loudog

  • Sr. Member
  • ****
  • Posts: 399
testing trim on ssd not working (solved)-ongoing
« on: April 15, 2012, 12:19:57 PM »
as i wait for the new kernel that will get my wireless working ;) i came across this tutorial to enable and test that TRIM is in fact working on the linux os 8). all things go fine untill i try to create the test file and i get the command not found :-\. this is the command in question: :)
su     techgage Desktop # seq 1 1000 > testfile
this is suppose to create a file of sequential #'s from 1 to 1000. further along in the tut you read the file, delete the file, clear the cach or buffers then re read the file and should get all zero's if TRIM is in fact working. this is the tut link ;D
http://techgage.com/article/enabling_and_testing_ssd_trim_support_under_linux/1
is there an equivilent command (techgage) for our particular cm or is this in fact an actual program that maybe in the repos? ???
« Last Edit: April 24, 2012, 08:30:24 AM by loudog »
Friends don't let friends boot windows

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5331
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: testing trim on ssd not working
« Reply #1 on: April 15, 2012, 01:51:05 PM »
as i wait for the new kernel that will get my wireless working ;) i came across this tutorial to enable and test that TRIM is in fact working on the linux os 8). all things go fine untill i try to create the test file and i get the command not found :-\. this is the command in question: :)
su     techgage Desktop # seq 1 1000 >
this is suppose to create a file of sequential #'s from 1 to 1000. further along in the tut you read the file, delete the file, clear the cach or buffers then re read the file and should get all zero's if TRIM is in fact working. this is the tut link ;D
http://techgage.com/article/enabling_and_testing_ssd_trim_support_under_linux/1
is there an equivilent command (techgage) for our particular cm or is this in fact an actual program that maybe in the repos? ???


Oh my Lou, Lou you silly boy.  ::)  This is not the command to run "techgage Desktop # seq 1 1000 > testfile"  the command should be seq 1 1000 > testfile

You want to execute everything after the # sign. ;)

so it would look like this at the command line prompt.

Code: [Select]

seq 1 1000 > testfile

hdparm --fibmap testfile

sync

hdparm --read-sector 49598792 /dev/sda


Each line above is to be entered at the prompt.  IE: [root@localhost ~]# hdparm --read-sector 49598792 /dev/sda
Replace "sda" with your SSD device.

You silly boy, techgage is the username of his machine not some mystical command. :o
« Last Edit: April 15, 2012, 01:52:37 PM by YouCanToo »




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline loudog

  • Sr. Member
  • ****
  • Posts: 399
Re: testing trim on ssd not working
« Reply #2 on: April 15, 2012, 03:28:30 PM »
did i mention i have been offline and not computing for over a year? :-\ i know thats a lame excuse for a bonehead mistake like that ::) but ill have to brush up on a # of things. ;) your always so mean to me ;D.
  ok ill give it another try and see what happens.
Friends don't let friends boot windows

Offline loudog

  • Sr. Member
  • ****
  • Posts: 399
Re: testing trim on ssd not working
« Reply #3 on: April 15, 2012, 04:01:19 PM »
ok it appears that the trim is working per the tutorial's guidelines as long as you UNDERSTAND what your supposed to do.

 i feel ssooo duuuhhhh.
thank youcantoo                    i will mark as solved
Friends don't let friends boot windows

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5331
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: testing trim on ssd not working
« Reply #4 on: April 18, 2012, 12:06:08 AM »
did i mention i have been offline and not computing for over a year? :-\ i know that's a lame excuse for a bonehead mistake like that ::) but ill have to brush up on a # of things. ;) your always so mean to me ;D.
  ok ill give it another try and see what happens.

And if I wasn't you would think there was something wrong. You know I have worked so hard to have this reputation ;) anything less would just spoil it!  Really though, I am glad that you got it all worked out.




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5331
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: testing trim on ssd not working
« Reply #5 on: April 18, 2012, 12:13:20 AM »
ok it appears that the trim is working per the tutorial's guidelines as long as you UNDERSTAND what your supposed to do.

 i feel ssooo duuuhhhh.
thank youcantoo                    i will mark as solved


Perhaps you should do a step by step how to, about it and put it in the Knowledge Base  http://pclinuxoshelp.com/index.php/Category:HowTo
Did you know there is a browser specifically made for the Knowledge Base? It is in Synaptic and is called "kbb" and was done by NealManBear
« Last Edit: April 18, 2012, 12:14:53 AM by YouCanToo »




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline loudog

  • Sr. Member
  • ****
  • Posts: 399
Re: testing trim on ssd not working (solved)
« Reply #6 on: April 18, 2012, 08:54:40 PM »
actually i am going to do just that after some more research and testing. there is a number of other things that are suggested in the tutorials like doing away with the swap and porting your temp files to be mounted on the ram (4gig of ram recomended for this) along with the browser cach, enabling a write through method by editing the kernel line, disabling hibernate among other things. some of it seems like hype though. the biggest obstacle is that the way pclos has its file structure does not match the file structure in the other distro's. if you look at the link and check for some of the files they identify as needing edited you cant find them in the location they say they are located. i will keep trying though. here is the link if your curious though.
http://blog.philippklaus.de/2011/02/ssd-optimizations-on-linux/
Friends don't let friends boot windows

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5331
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: testing trim on ssd not working (solved)
« Reply #7 on: April 19, 2012, 11:52:03 AM »
actually i am going to do just that after some more research and testing. there is a number of other things that are suggested in the tutorials like doing away with the swap and porting your temp files to be mounted on the ram (4gig of ram recomended for this) along with the browser cach, enabling a write through method by editing the kernel line, disabling hibernate among other things. some of it seems like hype though. the biggest obstacle is that the way pclos has its file structure does not match the file structure in the other distro's. if you look at the link and check for some of the files they identify as needing edited you cant find them in the location they say they are located. i will keep trying though. here is the link if your curious though.
http://blog.philippklaus.de/2011/02/ssd-optimizations-on-linux/


You really mean they DO NOT match our filesystem ;)

Since that page is referring to the "Nasty Brown" edition it is anyone's guess where they have anything located.




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline loudog

  • Sr. Member
  • ****
  • Posts: 399
Re: testing trim on ssd not working (solved)
« Reply #8 on: April 20, 2012, 03:44:55 PM »
so if i do all the testing etc :-\ will you just answer some (its me so you know they will be simple ::)) questions? ??? i dont want to post something that is inaccurate and untested ;)
Friends don't let friends boot windows

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5331
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: testing trim on ssd not working (solved)
« Reply #9 on: April 20, 2012, 05:07:53 PM »
so if i do all the testing etc :-\ will you just answer some (its me so you know they will be simple ::)) questions? ??? i dont want to post something that is inaccurate and untested ;)

All I can do is try   ;)




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline loudog

  • Sr. Member
  • ****
  • Posts: 399
Re: testing trim on ssd not working (solved)-ongoing
« Reply #10 on: April 24, 2012, 08:37:31 AM »
 well step 2 in the ssd optimization. ;) the various articles talk about the need to edit the rc.local file or the /etc/default/grub in the case of using grub 2. it appears that we are not using grub 2 as i cannot locate a /default/grub file in /etc ??? although i have been wrong before ::) how do i find out what version of grub we are using. :)
« Last Edit: April 24, 2012, 08:46:37 AM by loudog »
Friends don't let friends boot windows

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10647
  • MLUs Forever!
Re: testing trim on ssd not working (solved)-ongoing
« Reply #11 on: April 24, 2012, 09:50:03 AM »


GNU GRUB  version 0.97 
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline loudog

  • Sr. Member
  • ****
  • Posts: 399
Re: testing trim on ssd not working (solved)-ongoing
« Reply #12 on: April 24, 2012, 10:04:06 AM »
thanks just18. now how did you find that information out?
Friends don't let friends boot windows

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10647
  • MLUs Forever!
Re: testing trim on ssd not working (solved)-ongoing
« Reply #13 on: April 24, 2012, 10:08:24 AM »
thanks just18. now how did you find that information out?

Probably the best way is to use Synaptic and search for Grub ....  it will show the installed version.

Alternatively you could use the terminal

Code: [Select]
[user@XPS ~]$ grub --version
grub (GNU GRUB 0.97)
[user@XPS ~]$
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline loudog

  • Sr. Member
  • ****
  • Posts: 399
Re: testing trim on ssd not working (solved)-ongoing
« Reply #14 on: April 24, 2012, 01:24:52 PM »
thanks j18. ;)
 now for the next issue i discovered :P. diskdrake lists the ssd as sda but when i look at the fstab file it lists the partitions on sdc. :-\ so the obvious question is: when editing the rc.local file do i use sda or sdc? ??? i would venture you would want to use what the fstab file dictates as it is the actual config file ;) and disdrake is only a gui.
  enlighten me :)
Friends don't let friends boot windows