linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
@ 2009-04-04 18:56 Vladislav Bolkhovitin
  2009-04-04 19:12 ` [Scst-devel] " Tomasz Chmielewski
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Vladislav Bolkhovitin @ 2009-04-04 18:56 UTC (permalink / raw)
  To: linux-kernel, linux-scsi
  Cc: scst-devel, iscsitarget-devel, stgt, James Bottomley

Hi All,

I set up http://scst.sourceforge.net/comparison.html page, which 
compares features of existing SCSI target subsystems for Linux. The 
comparison includes SCST, STGT, IET and LIO.

I might be not fully correct somewhere, so, if you don't agree with me 
about some item(s) in the comparison table, please let me know and I 
will fix that.

Vlad

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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-04 18:56 [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO) Vladislav Bolkhovitin
@ 2009-04-04 19:12 ` Tomasz Chmielewski
  2009-04-04 19:21   ` Vladislav Bolkhovitin
  2009-04-05 11:29   ` Bart Van Assche
       [not found] ` <c9a3e4540904052019o3c89128eq52d9046fef7e2725@mail.gmail.com>
       [not found] ` <c9a3e4540904060319l3c885641k1217fba468f1fcf8@mail.gmail.com>
  2 siblings, 2 replies; 18+ messages in thread
From: Tomasz Chmielewski @ 2009-04-04 19:12 UTC (permalink / raw)
  To: Vladislav Bolkhovitin
  Cc: linux-kernel, linux-scsi, iscsitarget-devel, James Bottomley,
	scst-devel, stgt

Vladislav Bolkhovitin schrieb:
> Hi All,
> 
> I set up http://scst.sourceforge.net/comparison.html page, which 
> compares features of existing SCSI target subsystems for Linux. The 
> comparison includes SCST, STGT, IET and LIO.
> 
> I might be not fully correct somewhere, so, if you don't agree with me 
> about some item(s) in the comparison table, please let me know and I 
> will fix that.

Performance is a bit debatable.


I made some simple SCST and STGT tests last week, there were some where 
SCST won, there were some where STGT won.

What was surprising to me, although STGT has a bigger CPU impact than 
SCST, STGT was faster when reading from an encrypted (dm-crypt) volume, 
on a system where the CPU is the bottleneck (it can't decrypt as fast as 
HDD can deliver data).

STGT was much slower when reading from a non-encrypted volume, when 
target had "blockdev --setra 16384 ..." for a given target.
On the other hand, STGT was faster than SCST with default blockdev 
readahead settings (256).

If anyone's interested, I can show results in a readable form on Monday 
(right now, I have only raw data which is pretty long and would be hard 
to compare).



-- 
Tomasz Chmielewski
http://wpkg.org

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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-04 19:12 ` [Scst-devel] " Tomasz Chmielewski
@ 2009-04-04 19:21   ` Vladislav Bolkhovitin
  2009-04-06  9:44     ` Tomasz Chmielewski
  2009-04-05 11:29   ` Bart Van Assche
  1 sibling, 1 reply; 18+ messages in thread
From: Vladislav Bolkhovitin @ 2009-04-04 19:21 UTC (permalink / raw)
  To: Tomasz Chmielewski
  Cc: linux-scsi, iscsitarget-devel, linux-kernel, stgt,
	James Bottomley, scst-devel

Tomasz Chmielewski, on 04/04/2009 11:12 PM wrote:
> Vladislav Bolkhovitin schrieb:
>> Hi All,
>>
>> I set up http://scst.sourceforge.net/comparison.html page, which 
>> compares features of existing SCSI target subsystems for Linux. The 
>> comparison includes SCST, STGT, IET and LIO.
>>
>> I might be not fully correct somewhere, so, if you don't agree with me 
>> about some item(s) in the comparison table, please let me know and I 
>> will fix that.
> 
> Performance is a bit debatable.

The result "in average" was listed in the comparison. Of course, one 
target can be better somewhere, another one somewhere else. That a 
nature of storage: it's pretty hard to optimize for all at once.

BTW, if I remember correctly your logs, you didn't apply all the SCST 
kernel patches on your kernel. Then your results aren't much applicable 
to this comparison, because it assumes all SCST kernel patches applied.

> I made some simple SCST and STGT tests last week, there were some where 
> SCST won, there were some where STGT won.
> 
> What was surprising to me, although STGT has a bigger CPU impact than 
> SCST, STGT was faster when reading from an encrypted (dm-crypt) volume, 
> on a system where the CPU is the bottleneck (it can't decrypt as fast as 
> HDD can deliver data).
> 
> STGT was much slower when reading from a non-encrypted volume, when 
> target had "blockdev --setra 16384 ..." for a given target.
> On the other hand, STGT was faster than SCST with default blockdev 
> readahead settings (256).
> 
> If anyone's interested, I can show results in a readable form on Monday 
> (right now, I have only raw data which is pretty long and would be hard 
> to compare).
> 
> 
> 


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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between  different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-04 19:12 ` [Scst-devel] " Tomasz Chmielewski
  2009-04-04 19:21   ` Vladislav Bolkhovitin
@ 2009-04-05 11:29   ` Bart Van Assche
  2009-04-06 10:29     ` Tomasz Chmielewski
  1 sibling, 1 reply; 18+ messages in thread
