User`s guide

Chapter VII. iSCSI PDU Offload Target
Chelsio T5/T4 Unified Wire For Linux Page 126
The details of the parameters for the key TargetDevice are found in the table of Chelsio Entity
Settings section earlier in this document.
4.7.1. RAM Disk Details
For the built-in RAM disk:
The minimum size of the RAM disk is 1 Megabyte (MB) and the maximum is limited by
system memory.
To use a RAM disk with a Windows Initiator, it is recommended to set the size >= 16MB.
To configure an ramdisk specify MEM as the device mode:
TargetDevice=<name>,MEM,size=xMB
Where:
<name>
Is a unique name given to the RAM disk. This name identifies this
particular ramdisk. If multiple RAM disks are configured for the same
target, the name must be unique for each RAM Disk.
x
Is the size of the RAM disk in MB. It’s an integer between (1-max),
where max is limited by system memory. If this value is not specified the
default value is 16 MB.
target:
#<snip>
# 16 Megabytes RAM Disk named ramdisk1
TargetDevice=ramdisk1,MEM,size=16MB
#<snip>
4.7.2. FILE Mode Storage Device Details
The FILE mode storage device is the most common and versatile mode to access the actual
storage attached to the target system:
The FILE mode can accommodate both block devices and virtual block devices.
The device is accessed in the exclusive mode. The device should not be accessed (or
active) in any way on the target system.
Each device should be used for one and only one iSCSI target.
“SYNC” can be used with FILE mode to make sure the data is flushed to the storage device
before the Target responds back to the Initiator.
To configure a FILE storage device specify FILE as the device mode:
TargetDevice=<path to the storage device>[,FILE][,SYNC]