Thanks for your contribution. The patch was checking in version
14.03.0rc2 commit b3946aa71b.
On 03/19/2014 10:22 PM, Hongjia Cao wrote:
In commit 799a753be0c116a6117b0afa84f971fc2bdb9d87 the hostlist range
count was expanded and xmalloc/xfree is used to allocate memory for the
_range structure data. xmalloc is slow in setting the memory allocated
to 0: the size of _range structure will be 12 * 64 * 1024 = 768K bytes.
Replacing xmalloc/xfree with malloc/free improve the performance
notably.
I find this when checking slowness of sinfo after upgrading from 2.6.0
to 2.6.6. The multithread patch (commit
17449c066af69441b741110ef51fc2f534272871) does not help. Replacing
hostlist_push with hostlist_push_host (commit
1b0b135f9579e253ddd5bf680d2ea70ad12f9bda) fixes the problem of sinfo,
but I think the root cause is in xmalloc.
--
Thanks,
/David/Bigagli
www.schedmd.com