From: Bart Van Assche @ 2009-04-05 11:29 UTC (permalink / raw)
  To: Tomasz Chmielewski
  Cc: Vladislav Bolkhovitin, linux-kernel, linux-scsi,
	iscsitarget-devel, James Bottomley, scst-devel, stgt

On Sat, Apr 4, 2009 at 9:12 PM, Tomasz Chmielewski <mangoo@wpkg.org> wrote:
> I made some simple SCST and STGT tests last week, there were some where SCST
> won, there were some where STGT won.

Hello Tomasz,

It would be great if you could publish the details of your setup and
the tests you have run, such that we are able to reproduce the tests
and analyze the results further.

Bart.

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

* Re: [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
       [not found] ` <c9a3e4540904052019o3c89128eq52d9046fef7e2725@mail.gmail.com>
@ 2009-04-06  7:32   ` Vladislav Bolkhovitin
       [not found]     ` <c9a3e4540904060057w75b5525an9c63486ed00ca9a5@mail.gmail.com>
  0 siblings, 1 reply; 18+ messages in thread
From: Vladislav Bolkhovitin @ 2009-04-06  7:32 UTC (permalink / raw)
  To: ronnie sahlberg
  Cc: linux-kernel, linux-scsi, scst-devel, iscsitarget-devel, stgt,
	James Bottomley

ronnie sahlberg, on 04/06/2009 07:19 AM wrote:
> Maybe you should also show which device types each implementation can 
> emulate.

OK. Seems I should add than STGT has additional emulation for SMC and 
SSC devices as "Under development", correct?

> On Sun, Apr 5, 2009 at 5:56 AM, Vladislav Bolkhovitin <vst@vlnb.net 
> <mailto:vst@vlnb.net>> wrote:
> 
>     Hi All,
> 
>     I set up http://scst.sourceforge.net/comparison.html page, which
>     compares features of existing SCSI target subsystems for Linux. The
>     comparison includes SCST, STGT, IET and LIO.
> 
>     I might be not fully correct somewhere, so, if you don't agree with
>     me about some item(s) in the comparison table, please let me know
>     and I will fix that.
> 
>     Vlad
>     --
>     To unsubscribe from this list: send the line "unsubscribe stgt" in
>     the body of a message to majordomo@vger.kernel.org
>     <mailto:majordomo@vger.kernel.org>
>     More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 


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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-04 19:21   ` Vladislav Bolkhovitin
@ 2009-04-06  9:44     ` Tomasz Chmielewski
  0 siblings, 0 replies; 18+ messages in thread
From: Tomasz Chmielewski @ 2009-04-06  9:44 UTC (permalink / raw)
  To: Vladislav Bolkhovitin
  Cc: linux-scsi, iscsitarget-devel, linux-kernel, stgt,
	James Bottomley, scst-devel

Vladislav Bolkhovitin schrieb:
> Tomasz Chmielewski, on 04/04/2009 11:12 PM wrote:
>> Vladislav Bolkhovitin schrieb:
>>> Hi All,
>>>
>>> I set up http://scst.sourceforge.net/comparison.html page, which 
>>> compares features of existing SCSI target subsystems for Linux. The 
>>> comparison includes SCST, STGT, IET and LIO.
>>>
>>> I might be not fully correct somewhere, so, if you don't agree with 
>>> me about some item(s) in the comparison table, please let me know and 
>>> I will fix that.
>>
>> Performance is a bit debatable.
> 
> The result "in average" was listed in the comparison. Of course, one 
> target can be better somewhere, another one somewhere else. That a 
> nature of storage: it's pretty hard to optimize for all at once.

True.


> BTW, if I remember correctly your logs, you didn't apply all the SCST 
> kernel patches on your kernel. Then your results aren't much applicable 
> to this comparison, because it assumes all SCST kernel patches applied.

I made three tests:
- STGT (with standard Debian Lenny kernel)
- SCST with default build options (i.e. no "make debug2perf"), no kernel 
patches (standard Debian Lenny kernel)
- SCST + "make debug2perf", with kernel patches (Debian Lenny .config + 
SCST patches and proper option enabled)

I'll post the results shortly.


-- 
Tomasz Chmielewski
http://wpkg.org


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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-05 11:29   ` Bart Van Assche
@ 2009-04-06 10:29     ` Tomasz Chmielewski
  2009-04-06 10:40       ` Tomasz Chmielewski
                         ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Tomasz Chmielewski @ 2009-04-06 10:29 UTC (permalink / raw)
  To: Bart Van Assche
  Cc: Vladislav Bolkhovitin, linux-kernel, linux-scsi,
	iscsitarget-devel, James Bottomley, scst-devel, stgt

Bart Van Assche schrieb:

> Hello Tomasz,
> 
> It would be great if you could publish the details of your setup and
> the tests you have run, such that we are able to reproduce the tests
> and analyze the results further.

Here it is.

The target is running Debian Lenny 64bit userspace on an Intel Celeron 2.93GHz CPU, 2 GB RAM.

Initiator is running Debian Etch 64 bit userspace, open-iscsi 2.0-869, Intel Xeon 3050/2.13GHz, 8 GB RAM.


Each test was repeated 6 times, "sync" was made and caches were dropped on both sides before each test was started.

dd parameters were like below, so 6.6 GB of data was read each time:

dd if=/dev/sdag of=/dev/null bs=64k count=100000


Data was read from two block devices:
- /dev/md0, which is RAID-1 on two ST31500341AS 1.5 TB drives
- encrypted dm-crypt device which is on top of /dev/md0

Encrypted device was created with the following additional options passed to cryptsetup
(it provides the most performance on systems where CPU is a bottleneck, but with decreased
security when compared to default options):

-c aes-ecb-plain -s 128


Generally, CPU on the target was a bottleneck, so I also tested the load on target.


md0, crypt columns - averages from dd
us, sy, id, wa - averages from vmstat


1. Disk speeds on the target

Raw performance: 102.17 MB/s
Raw performance (encrypted):  50.21 MB/s


2. Read-ahead on the initiator: 256 (default); md0, crypt - MB/s

                           md0   us  sy  id  wa  | crypt   us  sy  id  wa  
STGT                      50.63   4% 45% 18% 33% | 32.52    3% 62% 16% 19%
SCST (debug + no patches) 43.75   0% 26% 30% 44% | 42.05    0% 84%  1% 15%
SCST (fullperf + patches) 45.18   0% 25% 33% 42% | 44.12    0% 81%  2% 17%


3. Read-ahead on the initiator: 16384; md0, crypt - MB/s

                           md0   us  sy  id  wa  | crypt   us  sy  id  wa  
STGT                      56.43   3% 55%  2% 40% | 46.90    3% 90%  3%  4%
SCST (debug + no patches) 73.85   0% 58%  1% 41% | 42.70    0% 85%  0% 15%
SCST (fullperf + patches) 76.27   0% 63%  1% 36% | 42.52    0% 85%  0% 15%



-- 
Tomasz Chmielewski
http://wpkg.org

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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-06 10:29     ` Tomasz Chmielewski
@ 2009-04-06 10:40       ` Tomasz Chmielewski
  2009-04-06 16:55       ` Vladislav Bolkhovitin
  2009-04-06 19:01       ` Bart Van Assche
  2 siblings, 0 replies; 18+ messages in thread
From: Tomasz Chmielewski @ 2009-04-06 10:40 UTC (permalink / raw)
  To: Bart Van Assche
  Cc: Vladislav Bolkhovitin, linux-kernel, linux-scsi,
	iscsitarget-devel, James Bottomley, scst-devel, stgt

Tomasz Chmielewski schrieb:
> Bart Van Assche schrieb:
> 
>> Hello Tomasz,
>>
>> It would be great if you could publish the details of your setup and
>> the tests you have run, such that we are able to reproduce the tests
>> and analyze the results further.
> 
> Here it is.

(...)

> 2. Read-ahead on the initiator: 256 (default); md0, crypt - MB/s
> 
>                           md0   us  sy  id  wa  | crypt   us  sy  id  
> wa  STGT                      50.63   4% 45% 18% 33% | 32.52    3% 62% 

If you see these results not wrapped properly, it looks better here:

http://marc.info/?l=linux-kernel&m=123901387318274&w=4


-- 
Tomasz Chmielewski
http://wpkg.org

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

* Re: [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
       [not found]     ` <c9a3e4540904060057w75b5525an9c63486ed00ca9a5@mail.gmail.com>
@ 2009-04-06 12:21       ` Vladislav Bolkhovitin
  0 siblings, 0 replies; 18+ messages in thread
From: Vladislav Bolkhovitin @ 2009-04-06 12:21 UTC (permalink / raw)
  To: ronnie sahlberg
  Cc: linux-kernel, linux-scsi, scst-devel, iscsitarget-devel, stgt,
	James Bottomley

ronnie sahlberg, on 04/06/2009 11:57 AM wrote:
> STGT supports  MMC (read and write) and SMC which makes it possible to 
> build a dvd burning jukebox.
> It also supports SSC and SMC which makes it possible to build a virtual 
> tape library.
> 
> MMC and SMC are fairly mature.
> SSC and SMC are reasonably mature and some people have succeeded in 
> running some network backup applications with robot control successfully.
> 
> 
> that brings up a point for STGT, we should really set up some "software 
> combatibility matrix" for device types and application software.
> 
> 
> For MMC I know that Nero and DVDdecrypted on windows works and  
> dcdrecord under linux works.

So, I'll add for STGT:

  - "Emulation of virtual tape and media changer"	"Experimental"

  - "Possibility to write to emulated CD-R devices" 	"+"

OK?

Thanks,
Vlad

> On Mon, Apr 6, 2009 at 6:32 PM, Vladislav Bolkhovitin <vst@vlnb.net 
> <mailto:vst@vlnb.net>> wrote:
> 
>     ronnie sahlberg, on 04/06/2009 07:19 AM wrote:
> 
>         Maybe you should also show which device types each
>         implementation can emulate.
> 
> 
>     OK. Seems I should add than STGT has additional emulation for SMC
>     and SSC devices as "Under development", correct?
> 
>         On Sun, Apr 5, 2009 at 5:56 AM, Vladislav Bolkhovitin
>         <vst@vlnb.net <mailto:vst@vlnb.net> <mailto:vst@vlnb.net
>         <mailto:vst@vlnb.net>>> wrote:
> 
>            Hi All,
> 
>            I set up http://scst.sourceforge.net/comparison.html page, which
>            compares features of existing SCSI target subsystems for
>         Linux. The
>            comparison includes SCST, STGT, IET and LIO.
> 
>            I might be not fully correct somewhere, so, if you don't
>         agree with
>            me about some item(s) in the comparison table, please let me know
>            and I will fix that.
> 
>            Vlad
>            --
>            To unsubscribe from this list: send the line "unsubscribe
>         stgt" in
>            the body of a message to majordomo@vger.kernel.org
>         <mailto:majordomo@vger.kernel.org>
>            <mailto:majordomo@vger.kernel.org
>         <mailto:majordomo@vger.kernel.org>>
> 
>            More majordomo info at
>          http://vger.kernel.org/majordomo-info.html
> 
> 
> 
> 


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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-06 10:29     ` Tomasz Chmielewski
  2009-04-06 10:40       ` Tomasz Chmielewski
@ 2009-04-06 16:55       ` Vladislav Bolkhovitin
  2009-04-06 18:27         ` Tomasz Chmielewski
  2009-04-06 19:01       ` Bart Van Assche
  2 siblings, 1 reply; 18+ messages in thread
From: Vladislav Bolkhovitin @ 2009-04-06 16:55 UTC (permalink / raw)
  To: Tomasz Chmielewski
  Cc: Bart Van Assche, linux-kernel, linux-scsi, iscsitarget-devel,
	James Bottomley, scst-devel, stgt

Tomasz Chmielewski, on 04/06/2009 02:29 PM wrote:
> Bart Van Assche schrieb:
> 
>> Hello Tomasz,
>>
>> It would be great if you could publish the details of your setup and
>> the tests you have run, such that we are able to reproduce the tests
>> and analyze the results further.
> 
> Here it is.
> 
> The target is running Debian Lenny 64bit userspace on an Intel Celeron 2.93GHz CPU, 2 GB RAM.
> 
> Initiator is running Debian Etch 64 bit userspace, open-iscsi 2.0-869, Intel Xeon 3050/2.13GHz, 8 GB RAM.
> 
> 
> Each test was repeated 6 times, "sync" was made and caches were dropped on both sides before each test was started.
> 
> dd parameters were like below, so 6.6 GB of data was read each time:
> 
> dd if=/dev/sdag of=/dev/null bs=64k count=100000
> 
> 
> Data was read from two block devices:
> - /dev/md0, which is RAID-1 on two ST31500341AS 1.5 TB drives
> - encrypted dm-crypt device which is on top of /dev/md0
> 
> Encrypted device was created with the following additional options passed to cryptsetup
> (it provides the most performance on systems where CPU is a bottleneck, but with decreased
> security when compared to default options):
> 
> -c aes-ecb-plain -s 128
> 
> 
> Generally, CPU on the target was a bottleneck, so I also tested the load on target.
> 
> 
> md0, crypt columns - averages from dd
> us, sy, id, wa - averages from vmstat
> 
> 
> 1. Disk speeds on the target
> 
> Raw performance: 102.17 MB/s
> Raw performance (encrypted):  50.21 MB/s
> 
> 
> 2. Read-ahead on the initiator: 256 (default); md0, crypt - MB/s
> 
>                            md0   us  sy  id  wa  | crypt   us  sy  id  wa  
> STGT                      50.63   4% 45% 18% 33% | 32.52    3% 62% 16% 19%
> SCST (debug + no patches) 43.75   0% 26% 30% 44% | 42.05    0% 84%  1% 15%
> SCST (fullperf + patches) 45.18   0% 25% 33% 42% | 44.12    0% 81%  2% 17%
> 
> 
> 3. Read-ahead on the initiator: 16384; md0, crypt - MB/s
> 
>                            md0   us  sy  id  wa  | crypt   us  sy  id  wa  
> STGT                      56.43   3% 55%  2% 40% | 46.90    3% 90%  3%  4%
> SCST (debug + no patches) 73.85   0% 58%  1% 41% | 42.70    0% 85%  0% 15%
> SCST (fullperf + patches) 76.27   0% 63%  1% 36% | 42.52    0% 85%  0% 15%

Good! You proved that:

1. SCST is capable to work much better than STGT: 35% for md and 37% for 
crypt considering maximum values.

2. Default read-ahead size isn't appropriate for remote data access 
cases and should be increased. I slowly have been discussing it in past 
few months with Wu Fengguang, the read-ahead maintainer.

Which IO scheduler on the target did you use? I guess, deadline? If so, 
you should try with CFQ as well.

Thanks,
Vlad


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

* Re: [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
       [not found] ` <c9a3e4540904060319l3c885641k1217fba468f1fcf8@mail.gmail.com>
@ 2009-04-06 17:57   ` Vladislav Bolkhovitin
  0 siblings, 0 replies; 18+ messages in thread
From: Vladislav Bolkhovitin @ 2009-04-06 17:57 UTC (permalink / raw)
  To: ronnie sahlberg
  Cc: linux-kernel, linux-scsi, scst-devel, iscsitarget-devel, stgt,
	James Bottomley

ronnie sahlberg, on 04/06/2009 02:19 PM wrote:
> Why is AEN so important that it is worth 4 entries? SCST is the only 
> target where this is supported.

About the related functionality see http://lkml.org/lkml/2009/3/26/290

> Has AEN not been replaced with sense codes nowadays anyway?

AEN, particularly, is one of the ways to deliver those sense codes

> Support for Asynchronous Event Notifications (AEN) 	+ 	- 	- 	-

This is about the AEN infrastructure in the target's core

> AEN for devices added/removed 	+ 	- 	- 	-
> AEN for devices resized 	+ 	- 	- 	-

Those two are about ability to generate particular events

> 
> 
> 
> Support for Asynchronous Event Notifications (AEN) 	+ 	- 	- 	-

This is about support for AENs delivery by target driver.

> 
> 
> 
> 
> 
> On Sun, Apr 5, 2009 at 5:56 AM, Vladislav Bolkhovitin <vst@vlnb.net 
> <mailto:vst@vlnb.net>> wrote:
> 
>     Hi All,
> 
>     I set up http://scst.sourceforge.net/comparison.html page, which
>     compares features of existing SCSI target subsystems for Linux. The
>     comparison includes SCST, STGT, IET and LIO.
> 
>     I might be not fully correct somewhere, so, if you don't agree with
>     me about some item(s) in the comparison table, please let me know
>     and I will fix that.
> 
>     Vlad
>     --
>     To unsubscribe from this list: send the line "unsubscribe stgt" in
>     the body of a message to majordomo@vger.kernel.org
>     <mailto:majordomo@vger.kernel.org>
>     More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 


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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-06 16:55       ` Vladislav Bolkhovitin
@ 2009-04-06 18:27         ` Tomasz Chmielewski
  2009-04-07 20:27           ` Bart Van Assche
  2009-04-09 18:45           ` Vladislav Bolkhovitin
  0 siblings, 2 replies; 18+ messages in thread
From: Tomasz Chmielewski @ 2009-04-06 18:27 UTC (permalink / raw)
  To: Vladislav Bolkhovitin
  Cc: Bart Van Assche, linux-kernel, linux-scsi, iscsitarget-devel,
	James Bottomley, scst-devel, stgt

Vladislav Bolkhovitin schrieb:

>> Encrypted device was created with the following additional options 
>> passed to cryptsetup
>> (it provides the most performance on systems where CPU is a 
>> bottleneck, but with decreased
>> security when compared to default options):
>>
>> -c aes-ecb-plain -s 128
>>
>>
>> Generally, CPU on the target was a bottleneck, so I also tested the 
>> load on target.
>>
>>
>> md0, crypt columns - averages from dd
>> us, sy, id, wa - averages from vmstat
>>
>>
>> 1. Disk speeds on the target
>>
>> Raw performance: 102.17 MB/s
>> Raw performance (encrypted):  50.21 MB/s
>>
>>
>> 2. Read-ahead on the initiator: 256 (default); md0, crypt - MB/s
>>
>>                            md0   us  sy  id  wa  | crypt   us  sy  id  
>> wa  STGT                      50.63   4% 45% 18% 33% | 32.52    3% 62% 
>> 16% 19%
>> SCST (debug + no patches) 43.75   0% 26% 30% 44% | 42.05    0% 84%  1% 
>> 15%
>> SCST (fullperf + patches) 45.18   0% 25% 33% 42% | 44.12    0% 81%  2% 
>> 17%
>>
>>
>> 3. Read-ahead on the initiator: 16384; md0, crypt - MB/s
>>
>>                            md0   us  sy  id  wa  | crypt   us  sy  id  
>> wa  STGT                      56.43   3% 55%  2% 40% | 46.90    3% 
>> 90%  3%  4%
>> SCST (debug + no patches) 73.85   0% 58%  1% 41% | 42.70    0% 85%  0% 
>> 15%
>> SCST (fullperf + patches) 76.27   0% 63%  1% 36% | 42.52    0% 85%  0% 
>> 15%
> 
> Good! You proved that:
> 
> 1. SCST is capable to work much better than STGT: 35% for md and 37% for 
> crypt considering maximum values.
> 
> 2. Default read-ahead size isn't appropriate for remote data access 
> cases and should be increased. I slowly have been discussing it in past 
> few months with Wu Fengguang, the read-ahead maintainer.

Note that crypt performance for SCST was worse than that of STGT for 
large read-ahead values.
Also, SCST performance on crypt device was more or less the same with 
256 and 16384 readahead values. I wonder why performance didn't increase 
here while increasing readahead values? Could anyone recheck if it's the 
same on some other system?


> Which IO scheduler on the target did you use? I guess, deadline? If so, 
> you should try with CFQ as well.

I used CFQ.


-- 
Tomasz Chmielewski
http://wpkg.org

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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between  different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-06 10:29     ` Tomasz Chmielewski
  2009-04-06 10:40       ` Tomasz Chmielewski
  2009-04-06 16:55       ` Vladislav Bolkhovitin
@ 2009-04-06 19:01       ` Bart Van Assche
  2009-04-06 19:05         ` Tomasz Chmielewski
  2 siblings, 1 reply; 18+ messages in thread
From: Bart Van Assche @ 2009-04-06 19:01 UTC (permalink / raw)
  To: Tomasz Chmielewski
  Cc: Vladislav Bolkhovitin, linux-kernel, linux-scsi,
	iscsitarget-devel, James Bottomley, scst-devel, stgt

On Mon, Apr 6, 2009 at 12:29 PM, Tomasz Chmielewski <mangoo@wpkg.org> wrote:
> The target is running Debian Lenny 64bit userspace on an Intel Celeron
> 2.93GHz CPU, 2 GB RAM.
>
> Initiator is running Debian Etch 64 bit userspace, open-iscsi 2.0-869, Intel
> Xeon 3050/2.13GHz, 8 GB RAM.
>
>
> Each test was repeated 6 times, "sync" was made and caches were dropped on
> both sides before each test was started.
>
> dd parameters were like below, so 6.6 GB of data was read each time:
>
> dd if=/dev/sdag of=/dev/null bs=64k count=100000
>
>
> Data was read from two block devices:
> - /dev/md0, which is RAID-1 on two ST31500341AS 1.5 TB drives
> - encrypted dm-crypt device which is on top of /dev/md0
>
> Encrypted device was created with the following additional options passed to
> cryptsetup
> (it provides the most performance on systems where CPU is a bottleneck, but
> with decreased
> security when compared to default options):
>
> -c aes-ecb-plain -s 128
>
>
> Generally, CPU on the target was a bottleneck, so I also tested the load on
> target.
>
>
> md0, crypt columns - averages from dd
> us, sy, id, wa - averages from vmstat
>
>
> 1. Disk speeds on the target
>
> Raw performance: 102.17 MB/s
> Raw performance (encrypted):  50.21 MB/s
>
>
> 2. Read-ahead on the initiator: 256 (default); md0, crypt - MB/s
>
>                          md0   us  sy  id  wa  | crypt   us  sy  id  wa
>  STGT                      50.63   4% 45% 18% 33% | 32.52    3% 62% 16% 19%
> SCST (debug + no patches) 43.75   0% 26% 30% 44% | 42.05    0% 84%  1% 15%
> SCST (fullperf + patches) 45.18   0% 25% 33% 42% | 44.12    0% 81%  2% 17%

Hello Tomasz,

How is it possible that for this test the read performance through
STGT (50.63 MB/s) was higher than the read performance on the target
(50.21 MB/s) ? Are you sure that all read buffers were flushed before
this test was started ?

Bart.

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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-06 19:01       ` Bart Van Assche
@ 2009-04-06 19:05         ` Tomasz Chmielewski
  0 siblings, 0 replies; 18+ messages in thread
From: Tomasz Chmielewski @ 2009-04-06 19:05 UTC (permalink / raw)
  To: Bart Van Assche
  Cc: Vladislav Bolkhovitin, linux-kernel, linux-scsi,
	iscsitarget-devel, James Bottomley, scst-devel, stgt

Bart Van Assche schrieb:
> On Mon, Apr 6, 2009 at 12:29 PM, Tomasz Chmielewski <mangoo@wpkg.org> wrote:
>> The target is running Debian Lenny 64bit userspace on an Intel Celeron
>> 2.93GHz CPU, 2 GB RAM.
>>
>> Initiator is running Debian Etch 64 bit userspace, open-iscsi 2.0-869, Intel
>> Xeon 3050/2.13GHz, 8 GB RAM.
>>
>>
>> Each test was repeated 6 times, "sync" was made and caches were dropped on
>> both sides before each test was started.
>>
>> dd parameters were like below, so 6.6 GB of data was read each time:
>>
>> dd if=/dev/sdag of=/dev/null bs=64k count=100000
>>
>>
>> Data was read from two block devices:
>> - /dev/md0, which is RAID-1 on two ST31500341AS 1.5 TB drives
>> - encrypted dm-crypt device which is on top of /dev/md0
>>
>> Encrypted device was created with the following additional options passed to
>> cryptsetup
>> (it provides the most performance on systems where CPU is a bottleneck, but
>> with decreased
>> security when compared to default options):
>>
>> -c aes-ecb-plain -s 128
>>
>>
>> Generally, CPU on the target was a bottleneck, so I also tested the load on
>> target.
>>
>>
>> md0, crypt columns - averages from dd
>> us, sy, id, wa - averages from vmstat
>>
>>
>> 1. Disk speeds on the target
>>
>> Raw performance: 102.17 MB/s
>> Raw performance (encrypted):  50.21 MB/s
>>
>>
>> 2. Read-ahead on the initiator: 256 (default); md0, crypt - MB/s
>>
>>                          md0   us  sy  id  wa  | crypt   us  sy  id  wa
>>  STGT                      50.63   4% 45% 18% 33% | 32.52    3% 62% 16% 19%
>> SCST (debug + no patches) 43.75   0% 26% 30% 44% | 42.05    0% 84%  1% 15%
>> SCST (fullperf + patches) 45.18   0% 25% 33% 42% | 44.12    0% 81%  2% 17%
> 
> Hello Tomasz,
> 
> How is it possible that for this test the read performance through
> STGT (50.63 MB/s) was higher than the read performance on the target
> (50.21 MB/s) ? Are you sure that all read buffers were flushed before
> this test was started ?

You're looking at wrong columns:

      md0     crypt
STGT 50.63   32.52
RAW  102.17  50.21

-- 
Tomasz Chmielewski
http://wpkg.org


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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between  different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-06 18:27         ` Tomasz Chmielewski
@ 2009-04-07 20:27           ` Bart Van Assche
  2009-04-09 18:45           ` Vladislav Bolkhovitin
  1 sibling, 0 replies; 18+ messages in thread
From: Bart Van Assche @ 2009-04-07 20:27 UTC (permalink / raw)
  To: Tomasz Chmielewski
  Cc: Vladislav Bolkhovitin, linux-kernel, linux-scsi,
	iscsitarget-devel, James Bottomley, scst-devel, stgt

On Mon, Apr 6, 2009 at 8:27 PM, Tomasz Chmielewski <mangoo@wpkg.org> wrote:
> Note that crypt performance for SCST was worse than that of STGT for large
> read-ahead values.
> Also, SCST performance on crypt device was more or less the same with 256
> and 16384 readahead values. I wonder why performance didn't increase here
> while increasing readahead values? Could anyone recheck if it's the same on
> some other system?

I have repeated the test for the non-encrypted case. Setup details:
* target: 2.6.29.1 kernel, 64-bit, Intel E8400 CPU @ 3 GHz, 4 GB RAM,
two ST3250410AS disks, with /dev/md3 set up in RAID-1 with a stripe
size of 32 KB, local reading speed of /dev/md3: 120 MB/s, I/O
scheduler: CFQ.
* initiator: 2.6.28.7 kernel, 64-bit, Intel E6750 CPU @ 2.66 GHz, 2 GB RAM.
* network: 1 Gbit/s Ethernet, two systems connected back to back via a
crossed cable.

Each test was repeated four times. Before each test the target caches
were dropped via the command "sync; echo 3 >
/proc/sys/vm/drop_caches". The following test has been run on the
initiator:

sync; echo 3 > /proc/sys/vm/drop_caches; dd if=/dev/sdb of=/dev/null
bs=64K count=100000

Results with read-ahead set to 256 on the initiator, in MB/s:

STGT 56.7 +/- 0.3
SCST 56.9 +/- 1.1

Results with read-ahead set to 16384 on the initiator, in MB/s:

STGT 59.9 +/- 0.1
SCST 59.5 +/- 0.0

Or: slightly better results with the larger read-ahead value, and a
performance difference well below 1% between the STGT and SCST
performance results.

Bart.

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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-06 18:27         ` Tomasz Chmielewski
  2009-04-07 20:27           ` Bart Van Assche
@ 2009-04-09 18:45           ` Vladislav Bolkhovitin
  2009-04-14 11:07             ` Tomasz Chmielewski
  1 sibling, 1 reply; 18+ messages in thread
From: Vladislav Bolkhovitin @ 2009-04-09 18:45 UTC (permalink / raw)
  To: Tomasz Chmielewski
  Cc: Bart Van Assche, linux-kernel, linux-scsi, iscsitarget-devel,
	James Bottomley, scst-devel, stgt



Tomasz Chmielewski, on 04/06/2009 10:27 PM wrote:
> Vladislav Bolkhovitin schrieb:
> 
>>> Encrypted device was created with the following additional options 
>>> passed to cryptsetup
>>> (it provides the most performance on systems where CPU is a 
>>> bottleneck, but with decreased
>>> security when compared to default options):
>>>
>>> -c aes-ecb-plain -s 128
>>>
>>>
>>> Generally, CPU on the target was a bottleneck, so I also tested the 
>>> load on target.
>>>
>>>
>>> md0, crypt columns - averages from dd
>>> us, sy, id, wa - averages from vmstat
>>>
>>>
>>> 1. Disk speeds on the target
>>>
>>> Raw performance: 102.17 MB/s
>>> Raw performance (encrypted):  50.21 MB/s
>>>
>>>
>>> 2. Read-ahead on the initiator: 256 (default); md0, crypt - MB/s
>>>
>>>                            md0   us  sy  id  wa  | crypt   us  sy  id  
>>> wa  STGT                      50.63   4% 45% 18% 33% | 32.52    3% 62% 
>>> 16% 19%
>>> SCST (debug + no patches) 43.75   0% 26% 30% 44% | 42.05    0% 84%  1% 
>>> 15%
>>> SCST (fullperf + patches) 45.18   0% 25% 33% 42% | 44.12    0% 81%  2% 
>>> 17%
>>>
>>>
>>> 3. Read-ahead on the initiator: 16384; md0, crypt - MB/s
>>>
>>>                            md0   us  sy  id  wa  | crypt   us  sy  id  
>>> wa  STGT                      56.43   3% 55%  2% 40% | 46.90    3% 
>>> 90%  3%  4%
>>> SCST (debug + no patches) 73.85   0% 58%  1% 41% | 42.70    0% 85%  0% 
>>> 15%
>>> SCST (fullperf + patches) 76.27   0% 63%  1% 36% | 42.52    0% 85%  0% 
>>> 15%
>> Good! You proved that:
>>
>> 1. SCST is capable to work much better than STGT: 35% for md and 37% for 
>> crypt considering maximum values.
>>
>> 2. Default read-ahead size isn't appropriate for remote data access 
>> cases and should be increased. I slowly have been discussing it in past 
>> few months with Wu Fengguang, the read-ahead maintainer.
> 
> Note that crypt performance for SCST was worse than that of STGT for 
> large read-ahead values.
> Also, SCST performance on crypt device was more or less the same with 
> 256 and 16384 readahead values. I wonder why performance didn't increase 
> here while increasing readahead values?

This is a very big topic. In short, increasing RA alone isn't 
sufficient, because, while the bigger value transferred over the uplink, 
the backend storage can get rotated too far, so, to continue reading 
data from it, there will be a need to wait for that rotation completed.

Try together with the RA increase also decrease max_sectors_kb to 128K 
or even to 64K.

Also, the above actions done on the target can also be quite positive.

> Could anyone recheck if it's the same on some other system?
> 
>> Which IO scheduler on the target did you use? I guess, deadline? If so, 
>> you should try with CFQ as well.
> 
> I used CFQ.

You didn't apply io_context-XXX.patch, correct? With it you should see a 
  noticeable increase, like in http://scst.sourceforge.net/vl_res.txt.

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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-09 18:45           ` Vladislav Bolkhovitin
@ 2009-04-14 11:07             ` Tomasz Chmielewski
  2009-04-14 18:10               ` Vladislav Bolkhovitin
  0 siblings, 1 reply; 18+ messages in thread
From: Tomasz Chmielewski @ 2009-04-14 11:07 UTC (permalink / raw)
  To: Vladislav Bolkhovitin
  Cc: Bart Van Assche, linux-kernel, linux-scsi, iscsitarget-devel,
	James Bottomley, scst-devel, stgt

Vladislav Bolkhovitin schrieb:

>> Could anyone recheck if it's the same on some other system?
>>
>>> Which IO scheduler on the target did you use? I guess, deadline? If 
>>> so, you should try with CFQ as well.
>>
>> I used CFQ.
> 
> You didn't apply io_context-XXX.patch, correct? With it you should see a 
>  noticeable increase, like in http://scst.sourceforge.net/vl_res.txt.

I didn't apply this one.

I used 2.6.26.x kernel and io_context-XXX.patch was for 2.6.27, 2.6.28 
and 2.6.29 only; 2.6.27 fails to apply to 2.6.26.8 kernel (perhaps in a 
trivial way, I didn't check).


-- 
Tomasz Chmielewski
http://wpkg.org

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

* Re: [Scst-devel] [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO)
  2009-04-14 11:07             ` Tomasz Chmielewski
@ 2009-04-14 18:10               ` Vladislav Bolkhovitin
  0 siblings, 0 replies; 18+ messages in thread
From: Vladislav Bolkhovitin @ 2009-04-14 18:10 UTC (permalink / raw)
  To: Tomasz Chmielewski
  Cc: Bart Van Assche, linux-kernel, linux-scsi, James Bottomley,
	scst-devel, stgt


Tomasz Chmielewski, on 04/14/2009 03:07 PM wrote:
> Vladislav Bolkhovitin schrieb:
> 
>>> Could anyone recheck if it's the same on some other system?
>>>
>>>> Which IO scheduler on the target did you use? I guess, deadline? If 
>>>> so, you should try with CFQ as well.
>>> I used CFQ.
>> You didn't apply io_context-XXX.patch, correct? With it you should see a 
>>  noticeable increase, like in http://scst.sourceforge.net/vl_res.txt.
> 
> I didn't apply this one.
> 
> I used 2.6.26.x kernel and io_context-XXX.patch was for 2.6.27, 2.6.28 
> and 2.6.29 only; 2.6.27 fails to apply to 2.6.26.8 kernel (perhaps in a 
> trivial way, I didn't check).

Yes, io_context patch for 2.6.26.x kernels doesn't exist, because it 
isn't clear if it has the necessary functionality.

But it's worth for you to upgrade to 2.6.27.x. Have you seen 
http://scst.sourceforge.net/vl_res.txt?

Vlad

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

end of thread, other threads:[~2009-04-14 18:10 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-04 18:56 [ANNOUNCE]: Comparison of features sets between different SCSI targets (SCST, STGT, IET, LIO) Vladislav Bolkhovitin
2009-04-04 19:12 ` [Scst-devel] " Tomasz Chmielewski
2009-04-04 19:21   ` Vladislav Bolkhovitin
2009-04-06  9:44     ` Tomasz Chmielewski
2009-04-05 11:29   ` Bart Van Assche
2009-04-06 10:29     ` Tomasz Chmielewski
2009-04-06 10:40       ` Tomasz Chmielewski
2009-04-06 16:55       ` Vladislav Bolkhovitin
2009-04-06 18:27         ` Tomasz Chmielewski
2009-04-07 20:27           ` Bart Van Assche
2009-04-09 18:45           ` Vladislav Bolkhovitin
2009-04-14 11:07             ` Tomasz Chmielewski
2009-04-14 18:10               ` Vladislav Bolkhovitin
2009-04-06 19:01       ` Bart Van Assche
2009-04-06 19:05         ` Tomasz Chmielewski
     [not found] ` <c9a3e4540904052019o3c89128eq52d9046fef7e2725@mail.gmail.com>
2009-04-06  7:32   ` Vladislav Bolkhovitin
     [not found]     ` <c9a3e4540904060057w75b5525an9c63486ed00ca9a5@mail.gmail.com>
2009-04-06 12:21       ` Vladislav Bolkhovitin
     [not found] ` <c9a3e4540904060319l3c885641k1217fba468f1fcf8@mail.gmail.com>
2009-04-06 17:57   ` Vladislav Bolkhovitin

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).