Re: [hwloc-devel] [PATCH] Use the #links as an estimate for the #tids in a tasks directory

2010-03-11 Thread Brice Goglin
Applied thanks! Brice Bert Wesarg wrote: > When reading all tids from a process in > topology-linux.c::hwloc_linux_get_proc_tids(), it used a > exponential realloc algorithm to increase the storage size for the tids. > > Now it uses the number of links (.st_nlinks) from a stat() call to the >

[hwloc-devel] [PATCH] Use the #links as an estimate for the #tids in a tasks directory

2010-03-10 Thread Bert Wesarg
When reading all tids from a process in topology-linux.c::hwloc_linux_get_proc_tids(), it used a exponential realloc algorithm to increase the storage size for the tids. Now it uses the number of links (.st_nlinks) from a stat() call to the directory (actually a fstat() call to the dirfd() of the