On Thu, 2008-09-25 at 16:34 +0200, Tomasz Chmielewski wrote: > Tomasz Chmielewski schrieb: > > tgtd will crash with more than ~20 targets. > > > > To reproduce, start this bash script: > > > > #!/bin/bash > > > > i=1 > > > > while [ $i -ne 1024 ] ; do > > echo tgtadm --lld iscsi --op new --mode target --tid 1$i -T > > iqn.2007-02.com.example:test.break$i > > tgtadm --lld iscsi --op new --mode target --tid 1$i -T > > iqn.2007-02.com.example:test.break$i > > echo tgtadm --lld iscsi --op new --mode logicalunit --tid 1$i --lun 1 > > -b /dev/sda > > tgtadm --lld iscsi --op new --mode logicalunit --tid 1$i --lun 1 -b > > /dev/sda > > [ $? -ne 0 ] && exit > > i=$((i+1)) > > done > > At least, it crashes on 32 bit. > > BTW, this is quite strange, as I have one machine (x86_64) with 51 targets: > > # tgtadm --op show --mode target | grep -c Target > 51 > > Perhaps running an older tgt revision? Or 64 bit makes a difference > here? I have no way to check if there is any limit on 64 bit right now. 32bit only have limited memory space for mmap. each pthread consumes ~10MB by default. so 64bit really make a difference here. this is a pthread implementation limitation. > > It also crashes when tgtd is started in the foreground. > > -- To unsubscribe from this list: send the line "unsubscribe stgt" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html