On Feb 17, 2008 9:06 PM, Ross <[EMAIL PROTECTED]> wrote:
> Sweet, thanks for digging that out.  Just two questions now:
>
> 1. Would it be safe to set these figures to 1, 3 and 9 seconds?  Obviously
> I'll need to test it, but are you aware of any major gotchas I should look 
> out for?

Time-outs are chosen so that normal delay is not mistaken for
disconnect. Decreasing time-out, you risk disabling healthy target,
for instance when it gets overloaded a bit (there had been a thread on
this with iscsi target recently).

>
> 2. How on earth do I change these values, recompile the iscsi initiator, and 
> install it?

I'd rather suggest filing an RFE against Solaris iSCSI initiator to
make these values configurable (which basically is adding respective
commands to isicsiadm and ioctls to the initiator code).

>
> I appreciate the 2nd question is a bit of a biggie :-D.  Just a pointer in 
> the direction of the
> relevant downloads & manuals would do.

I believe the source can be fetched from opensolaris hg repository
(assuming you run OpenSolaris). "Writing Device Drivers"
(http://docs.sun.com/app/docs/doc/816-4854) is the usual reference for
developing/building/installing kernel code.

-- 
Regards,
Andrey

>
> Ross
>
> ==================================================
>
> Right, these aren't configurable - respective parameters are
> hard-coded in iscsi/hdrs/iscsi.h:
>
> 205 /*
> 206 * NOP delay is used to send a iSCSI NOP (ie. ping) across the
> 207 * wire to see if the target is still alive. NOPs are only
> 208 * sent when the RX thread hasn't received anything for the
> 209 * below amount of time.
> 210 */
> 211 #define ISCSI_DEFAULT_NOP_DELAY 5 /* seconds */
> 212 extern int iscsi_nop_delay;
> 213 /*
> 214 * If we haven't received anything in a specified period of time
> 215 * we will stop accepting IO via tran start. This will enable
> 216 * upper level drivers to see we might be having a problem and
> 217 * in the case of scsi_vhci will start to route IO down a better
> 218 * path.
> 219 */
> 220 #define ISCSI_DEFAULT_RX_WINDOW 20 /* seconds */
> 221 extern int iscsi_rx_window;
> 222 /*
> 223 * If we haven't received anything in a specified period of time
> 224 * we will stop accepting IO via tran start. This the max limit
> 225 * when encountered we will start returning a fatal error.
> 226 */
> 227 #define ISCSI_DEFAULT_RX_MAX_WINDOW 180 /* seconds */
> 228 extern int iscsi_rx_max_window;
>
>
>
> This message posted from opensolaris.org
> _______________________________________________
> storage-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/storage-discuss
>
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to