On Wed, Aug 16, 2017 at 11:43:30AM -0400, Mark Staudinger wrote:
> On Wed, 16 Aug 2017 11:32:01 -0400, Olivier Houchard <[email protected]>
> wrote:
> 
> > On Wed, Aug 16, 2017 at 11:28:52AM -0400, Mark Staudinger wrote:
> > > 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'
> > > 
> > 
> > Hi Mark,
> > 
> > I think I know what's going on.
> > Can you try the attached patch ?
> > 
> > Thanks !
> > 
> > Olivier
> 
> Hi Olivier,
> 
> The patch checks out - affinity is set properly on both FreeBSD-10 and
> FreBSD-11.
> 

Thanks for testing !

Willy, can you apply this ?
Of course, I forgot to mention it in the commit log, but this should probably
be backported to supported releases.

Regards,

Olivier

Reply via email to