diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2009-03-14 22:06:45 -0500 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2009-03-14 22:06:45 -0500 |
commit | f7d31baf2897526f6bc7ce41b4453ad4eb7d60e1 (patch) | |
tree | b225981d4b5a414e5210dc6305efebab02bf8a40 | |
parent | 175a817ac84d3651d38bebb55d03d62f6e45e370 (diff) | |
download | open-iscsi-f7d31baf2897526f6bc7ce41b4453ad4eb7d60e1.tar.gz |
iscsi conf: increase default MaxRecvDataSegmentLength
Increase default node.conn[0].iscsi.MaxRecvDataSegmentLength
to 262144 to closer match IO sizes we see from block layer.
The default block layer max is actually 512K, but in testing
setting the MaxRecvDataSegmentLength to this high a value
caused perf regressions with some targets.
-rw-r--r-- | etc/iscsid.conf | 5 | ||||
-rw-r--r-- | usr/iscsi_settings.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/etc/iscsid.conf b/etc/iscsid.conf index 686b3f9..de1765f 100644 --- a/etc/iscsid.conf +++ b/etc/iscsid.conf @@ -212,9 +212,8 @@ node.session.iscsi.MaxBurstLength = 16776192 # in an iSCSI PDU from a target, edit the following line. # # The value is the number of bytes in the range of 512 to (2^24-1) and -# the default is 131072 -node.conn[0].iscsi.MaxRecvDataSegmentLength = 131072 - +# the default is 262144 +node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144 # To specify the maximum number of data bytes the initiator can receive # in an iSCSI PDU from a target during a discovery session, edit the diff --git a/usr/iscsi_settings.h b/usr/iscsi_settings.h index fa3ed44..d330ecd 100644 --- a/usr/iscsi_settings.h +++ b/usr/iscsi_settings.h @@ -39,7 +39,7 @@ /* data and segment lengths in bytes */ #define DEF_INI_FIRST_BURST_LEN 262144 #define DEF_INI_MAX_BURST_LEN 16776192 -#define DEF_INI_MAX_RECV_SEG_LEN 131072 +#define DEF_INI_MAX_RECV_SEG_LEN 262144 #define DEF_INI_DISC_MAX_RECV_SEG_LEN 32768 /* login retries */ |