public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nicholas Knight <nknight@pocketinet.com>
To: Stephan von Krawczynski <skraw@ithnet.com>,
	"Phil Oester" <kernel@theoesters.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 1gb RAM + 1gb SWAP + make -j bzImage = OOM
Date: Fri, 4 Jan 2002 16:42:43 -0800	[thread overview]
Message-ID: <WHITExcPbVzv2N2Ku2000000c76@white.pocketinet.com> (raw)
In-Reply-To: <004b01c1955e$ecbc9190$6400a8c0@philxp> <20020104220240.233ae66a.skraw@ithnet.com>
In-Reply-To: <20020104220240.233ae66a.skraw@ithnet.com>

On Friday 04 January 2002 01:02 pm, Stephan von Krawczynski wrote:
> On Fri, 4 Jan 2002 12:32:27 -0800
>
> "Phil Oester" <kernel@theoesters.com> wrote:
> > On 2.4.17, I can't make -j bzImage without OOM kicking in. 
> > Relatively light .config here - bzImage compiles to less than 1mb.
> >
> > Seems with 1 gb of RAM and swap, the box should be able to handle
> > this (box is dual P3 600 btw).
> >
> > Is this unreasonable?  How much RAM should it take to accomplish
> > this???
>
> You should give a bit more info on that, especially vmstat and the
> like. I cannot reproduce this. Neither on 1GB/256MB nor on 2GB/256MB
> RAM/SWAP. (P3-1GHz, dual SMP, 2.4.17)
>


I have absilutely no trouble reproducing on an 800MHz Athlon with 256MB 
RAM/256MB swap on 2.4.17

The one catch is that -j is specified without a number.

from man make:
       -j jobs
            Specifies  the  number  of  jobs  (commands) to run 
simultaneously.  If there is more than one -j
            option, the last one is effective.
**If the -j option is given without an argument, make will not limit 
the number of jobs that can run simultaneously.**

(emphasis mine)

Hence, unlimited number of jobs, theoreticaly unlimited amount of 
memory usage.
The last number of processes I saw in top before the system was 
basically dead and I just hit A-SYSRQ-S and A-SYSRQ-B was 416, and all 
the top processes were make or cc

Somehow I doubt this is a kernel issue and is instead a make and user 
issue. A make issue because it's probably poor design to have an option 
that's specified with a number be normaly harmless and useful, be 
potentialy lethal when the number is left off, so if you forget the 
number, your system is dead. A user issue because it seems the user is 
using the option without fully comprehending the consequences.

> Regards,
> Stephan
>

  reply	other threads:[~2002-01-05  0:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-04 20:32 1gb RAM + 1gb SWAP + make -j bzImage = OOM Phil Oester
2002-01-04 21:02 ` Stephan von Krawczynski
2002-01-05  0:42   ` Nicholas Knight [this message]
2002-01-05  1:24     ` Phil Oester
2002-01-05 15:17       ` Stephan von Krawczynski
2002-01-07  6:22         ` Phil Oester
2002-01-07 14:24           ` Stephan von Krawczynski
2002-01-08  5:11             ` Phil Oester
2002-01-05 21:41       ` Eric W. Biederman
2002-01-05 12:30     ` Luigi Genoni
2002-01-05 15:19     ` Stephan von Krawczynski
2002-01-05 17:57       ` Nicholas Knight
2002-01-06 14:40         ` Stephan von Krawczynski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=WHITExcPbVzv2N2Ku2000000c76@white.pocketinet.com \
    --to=nknight@pocketinet.com \
    --cc=kernel@theoesters.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=skraw@ithnet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox