Re: [vpp-dev] libpneum compilation flags

2017-02-13 Thread Burt Silverman
Thanks, Gabriel, and Damjan. It appears to me that the glibc getconf program is using its own mechanisms for determining cache line size, rather than using the information that the kernel has. That is my reading of the glibc code, so I do not believe Damjan you will see any different behavior with

Re: [vpp-dev] libpneum compilation flags

2017-02-13 Thread Damjan Marion (damarion)
On 13 Feb 2017, at 17:11, Gabriel Ganne mailto:gabriel.ga...@enea.com>> wrote: Hi Burt, Thank you for your input. I pushed a new version of my commit (https://gerrit.fd.io/r/#/c/4576/) where I tried to do things more clearly. I had a look here https://github.com/torvalds/linux/blob/master/ar

Re: [vpp-dev] libpneum compilation flags

2017-02-13 Thread Gabriel Ganne
10, 2017 3:53:19 PM To: Gabriel Ganne Cc: vpp-dev@lists.fd.io; Ole Troan (otroan); Damjan Marion (damarion) Subject: Re: [vpp-dev] libpneum compilation flags Hi Gabriel, I do not fully understand the mechanisms for all processors, and being that is the case, perhaps you can add a lot of comments

Re: [vpp-dev] libpneum compilation flags

2017-02-10 Thread Burt Silverman
Hi Gabriel, I do not fully understand the mechanisms for all processors, and being that is the case, perhaps you can add a lot of comments to configure.ac. I believe that the getconf command uses information from glibc/sysdeps/x86/cacheinfo.c, which uses information from the CPUID instruction of t

Re: [vpp-dev] libpneum compilation flags

2017-02-10 Thread Gabriel Ganne
p-dev@lists.fd.io; Damjan Marion (damarion) Subject: Re: [vpp-dev] libpneum compilation flags Gabriel, > I am currently working on a patch to auto-detect the cache line size with a > m4 macro in autoconf (https://gerrit.fd.io/r/#/c/4576/) > Part of it updates cache.h tests so that it r

Re: [vpp-dev] libpneum compilation flags

2017-02-10 Thread otroan
Gabriel, > I am currently working on a patch to auto-detect the cache line size with a > m4 macro in autoconf (https://gerrit.fd.io/r/#/c/4576/) > Part of it updates cache.h tests so that it raises an error if the cache line > length is undefined. > > I am stuck at the libpneum compilation: it'

[vpp-dev] libpneum compilation flags

2017-02-10 Thread Gabriel Ganne
Hi, I am currently working on a patch to auto-detect the cache line size with a m4 macro in autoconf (https://gerrit.fd.io/r/#/c/4576/) Part of it updates cache.h tests so that it raises an error if the cache line length is undefined. I am stuck at the libpneum compilation: it's a python mod