SCST is a GPL licensed SCSI target software stack. The design goals of this software stack are high performance, high reliability, strict conformance to existing SCSI standards, being easy to extend and easy to use. SCST does not only support multiple SCSI protocols (iSCSI, FC, SRP, ...) but also supports multiple local storage interfaces (SCSI pass-through, block I/O and file I/O) and also storage drivers implemented in user-space via the scst_user driver.[1]
Stable release | 3.8
/ January 15, 2024 |
---|---|
Repository | github |
Written in | C |
Operating system | Linux |
Type | Block storage |
License | GNU General Public License |
Website | scst |
In order to reach maximum performance SCST has been implemented as a set of kernel drivers. SCST is often combined with RAID, data deduplication and/or high-availability cluster software to augment its functionality. The SCST software stack is the basis software of many SAN systems.[2] Several world records have been set with SAN systems based on SCST.[3][4][5][6]
SCST competes with LIO Target for the same purpose of providing a generic SCSI target module inside the Linux kernel.[7] For the narrower purpose providing a Linux iSCSI target, the older IET and STGT modules also enjoy industry support.[8]
Between 2013 and 2017 SCST was primarily maintained by SanDisk personnel, after Fusion-io acquired the start-up ID7 in 2013, a driving force behind SCST[9][10][11] and after SanDisk acquired Fusion-io in 2014.[12]
Architecture
editSCST consists of three groups of modules:
- The SCST core, a protocol-independent engine for processing SCSI commands.
- Target drivers which receive SCSI commands from a SCSI initiator, pass these SCSI to the SCST core and send back replies to the initiator.
- Storage drivers a.k.a. device handlers which interact with the storage medium. The supported local storage interfaces are SCSI, block device, file and scst_user. scst_user is an SCST-specific protocol that allows efficient implementation of storage drivers in user space.
Configuration of all these modules happens via a sysfs interface. Although direct configuration of SCST via its sysfs interface is convenient, the tool called scstadmin allows to control SCST via its sysfs interface and also to save and restore the SCST configuration.
The following design aspects help SCST to reach the high performance this project is known for:
- The number of threads per storage device that processes SCSI commands is configurable.
- All target driver and storage driver functions invoked by the SCST core are asynchronous, at least when the Linux kernel allows this. It is e.g. not yet possible to perform asynchronous or direct I/O from inside the Linux kernel.[13]
- One finite-state machine is associated with each SCSI command. This allows a single command thread to process multiple SCSI commands concurrently.
- Even when using multiple threads per storage device all these threads share the same I/O scheduler context. This sharing improves performance significantly when using e.g. the CFQ I/O scheduler.
- A scatter-gather vector cache. This cache avoids having to allocate memory via the kernel for each SCSI command.
- Lockless access to certain data structures needed to process SCSI commands. This also means that I/O has to be suspended before any of the data structures that are accessed without locking can be modified.[14]
- SCSI commands can be submitted by a target driver to the SCST core from softirq context. This results in a lower number of context switches compared to having to submit SCSI commands from thread context.[15]
History
editIn the year 2000 a SCSI target framework was developed by the University of New Hampshire InterOperability Laboratory (UNH-IOL). Although the UNH-IOL SCSI target implementation only supports the iSCSI protocol, it was designed such that support for other storage protocols would be easy to add.[16]
In 2004 the SCST project was announced, providing Fibre Channel and iSCSI support. The initial iSCSI target in SCST was based on the UNH-IOL iSCSI target implementation.[17] Around that time an alternative iSCSI target software stack was developed by Ardis Technologies.[18]
The iSCSI Enterprise Target software, announced in 2005, is a further evolution of the Ardis stack.[19][20] Later in 2005 Chelsio announced an SCST iSCSI target driver for the Chelsio T2 Ethernet adapter family.[21]
In 2006 a target driver for LSI/MPT cards was added.[22] Later in this year the scstadmin tool was added. This tool allows to save and restore the SCST configuration from or to a file.[23]
In 2007 the UNH-IOL iSCSI target patch in the SCST project was replaced by a fork of IET.[24]
In 2008 an SRP target driver was donated by Mellanox.[25] Later on this driver was optimized by Bart Van Assche.[26]
In 2009 Marvell donated a target driver for their SAS cards.[27]
Also in 2009 a target driver for Emulex Fibre Channel/FCoE adapter cards was announced by Emulex.[28][29][30]
The same year a sysfs interface has been added to SCST next to the already existing procfs interface.
In 2010 an FCoE target driver was donated by Cisco[31] and Bart Van Assche ported the IBM System p SCSI target driver to SCST.[32]
In 2011 implicit ALUA support was added to the SCST core and to the scstadmin configuration tool.[33] The three init scripts (scst, iscsi-scst and qla2x00t) were merged into a single init script, simplifying installation and management of SCST.
In 2013 support for QLogic InfiniBand HCA's was added in the SRP target driver.[34]
In January 2014 Mellanox donated an iSER target driver implementation to the SCST project.[35]
In May 2014 QLogic made a 16 Gbit/s QLogic target driver available and also announced to take over maintainership of the SCST QLogic target driver.[36]
In 2016 support for asynchronous buffered and direct file I/O and also a more powerful latency measurement infrastructure were added.
In 2019 the SCST core was modified such that I/O keeps running at full speed if a LUN or storage device is added or removed.
See also
editReferences
edit- ^ Van Assche, Bart (19 August 2015). SCST, a SCSI Target Framework (PDF). LinuxCon North America 2015. Seattle.
- ^ Bolkhovitin, Vladislav (December 20, 2012). "SCST Users".
- ^ "New VMmark Cloud Computing World Record set with Cisco UCS, VMware, and Fusion-io". Fusion-io. May 10, 2013. Archived from the original on July 2, 2014. Retrieved August 12, 2018.
- ^ "HP Achieves Two New #1 VMmark Virtualization Benchmarks with ION Data Accelerator". Fusion-io. September 12, 2013. Archived from the original on June 16, 2014. Retrieved August 12, 2018.
- ^ "HP achieves world records for 2P blade and 2P rack-mount server virtualization performance on VMmark 2.5.1 benchmark" (PDF). HP. October 2013.
- ^ "The K2 Tops Two Million IOPS Using a Single All-Flash Storage System". Kaminario. October 4, 2012.
- ^ "A tale of two SCSI targets [LWN.net]".
- ^ Florian Haas, "Replicate Everything! Highly Available iSCSI Storage with DRBD and Pacemaker", (Linux iSCSI: a Tale of Four Targets section) Linux Journal Issue #217, May 2012
- ^ Meyer, David (18 March 2013). "Fusion-io picks up software-defined storage firm ID7 for SCST chops". Gigaom. Archived from the original on 1 February 2014. Retrieved 20 July 2014.
- ^ O'Brien, Kevin (18 March 2013). "Fusion-io Acquires ID7, Developers of SCST". Archived from the original on 14 October 2014. Retrieved 20 July 2014.
- ^ "Fusion-io ID7 - Accelerating Shared Storage with Software Defined Solutions". Fusion-io. Archived from the original on August 4, 2014. Retrieved August 12, 2018.
- ^ Iyer, Jay (23 July 2014). "SanDisk Completes Acquisition of Fusion-io". SanDisk.
- ^ Edge, Jake (April 3, 2012). "2012 Linux Storage, Filesystem, and Memory Management Summit - Day 1".
- ^ Van Assche, Bart (December 25, 2012). "More fine-grained locking in SCST".
- ^ Bolkhovitin, Vladislav; Van Assche, Bart (September 26, 2012). "SCST README". Archived from the original on April 8, 2018. Retrieved April 7, 2018.
- ^ Palekar, Ashish; Ganapathy, Narendran; Chadda, Anshul; Russell, Robert D. (2001). "Design and implementation of a Linux SCSI target for storage area networks". Proceedings of the 5th Annual Linux Showcase & Conference. 5. USENIX Association: 11–18. CiteSeerX 10.1.1.61.2706.
- ^ Bolkhovitin, Vladislav. "ANNOUNCE Generic SCSI Target Middle Level for Linux (SCST) with target drivers".
- ^ Fujita, Tomonori; Masanori, Ogawara (2004). "Analysis of iSCSI target software". Proceedings of the international workshop on Storage network architecture and parallel I/Os - SNAPI '04. ACM. pp. 25–32. doi:10.1145/1162628.1162632. ISBN 9781450378222. S2CID 14730273.
- ^ Fujita, Tomonori (June 1, 2004). "iSCSI Enterprise Target".
- ^ Fujita, Tomonori (March 1, 2005). "ANNOUNCE iSCSI enterprise target software".
- ^ Smith, Randy (September 7, 2005). "Chelsio Delivers Next-Generation iSCSI Product Family Featuring Breakthroughs in Performance and Port Density". Chelsio.
- ^ Habbinga, Erik (December 13, 2006). "LSI/MPT target driver".
- ^ Buechler, Mark R. (November 14, 2006). "Initial scstadmin commit".
- ^ Bolkhovitin, Vladislav (August 15, 2007). "Initial iSCSI-SCST commit".
- ^ Pham, Vu (May 17, 2008). "Initial SRP target driver commit".
- ^ Van Assche, Bart (December 20, 2010). "PATCH 4/7 scst: Add SRP target driver".
- ^ Yan, Andi (April 14, 2009). "Target driver for Marvell 88SE64xx(3G) and 88SE94xx(6G) SAS cards".
- ^ Bolkhovitin, Vladislav (July 8, 2009). "ANNOUNCE SCST Target driver support for Emulex lpfc FC/FCoE adapters".
- ^ Lane, Katherine (September 15, 2009). "SDK Brings Enhanced Value and Expanded Market Opportunity to Data Center Storage Solution Developers". Emulex. Archived from the original on October 15, 2009. Retrieved August 10, 2018.
- ^ "TargetConnect Software Developer Kit: Accelerate, Simplify and Enhance Target Driver Development". Emulex. September 15, 2009. Archived from the original on October 14, 2009. Retrieved August 10, 2018.
- ^ Eykholt, Joe (February 20, 2010). "Initial FCoE target driver commit".
- ^ Van Assche, Bart (December 20, 2010). "PATCH 5/7 ibmvstgt: Port from tgt to SCST".
- ^ Van Assche, Bart (May 11, 2011). "PATCH scst: Add implicit ALUA support".
- ^ Van Assche, Bart (Mar 17, 2013). "PATCH ib_srpt: Add support for QLogic InfiniBand HCA's".
- ^ Burman, Yan (January 21, 2014). "PATCH 0/9 iSER support for SCST".
- ^ Grigsby, Duane (May 20, 2014). "QLogic's 16G FC/FCoE HBA support".
External links
edit- Enterprise Storage OS (ESOS) - An open source, high performance, block-level storage platform.
- Bill Childers, OpenFiler: an Open-Source Network Storage Appliance, Linux Journal issue 181, May 2009.
- Errol Neal, SSD + ZFS/bcache/EnhanceIO + SCST = Hybrid Storage Array?, ha-guru.com, 22 July 2014.