[libvirt] [PATCH 5/5] Add travis build configuration

Fabian Freyer fabian.freyer at physik.tu-berlin.de
Sat Apr 8 21:46:32 UTC 2017


On 8 Apr 2017, at 16:28, Roman Bogorodskiy wrote:
> This looks like the same problem I'm having on FreeBSD. Its ARG_MAX
> value is too low and not tunable, and the command line for syntax-check
> does not fit.
>
> I work around that by applying a patch to make ARG_MAX tunable on
> FreeBSD (haven't yet upstreamed that though), but not sure how to tweak
> that on macOS.

ARG_MAX on macOS is set to 256*1024 on macOS [1], and kern.argmax is also a readonly sysctl. Briefly looking over the xnu source tree leads me to believe that making ARG_MAX unable there is even more tricky than on FreeBSD. Just increasing ARG_MAX and recompiling xnu might work though. Then again, most apple boxes tend to not run self-compiled kernels, so I would just go with your second suggestion.

> Probably a better way would be to somehow reduce length of the command
> line.

Fabian Freyer

[1] https://github.com/opensource-apple/xnu/blob/53c5e2e62fc4182595609153d4b99648da577c39/bsd/sys/syslimits.h#L75

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170408/3645e371/attachment-0001.sig>


More information about the libvir-list mailing list