public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* LIO performance Issue
@ 2011-09-14 14:00 Abhilash  Sankar - ERS, HCL Tech
  2011-09-14 20:10 ` Nicholas A. Bellinger
  0 siblings, 1 reply; 4+ messages in thread
From: Abhilash  Sankar - ERS, HCL Tech @ 2011-09-14 14:00 UTC (permalink / raw)
  To: nab@linux-iscsi.org
  Cc: linux-scsi@vger.kernel.org,
	linux-iscsi-target-dev@googlegroups.com,
	Yuvarani C - ERS , HCLTech,
	Bagavathy Kumar Mahendran - ERS, HCL Tech


Hi all,

My name is Abhilash, I am new to this community, I am trying to do a performance study of LIO-iSCSI and SCST using robocopy (I/O Tool).
I have successfully ported LIO to my Debian OS. Based on my initial analysis, SCST had shown a better write performance than LIO.

Read performance seems to be almost similar for both the stack. But write performance for file based LIO-iSCSI has degraded more than 50%
while compared to SCST stack in my setup.

I am using LIO 4.0, file based IO and Windows 7 initiator.

It would be much helpful if anyone could give me some suggestion to improve the LIO write performance.

Regards,
Abhilash


::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

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

* Re: LIO performance Issue
  2011-09-14 14:00 LIO performance Issue Abhilash  Sankar - ERS, HCL Tech
@ 2011-09-14 20:10 ` Nicholas A. Bellinger
  2011-09-15 19:47   ` Ravi Shankar
  0 siblings, 1 reply; 4+ messages in thread
From: Nicholas A. Bellinger @ 2011-09-14 20:10 UTC (permalink / raw)
  To: Abhilash  Sankar - ERS, HCL Tech
  Cc: linux-scsi@vger.kernel.org,
	linux-iscsi-target-dev@googlegroups.com,
	Yuvarani C - ERS , HCLTech,
	Bagavathy Kumar Mahendran - ERS, HCL Tech, target-devel

On Wed, 2011-09-14 at 19:30 +0530, Abhilash Sankar - ERS, HCL Tech
wrote:
> Hi all,
> 
> My name is Abhilash, I am new to this community, I am trying to do a performance study of LIO-iSCSI and SCST using robocopy (I/O Tool).
> I have successfully ported LIO to my Debian OS. Based on my initial analysis, SCST had shown a better write performance than LIO.
> 
> Read performance seems to be almost similar for both the stack. But write performance for file based LIO-iSCSI has degraded more than 50%
> while compared to SCST stack in my setup.
> 
> I am using LIO 4.0, file based IO and Windows 7 initiator.
> 
> It would be much helpful if anyone could give me some suggestion to improve the LIO write performance.
> 

Hi Abhilash,

By default target_core_file.c is using O_SYNC to ensure that WRITEs are
written directly to disk before acknowledging back to the SCSI client.
This will have a considerable effect on FILEIO WRITE performance, but is
done by default to ensure proper data integrity in the face of target
power loss.

You may want to double check the filp_open() flags with SCST to ensure
that you are comparing 'apples to apples' here.  Optionally you can try
disabling O_SYNC with target_core_file.c via rtslib with the class
FileIOStorageObject:_set_buffered_mode() mentioned here:

http://www.risingtidesystems.com/git/?p=rtslib.git;a=blob;f=rtslib/tcm.py;h=4da49b0f4a4aea9a1eebed23d457181085a2d03d;hb=HEAD#l975

--nab


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

* Re: LIO performance Issue
  2011-09-14 20:10 ` Nicholas A. Bellinger
@ 2011-09-15 19:47   ` Ravi Shankar
  2011-09-16 13:51     ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Ravi Shankar @ 2011-09-15 19:47 UTC (permalink / raw)
  To: Nicholas A. Bellinger
  Cc: Abhilash Sankar - ERS, HCL Tech, linux-scsi@vger.kernel.org,
	linux-iscsi-target-dev@googlegroups.com,
	Yuvarani C - ERS , HCLTech,
	Bagavathy Kumar Mahendran - ERS, HCL Tech, target-devel


>>     
>
> Hi Abhilash,
>
> By default target_core_file.c is using O_SYNC to ensure that WRITEs are
> written directly to disk before acknowledging back to the SCSI client.
> This will have a considerable effect on FILEIO WRITE performance, but is
> done by default to ensure proper data integrity in the face of target
> power loss.
>
> You may want to double check the filp_open() flags with SCST to ensure
> that you are comparing 'apples to apples' here.  Optionally you can try
> disabling O_SYNC with target_core_file.c via rtslib with the class
> FileIOStorageObject:_set_buffered_mode() mentioned here:
>
>   
Another area to consider improvement is how SCSI Target Data phase are 
handled.
The target framework should split SCSI data phases into multiple smaller 
IO to increase
performance. In other work instead of synchronous data phase it need to 
be asynchronous.

--ravi

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

* Re: LIO performance Issue
  2011-09-15 19:47   ` Ravi Shankar
@ 2011-09-16 13:51     ` Christoph Hellwig
  0 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2011-09-16 13:51 UTC (permalink / raw)
  To: Ravi Shankar
  Cc: Nicholas A. Bellinger, Abhilash Sankar - ERS, HCL Tech,
	linux-scsi@vger.kernel.org,
	linux-iscsi-target-dev@googlegroups.com,
	Yuvarani C - ERS , HCLTech,
	Bagavathy Kumar Mahendran - ERS, HCL Tech, target-devel

On Thu, Sep 15, 2011 at 12:47:26PM -0700, Ravi Shankar wrote:
> Another area to consider improvement is how SCSI Target Data phase
> are handled.
> The target framework should split SCSI data phases into multiple
> smaller IO to increase
> performance. In other work instead of synchronous data phase it need
> to be asynchronous.

There isn't any good in-kernel interface to do asynchronous file I/O.
If you use the iblock backend you'll get asynchronous behaviour.


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

end of thread, other threads:[~2011-09-16 13:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-14 14:00 LIO performance Issue Abhilash  Sankar - ERS, HCL Tech
2011-09-14 20:10 ` Nicholas A. Bellinger
2011-09-15 19:47   ` Ravi Shankar
2011-09-16 13:51     ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox