Re: [libvirt-ci PATCH] lcitool: Set make parallelism dynamically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2020-05-11 at 10:20 +0200, Erik Skultety wrote:
> On Thu, May 07, 2020 at 06:53:12PM +0200, Andrea Bolognani wrote:
> > +export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)"
> 
> By the way, do you happen to know where the _NPROCESSORS_ONLN came from? I mean
> the only trace of it was the system config constant _SC_NPROCESSORS_ONLN which
> the getconf one will be translated to, I was just confused where shorter name
> came from, since it's not documented in any of the man pages (or it may be, but
> I don't have that specific man page installed).

No idea, but it's used quite extensively in our GitLab CI
configurations and I've verified it also works on FreeBSD...

If you find the other variant is preferable for whatever reason,
we can always change it :)

-- 
Andrea Bolognani / Red Hat / Virtualization




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux