linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Write performance 50% compared to Windows
@ 2016-11-01 10:37 Bram Matthys
  2016-11-01 13:03 ` Dâniel Fraga
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bram Matthys @ 2016-11-01 10:37 UTC (permalink / raw)
  To: linux-ide

Hi,

I have a Samsung SSD 850 EVO 4TB and under Linux I'm only getting 
~240MB/s write speed. On Windows it's 490MB/s (yes, without cache).
The read speed is the same on both Linux and Windows, though. Both are 
512MB/s.

Any ideas what this could be? It can't be a slow SATA link as read 
speed are fine. And since write performance is fine on Windows so I'm 
kinda stunned. Not sure how to proceed / debug this any further.

I'm testing with dd if=/dev/zero of=/dev/sdX bs=1M count=65536 
conv=fdatasync. Results are similar without the conv=fdatasync. On 
Windows I test with AS SSD.
Prior to testing I do a ATA security erase to make sure the SSD isn't 
clearing any cells during the benchmark. (Previously I used blkdiscard 
but then realized this would only 'mark' the cells as unused so it might 
do the actual erasing in the background)
I tested this both with a 4.4.0 and 4.8.4 Linux kernel. Another 
machines (different hardware) has the same results. All have a SATA III 
interface.

Dmesg:
[    4.741663] ata2.00: ATA-9: Samsung SSD 850 EVO 4TB, EMT02B6Q, max 
UDMA/133
[    4.752974] ata1.00: ATA-9: Samsung SSD 850 EVO 4TB, EMT02B6Q, max 
UDMA/133

# cat /sys/block/sda/device/queue_depth
31

If you need anything else let me know. Any help is welcomed.

Regards,

Bram

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Write performance 50% compared to Windows
@ 2016-11-01 13:55 Bram Matthys
  0 siblings, 0 replies; 6+ messages in thread
From: Bram Matthys @ 2016-11-01 13:55 UTC (permalink / raw)
  To: linux-ide

Hi Daniel,

Daniel Fraga schreef op 2016-11-01 14:03:
> On Tue, 01 Nov 2016 11:37:42 +0100
> Bram Matthys <syzop@vulnscan.org> wrote:
>
>> I have a Samsung SSD 850 EVO 4TB and under Linux I'm only getting
>> ~240MB/s write speed. On Windows it's 490MB/s (yes, without cache).
>> The read speed is the same on both Linux and Windows, though. Both 
>> are
>> 512MB/s.
>
> 	Just curious: are you using the "deadline" scheduler? What file
> system? Ext4?

Yes, the deadline scheduler.

On Linux I'm writing directly to /dev/sda, no file system.

Regards,

Bram


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-11-03 14:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-01 10:37 Write performance 50% compared to Windows Bram Matthys
2016-11-01 13:03 ` Dâniel Fraga
2016-11-02 15:07 ` Bram Matthys
     [not found] ` <CAJVOszDeJSXgdMuA-f6=JDSL78SBSz+-uDNp2PX=VTjeNyz4Bg@mail.gmail.com>
2016-11-03  7:46   ` Bram Matthys
2016-11-03 14:43     ` Bram Matthys
  -- strict thread matches above, loose matches on Subject: below --
2016-11-01 13:55 Bram Matthys

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).