Thanks Robert, surya and everyone, you guys rock!

I built a new image with the following fix, zpool import works very well,
'kstat vmem:35:segkp:*' also shows no sign of memory leaks after 100 times
zpool export/import.

https://github.com/dweeezil/zfs/commit/69b0687

Would you need me to file an illumos bug report so that it won't be
forgotten?

Thanks,

-Youzhong

On Fri, Apr 4, 2014 at 10:52 AM, Steven Hartland <[email protected]>wrote:

> ----- Original Message ----- From: "Robert Mustacchi" <[email protected]>
>
>  On 04/03/2014 08:45 PM, Youzhong Yang wrote:
>>
>>> We have 3 test servers running SmartOS, host B and C have zpools zp01 and
>>> zp02 respectively, host A can see disks of zp01 and zp02 (disks of zp01
>>> are
>>> connected to HBA ports of A and B; disks of zp02 are connected to HBA
>>> ports
>>> of A and C).
>>>
>>> And I have a loop to test zpool import/export:
>>>
>>> for i in {1..100}
>>> do
>>>     on B: zpool export -f zp01
>>>     on A: zpool import -o cachefile=none zp01
>>>     on A: zpool export -f zp01
>>>     on B: zpool import -o cachefile=none zp01
>>>     on C: zpool export -f zp02
>>>     on A: zpool import -o cachefile=none zp02
>>>     on A: zpool export -f zp02
>>>     on C: zpool import -o cachefile=none zp02
>>> done
>>>
>>> After a few iterations, zpool import hangs. This can be reproduced
>>> consistently. Is this a known issue? Should I file a bug report?
>>>
>>
>> Given that you're blocked here in the creation of the thread creation,
>> particularly for the metatslab group and the means by which you reached
>> here, it highly corresponds to a reported problem
>> (http://www.listbox.com/member/archive/182191/2014/03/
>> sort/time_rev/page/3/entry/17:85/20140314181835:B085982A-
>> ABC6-11E3-B7F2-ABEF6D29024B/).
>> You should probably verify that you have quite a large number of kernel
>> threads and that is where the leak is coming from.
>>
>
> If this is the case ZFS creates threads based on the number of cores,
> so does the machine have large number of cores?
>
>    Regards
>    Steve
>



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to