Re: [hwloc-users] Thread binding problem

2012-09-06 Thread Gabriele Fatigati
Hi Brice, hi Jeff, >Can you add some printf inside hwloc_linux_set_area_membind() in src/topology-linux.c to see if ENOMEM comes from the mbind >syscall or not? I added printf inside that function, but ENOMEM does not come from there. >Have you run your application through valgrind or another

Re: [hwloc-users] Thread binding problem

2012-09-06 Thread Brice Goglin
Le 06/09/2012 09:56, Gabriele Fatigati a écrit : > Hi Brice, hi Jeff, > > >Can you add some printf inside hwloc_linux_set_area_membind() in > src/topology-linux.c to see if ENOMEM comes from the mbind >syscall or > not? > > I added printf inside that function, but ENOMEM does not come from there.

Re: [hwloc-users] Thread binding problem

2012-09-06 Thread Gabriele Fatigati
Sorry, I used a wrong hwloc installation. Using the hwloc with the printf controls: mbind hwloc_linux_set_area_membind() fails: Error from HWLOC mbind: Cannot allocate memory so this is the origin of bad allocation. I attach the right valgrind output valgrind --track-origins=yes

Re: [hwloc-users] Thread binding problem

2012-09-06 Thread Gabriele Fatigati
Downsizing the array, up to 4GB, valgrind gives many warnings reported in the attached file. 2012/9/6 Gabriele Fatigati > Sorry, > > I used a wrong hwloc installation. Using the hwloc with the printf > controls: > > mbind hwloc_linux_set_area_membind() fails: > >

Re: [hwloc-users] Thread binding problem

2012-09-06 Thread Gabriele Fatigati
Oops, I forgot the hwloc_topology_destroy() and also hwloc_bitmap_free(cpuset); Added them, I attach new code using hwloc_set_area_membind function directly and new Valgrind output. 2012/9/6 Brice Goglin > Le 06/09/2012 10:13, Gabriele Fatigati a écrit : > > Downsizing

Re: [hwloc-users] Thread binding problem

2012-09-06 Thread Samuel Thibault
Gabriele Fatigati, le Thu 06 Sep 2012 10:12:38 +0200, a écrit : > mbind hwloc_linux_set_area_membind()  fails: > > Error from HWLOC mbind: Cannot allocate memory  Ok. mbind is not really supposed to allocate much memory, but it still does allocate some, to record the policy > //

Re: [hwloc-users] Thread binding problem

2012-09-06 Thread Brice Goglin
Le 06/09/2012 14:51, Gabriele Fatigati a écrit : > Hi Brice, > > the initial grep is: > > numa_policy65671 65952 24 1441 : tunables 120 60 >8 : slabdata458458 0 > > When set_membind fails is: > > numa_policy 482 1152 24 1441 : tunables 120