View previous topic :: View next topic |
Author |
Message |
haVok n00b

Joined: 21 May 2013 Posts: 49
|
Posted: Sun Dec 29, 2013 12:29 am Post subject: ssd slower read speed on / than on /home |
|
|
This seems strange to me, I have a /boot and luks partiton with lvm and root lv and home lv, the root lv with hdparm is showing an adverage of 345 mb read speed while the home lv is showing 480, I'm I missing something? |
|
Back to top |
|
 |
frostschutz Advocate


Joined: 22 Feb 2005 Posts: 2971 Location: Germany
|
Posted: Sun Dec 29, 2013 1:15 am Post subject: |
|
|
Unusual for an SSD, if there is nothing special about the LV (such as active snapshots or whatever). But on the other hand, hdparm is not really a benchmark.
Device usage could make a difference, it may be able to return free space (zeroes) faster than actually reading any data.
Also, it may be something to do with caching. |
|
Back to top |
|
 |
Hu Moderator

Joined: 06 Mar 2007 Posts: 14372
|
Posted: Sun Dec 29, 2013 1:33 am Post subject: |
|
|
What block size are you using for the reads? Are all the partitions properly aligned? |
|
Back to top |
|
 |
haVok n00b

Joined: 21 May 2013 Posts: 49
|
Posted: Sun Dec 29, 2013 1:58 am Post subject: |
|
|
Well I'm not so keen on the hard drive stuff, but from what I understood fdisk should have aligned it properly |
|
Back to top |
|
 |
Hu Moderator

Joined: 06 Mar 2007 Posts: 14372
|
Posted: Sun Dec 29, 2013 3:02 am Post subject: |
|
|
If you mean fdisk from sys-apps/util-linux, the partitions are probably aligned for correct performance under DOS, meaning it is not aligned properly for SSDs. |
|
Back to top |
|
 |
haVok n00b

Joined: 21 May 2013 Posts: 49
|
Posted: Sun Dec 29, 2013 5:44 am Post subject: |
|
|
Well I decided to start over still not sure if they were align right. Booted parted magic to test hdparm and I get almost 500 mps on all partitons, hdparm on gentoo was showing way less. |
|
Back to top |
|
 |
frostschutz Advocate


Joined: 22 Feb 2005 Posts: 2971 Location: Germany
|
Posted: Sun Dec 29, 2013 11:22 am Post subject: |
|
|
Hu wrote: | What block size are you using for the reads? Are all the partitions properly aligned? |
If they're both LV in the same VG and same PV, their alignment can't be different from one another, as LVM itself is locked to its PE which is usually 4MB or larger.
So any alignment problem should affect both LVs the same. Not that alignment matters much in sequential reads as hdparm presumably does.
Of course it's still worth checking  |
|
Back to top |
|
 |
Hu Moderator

Joined: 06 Mar 2007 Posts: 14372
|
Posted: Sun Dec 29, 2013 4:37 pm Post subject: |
|
|
frostschutz wrote: | If they're both LV in the same VG and same PV, their alignment can't be different from one another, as LVM itself is locked to its PE which is usually 4MB or larger.
| Good point. I missed that both LVs were on the same PV. |
|
Back to top |
|
 |
|