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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to