On Wed, 16 Aug 2017 10:47:32 -0400, Dmitry Sivachenko <[email protected]> wrote:


On 16 Aug 2017, at 17:40, Mark Staudinger <[email protected]> wrote:

On Wed, 16 Aug 2017 10:35:05 -0400, Dmitry Sivachenko <[email protected]> wrote:

Hello,

are you installing haproxy form FreeBSD ports?

I just tried your configuration and it works as you expect.

If you are building haproxy by hand, add USE_CPU_AFFINITY=1 parameter to make manually. FreeBSD port do that for you.





Hi Dmitry,

I am running (for now) a locally compiled from source version.

Build options :
 TARGET  = freebsd
 CPU     = generic
 CC      = clang
CFLAGS = -O2 -g -fno-strict-aliasing -Wdeclaration-after-statement -fwrapv OPTIONS = USE_CPU_AFFINITY=1 USE_REGPARM=1 USE_OPENSSL=1 USE_LUA=1 USE_STATIC_PCRE=1 USE_PCRE_JIT=1



Strange.  I am testing on FreeBSD-10-stable though.

May be you add return code check for cpuset_setaffinity() and log possible error?

Output of from truss on starup yields this:

3862: cpuset_setaffinity(0x3,0x2,0xffffffffffffffff,0x8,0x773dd0) ERR#34 'Result too large' 3863: cpuset_setaffinity(0x3,0x2,0xffffffffffffffff,0x8,0x773dd8) ERR#34 'Result too large'

Cheers,
-Mark

Reply via email to