LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-09-2012, 06:47 AM   #1
anonymous7777
LQ Newbie
 
Registered: Aug 2011
Posts: 11

Rep: Reputation: Disabled
Slackware 13.37 64 bit and slow ssd speeds


Before anybody asks, yes my bios is set to AHCI mode. I have been using 13.37 since it was released with my ssd drive (information below) but the drive performance has not been up to par. I've read the arch wiki on ssd tweaking and looked around the net but no luck. I do run windows 7 on this box for gaming and the ssd performance is running at advertised speeds 500+ mb read and write. I did upgrade my motherboard, cables and even installed the newest kernel 3.3.1 but still the issue is the same. I pasted
every relevant output there is below, if you need anything else feel free to ask, thanks!


System Info:

Slackware 13.37 64 bit
Partition setup is single encrypted partition with lvm.
boot loader: grub2
Motherboard: P8Z68-V PRO GEN3




# dmesg | grep SATA
[ 4.106001] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x31 impl SATA mode
[ 4.111269] ata1: SATA max UDMA/133 abar m2048@0xf7f26000 port 0xf7f26100 irq 41
[ 4.111675] ata5: SATA max UDMA/133 abar m2048@0xf7f26000 port 0xf7f26300 irq 41
[ 4.111810] ata6: SATA max UDMA/133 abar m2048@0xf7f26000 port 0xf7f26380 irq 41
[ 4.112046] ahci 0000:04:00.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
[ 4.112747] ata7: SATA max UDMA/133 abar m512@0xf7c10000 port 0xf7c10100 irq 19
[ 4.112881] ata8: SATA max UDMA/133 abar m512@0xf7c10000 port 0xf7c10180 irq 19
[ 4.415392] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 4.416391] ata6: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 4.416501] ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 4.417420] ata7: SATA link down (SStatus 0 SControl 300)
[ 4.417478] ata8: SATA link down (SStatus 0 SControl 300)


# hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
Model Number: Corsair Force 3 SSD
Serial Number: 11286529000006820367
Firmware Revision: 1.3.3
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
Used: unknown (minor revision code 0x0110)
Supported: 8 7 6 5
Likely used: 8



# fdisk -l /dev/sda

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xab203e31

Device Boot Start End Blocks Id System
/dev/sda1 2048 206847 102400 83 Linux
/dev/sda2 206848 63121407 31457280 83 Linux
/dev/sda3 * 63121408 234441647 85660120 7 HPFS/NTFS/exFAT



# hdparm -Tt /dev/sda

/dev/sda:
Timing cached reads: 26358 MB in 2.00 seconds = 13194.05 MB/sec
Timing buffered disk reads: 580 MB in 3.00 seconds = 193.04 MB/sec


#fstab
/dev/mapper/slackvg-root / ext4 defaults,noatime,nodiratime,discard 0 1


#lspci -v

04:00.0 SATA controller: JMicron Technology Corp. JMB362 AHCI Controller (rev 10) (prog-if 01 [AHCI 1.0])
Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard
Flags: bus master, fast devsel, latency 0, IRQ 19
I/O ports at d040 [size=8]
I/O ports at d030 [size=4]
I/O ports at d020 [size=8]
I/O ports at d010 [size=4]
I/O ports at d000 [size=16]
Memory at f7c10000 (32-bit, non-prefetchable) [size=512]
[virtual] Expansion ROM at f0100000 [disabled] [size=64K]
Capabilities: [8c] Power Management version 3
Capabilities: [50] Express Legacy Endpoint, MSI 00
Kernel driver in use: ahci


# dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 10.5515 s, 102 MB/s
 
Old 04-09-2012, 12:16 PM   #2
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 111

Rep: Reputation: 20
Have you tried testing the drive:

- Without an encrypted partition
- Using the 'noop' scheduler
- *Not* enabling discard (for reasons why see http://xfs.org/index.php/FITRIM/discard and http://en.opensuse.org/SDB:SSD_disca...rim%29_support)

Are you using the Intel SATA controller with your SSD?

The following is from an OCZ Vertex 3, 240 GB, Slack64 13.37 / Linux 3.3.1, Gigabyte Z68X-UD7-B3 on the Intel SATA port, formatted with ext4
Quote:

/dev/sdb:
Timing cached reads: 32716 MB in 2.00 seconds = 16375.77 MB/sec
Timing buffered disk reads: 1478 MB in 3.00 seconds = 492.44 MB/sec
 
Old 04-09-2012, 07:29 PM   #3
anonymous7777
LQ Newbie
 
Registered: Aug 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
I've tried both noop and deadline schedulers, also encrypted/unencrypted with no lvm as well & the results ended up being the same, I dont think discard would be an issue as it is a widely used option and would not cause this big of a decrease in speed.
 
Old 04-09-2012, 09:12 PM   #4
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 111

Rep: Reputation: 20
Quote:
Originally Posted by anonymous7777 View Post
I dont think discard would be an issue as it is a widely used option and would not cause this big of a decrease in speed.
Well, you won't know for sure until you remount without it enabled, and use fstrim. (You did read the posts about why real-time discard is suboptimal in Linux, right?) I don't use discard and performance has been solid.

Make sure you're using the Intel SATA controller too. Marvell isn't as speedy even though it claims 6 Gbps.
 
Old 04-10-2012, 07:55 AM   #5
anonymous7777
LQ Newbie
 
Registered: Aug 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
Okay I went ahead and removed discard from fstab and that didnt help as well. Yeah I completely agree on the Marvell controllers so far they have been horrible for me I have it disabled in the bios. Im using Intel only so ... I dont know where to go from here. The exact setup works fine in windows , so something on the linux side but what I dont know.
 
Old 04-10-2012, 12:14 PM   #6
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 111

Rep: Reputation: 20
Quote:
Originally Posted by anonymous7777 View Post
Okay I went ahead and removed discard from fstab and that didnt help as well. Yeah I completely agree on the Marvell controllers so far they have been horrible for me I have it disabled in the bios. Im using Intel only so ... I dont know where to go from here. The exact setup works fine in windows , so something on the linux side but what I dont know.
Yeah, discard would help in writes (sorry), didn't think ahead in my last post.

I'm not sure why there's a disparity between Windows and Linux performance.

There was a thread a while back on the Linux Kernel Mailing List about poor SSD performance, but it may not apply in your situation and there didn't seem to be any resolution in the end.

https://lkml.org/lkml/2012/1/27/40
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do I need to configure bios for SSD speeds? aSystemOverload Linux - Hardware 11 12-01-2011 04:30 PM
Slow transfer speeds lew Linux - Networking 8 09-14-2009 07:52 AM
Very slow download speeds - because of Slackware Bonny Linux - Wireless Networking 4 08-20-2008 01:34 PM
Slow Burn Speeds Kamikaze78 Linux - Hardware 2 01-06-2007 12:04 PM
Slow network speeds pyschomike15 Linux - Networking 9 02-27-2005 06:26 PM


All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration