Re: tgtadm/tgtd management issue: buffer size truncated sometimes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 24 Jan 2014 12:51:13 +0400
Artyom Pervukhin <artyom@xxxxxxxxxx> wrote:

> Can you please specify what linux distribution and libraries version
> are you using?

Debian squeeze amd64.

> Iʼm able to reproduce this bug on current tgt codebase (17222f2b00d29368da214e2d59cbc9e00f53606b) built on  Debian wheezy amd64. Bug frequency increases with number of targets:
> 
> 
> 1000 targets (all loaded, as `tgtadm -C 0 --op show --mode target --tid 1000` shows target settings):
> 
> root@sandbox:~ # for i in $(seq 100) ; do tgtadm -C 0 --op show --mode target | grep -c ^Target ; done | sort | uniq -c                                                     
>     100 978
> root@sandbox:~ # for i in $(seq 100) ; do tgtadm -C 0 --op show --mode target | wc -c ; done | sort | uniq -c                                                              
>     100 1033140

I can reproduce the same problem with 1000.

root@rose:~# for i in $(seq 100); do tgtadm --op show --mode target|grep -c ^Target;done|sort|uniq -c
     97 1000
      1 972
      1 995
      1 997

Strangely, looks like I can get the correct result without 'grep':

root@rose:~# for i in $(seq 100); do tgtadm --op show --mode target|python -c "import sys; print len([line for line in sys.stdin if \"Target\" in line])";done|sort|uniq -c
    100 1000


?τθΊ{.nΗ+?·???­?+%?Λ?±ιέΆ??w?Ί{.nΗ+?·¬Ά??{ayΊΚ?Ϊ?λ,j­ʼf£ʼ·h??ο?κ??κηz_θ?(­ι???έʼj"?ϊΆm§??Ύ«ώG«?ι?ʼΈ??¨θ­Ϊ&£ψ§~?α





[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux