[OpenIndiana-discuss] Limit - 255 iSCSI targets
Manoj Ganesan
manoj.ganesan at gmail.com
Thu Apr 4 19:08:03 UTC 2013
I did increase this number (then rebuilt the source), and as a test,
created around 2000 connections, without anything crashing on me. However,
two operations seem to take much longer than they used to:
1. creating a target group (about 3-4 seconds)
2. adding an iscsi target to a target group (about 3-4 seconds)
And I noticed this has consistently gone up while I was running the test,
ending up in the numbers above.
The creation of the target itself doesn't seem to take much longer than
before though.
Any clues as to why this might be?
On Thu, Apr 4, 2013 at 1:55 PM, Geoff Nordli <geoffn at gnaa.net> wrote:
>
> I created an RFE for it:
>
> https://www.illumos.org/**issues/3694<https://www.illumos.org/issues/3694>
>
> thanks Mike for digging the code links out.
>
> Geoff
>
>
> On 13-04-01 05:47 PM, Mike La Spina wrote:
>
>> Hi Geoff,
>>
>> It looks like the itadm utility is limiting the number of targets. I have
>> not walked all the code but I do not see any reason this cannot be
>> increased to 1024 in the itadm user utility.
>>
>> http://src.illumos.org/source/**xref/illumos-gate/usr/src/lib/**
>> libiscsit/common/libiscsit.h<http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libiscsit/common/libiscsit.h>
>>
>>
>> 43<http://src.illumos.org/**source/xref/illumos-gate/usr/**
>> src/lib/libiscsit/common/**libiscsit.h#43<http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libiscsit/common/libiscsit.h#43>>#define
>> MAX_TARGETS<http://src.**illumos.org/source/s?refs=MAX_**
>> TARGETS&project=illumos-gate<http://src.illumos.org/source/s?refs=MAX_TARGETS&project=illumos-gate>>
>> 255 /* maximum targets that may be created */
>>
>>
>> You could submit an RFE for this one, it does look like a simple change.
>>
>> Normally I would say 255 is more that a server should have defined but if
>> the targets are largely idle then more than 255 would be a possible use
>> case. Also with the ever increasing hardware capability emerging 255 will
>> soon become a low limit.
>>
>>
>> Regards,
>>
>> Mike
>>
>> On 2013-04-01, at 7:59 AM, "Geoff Nordli" <geoffn at gnaa.net<mailto:geoffn*
>> *@gnaa.net <geoffn at gnaa.net>>> wrote:
>>
>> On 13-03-31 01:20 AM, Mike La Spina wrote:
>> The maximum is actually 1024 on the iscsi port end:
>>
>> xref: /illumos-gate/usr/src/uts/**common/io/comstar/port/iscsit/**
>> iscsit.h
>>
>> 55/* Max targets per system */
>> 56#define ISCSIT_MAX_TARGETS 1024
>>
>> How have you determined it's 255?
>>
>> Hi Mike.
>>
>> I tested it using a for loop to create > 255
>>
>> for i in {1..260}; do itadm create-target; done
>>
>> then it will error out with the:
>>
>> "Maximum of 255 iSCSI targets
>> itadm create-target failed with error 7
>>
>> 255 is a bit small, but 1024 would be enough for us; really it ought to
>> be enough for anyone :)
>>
>> Geoff
>>
>>
>>
> ______________________________**_________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@**openindiana.org<OpenIndiana-discuss at openindiana.org>
> http://openindiana.org/**mailman/listinfo/openindiana-**discuss<http://openindiana.org/mailman/listinfo/openindiana-discuss>
>
More information about the OpenIndiana-discuss
mailing list