Re: (My) SMP lameness?

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Tue, 12 Jan 1999 14:02:33 +0000


On Mon, Jan 11, 1999 at 09:02:33PM +0000, Matthew Kirkwood wrote:
> On Mon, 11 Jan 1999, Stefan Laudat wrote:
>
> > Last evening I've decided to compile a new 2.2.0-pre6 on a Dual
> > P][-350, WD SCSI 64Megs etc. It took me about 7 minutes, with the
> > _existing_SMP_ 2.2.0-pre6. I have a K62/350 at home and it compiles
> > the same kernel with _almost_ the same options in _almost_ the same time :(
> > Do I have to get a different egcs/gcc in order to use both processors
> > when compiling something or are there exxxtra options in order to enable
> > some SMP extra stuff? I have to mention that a cat /proc/cpuinfo shows
> > both processors so it has to be okay...
> > Sorry if I am lame :)
>
> You probably want to do a "make -j N" to get the full benefit, where N is
> about 2x no. of CPUs.

But beware. I have used `make -j 2' and `make -j 4' recently on my
single processor system to speed up compiles. Subsequent makes rebuilt
a lot of files, so I'm not sure that `make -j' was building everything
properly.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/