* [gentoo-user] Load average in make
@ 2013-01-16 11:09 Nilesh Govindrajan
2013-01-16 12:49 ` Michael Hampicke
0 siblings, 1 reply; 6+ messages in thread
From: Nilesh Govindrajan @ 2013-01-16 11:09 UTC (permalink / raw
To: Gentoo User Mailing List
[-- Attachment #1: Type: text/plain, Size: 355 bytes --]
Hi,
Make has two options which control number of jobs by load average.
--jobs and --load-average
Suppose I set make options as --jobs --load-average=1.7
It will spawn as many jobs as possible and limit system load to 1.7.
But which load average does that check? One minute, five minutes or fifteen
minutes?
--
Nilesh Govindrajan
http://nileshgr.com
[-- Attachment #2: Type: text/html, Size: 514 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Load average in make
2013-01-16 11:09 [gentoo-user] Load average in make Nilesh Govindrajan
@ 2013-01-16 12:49 ` Michael Hampicke
2013-01-16 14:48 ` Nilesh Govindrajan
0 siblings, 1 reply; 6+ messages in thread
From: Michael Hampicke @ 2013-01-16 12:49 UTC (permalink / raw
To: gentoo-user
Am 16.01.2013 12:09, schrieb Nilesh Govindrajan:
> Hi,
>
> Make has two options which control number of jobs by load average.
>
> --jobs and --load-average
>
> Suppose I set make options as --jobs --load-average=1.7
>
> It will spawn as many jobs as possible and limit system load to 1.7.
No, it will not limit the load to 1.7. It won't start new builds if
there are other builds running and loadavg is higher than 1.7
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Load average in make
2013-01-16 12:49 ` Michael Hampicke
@ 2013-01-16 14:48 ` Nilesh Govindrajan
2013-01-16 14:52 ` Michael Mol
2013-01-16 15:07 ` [gentoo-user] " Nicolas Richard
0 siblings, 2 replies; 6+ messages in thread
From: Nilesh Govindrajan @ 2013-01-16 14:48 UTC (permalink / raw
To: gentoo-user
On Wednesday 16 January 2013 06:19:50 PM IST, Michael Hampicke wrote:
> Am 16.01.2013 12:09, schrieb Nilesh Govindrajan:
>> Hi,
>>
>> Make has two options which control number of jobs by load average.
>>
>> --jobs and --load-average
>>
>> Suppose I set make options as --jobs --load-average=1.7
>>
>> It will spawn as many jobs as possible and limit system load to 1.7.
>
> No, it will not limit the load to 1.7. It won't start new builds if
> there are other builds running and loadavg is higher than 1.7
>
Er, that's what I supposed to mean. My question is which load average
it checks? I'm assuming it checks for the 15 minute average?
--
Nilesh Govindarajan
http://nileshgr.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Load average in make
2013-01-16 14:48 ` Nilesh Govindrajan
@ 2013-01-16 14:52 ` Michael Mol
2013-01-16 15:07 ` [gentoo-user] " Nicolas Richard
1 sibling, 0 replies; 6+ messages in thread
From: Michael Mol @ 2013-01-16 14:52 UTC (permalink / raw
To: gentoo-user
On Wed, Jan 16, 2013 at 9:48 AM, Nilesh Govindrajan <me@nileshgr.com> wrote:
> On Wednesday 16 January 2013 06:19:50 PM IST, Michael Hampicke wrote:
>> Am 16.01.2013 12:09, schrieb Nilesh Govindrajan:
>>> Hi,
>>>
>>> Make has two options which control number of jobs by load average.
>>>
>>> --jobs and --load-average
>>>
>>> Suppose I set make options as --jobs --load-average=1.7
>>>
>>> It will spawn as many jobs as possible and limit system load to 1.7.
>>
>> No, it will not limit the load to 1.7. It won't start new builds if
>> there are other builds running and loadavg is higher than 1.7
>>
>
> Er, that's what I supposed to mean. My question is which load average
> it checks? I'm assuming it checks for the 15 minute average?
No, the 1-minute.
--
:wq
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] Re: Load average in make
2013-01-16 14:48 ` Nilesh Govindrajan
2013-01-16 14:52 ` Michael Mol
@ 2013-01-16 15:07 ` Nicolas Richard
2013-01-16 15:28 ` Nilesh Govindrajan
1 sibling, 1 reply; 6+ messages in thread
From: Nicolas Richard @ 2013-01-16 15:07 UTC (permalink / raw
To: gentoo-user
Nilesh Govindrajan <me@nileshgr.com> writes:
> My question is which load average it checks? I'm assuming it checks
> for the 15 minute average?
I certainly don't know much about C, but from me grepping the source of
make, it seems that job.c does "getloadavg (&load, 1)". Moreover "man
getloadavg" says that the '1' there means to put the 1 minute load
average into 'load'.
hth,
--
Nico.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Re: Load average in make
2013-01-16 15:07 ` [gentoo-user] " Nicolas Richard
@ 2013-01-16 15:28 ` Nilesh Govindrajan
0 siblings, 0 replies; 6+ messages in thread
From: Nilesh Govindrajan @ 2013-01-16 15:28 UTC (permalink / raw
To: gentoo-user
On Wednesday 16 January 2013 08:37:09 PM IST, Nicolas Richard wrote:
> Nilesh Govindrajan <me@nileshgr.com> writes:
>> My question is which load average it checks? I'm assuming it checks
>> for the 15 minute average?
>
> I certainly don't know much about C, but from me grepping the source of
> make, it seems that job.c does "getloadavg (&load, 1)". Moreover "man
> getloadavg" says that the '1' there means to put the 1 minute load
> average into 'load'.
>
> hth,
>
Yes, it really does get the one minute average. Confirmed using a dummy
program using that function to report load.
Thanks guys.
--
Nilesh Govindarajan
http://nileshgr.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-01-16 15:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-16 11:09 [gentoo-user] Load average in make Nilesh Govindrajan
2013-01-16 12:49 ` Michael Hampicke
2013-01-16 14:48 ` Nilesh Govindrajan
2013-01-16 14:52 ` Michael Mol
2013-01-16 15:07 ` [gentoo-user] " Nicolas Richard
2013-01-16 15:28 ` Nilesh Govindrajan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox