All of lore.kernel.org
 help / color / mirror / Atom feed
* Does parallel make work for modules?
@ 2004-06-22 22:08 ` H. J. Lu
  0 siblings, 0 replies; 7+ messages in thread
From: H. J. Lu @ 2004-06-22 22:08 UTC (permalink / raw)
  To: linux kernel; +Cc: linux ia64 kernel

When building 2.6.7 on a 4way Linux/ia64, "make -j4 modules" doesn't
spawn 4 jobs. I got

 5756 pts/0    S      0:00 make -s -j4 modules
 5868 pts/0    S      0:00 make -f scripts/Makefile.build obj=fs
 7240 pts/0    S      0:00 make -f scripts/Makefile.build obj=fs/nfs
 7269 pts/0    S      0:00 /bin/sh -c set -e; ?   gcc -Wp,-MD,fs/nfs/.pagelist.o. 
 7270 pts/0    S      0:00 gcc -Wp,-MD,fs/nfs/.pagelist.o.d -nostdinc -iwithprefi
 7271 pts/0    S      0:00 /usr/gcc-3.4/libexec/gcc/ia64-unknown-linux-gnu/3.4.1/
 7272 pts/0    R      0:00 as -x -o fs/nfs/pagelist.o -

2.4 kernel module build work fine. Any ideas?


H.J.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Does parallel make work for modules?
@ 2004-06-22 22:08 ` H. J. Lu
  0 siblings, 0 replies; 7+ messages in thread
From: H. J. Lu @ 2004-06-22 22:08 UTC (permalink / raw)
  To: linux kernel; +Cc: linux ia64 kernel

When building 2.6.7 on a 4way Linux/ia64, "make -j4 modules" doesn't
spawn 4 jobs. I got

 5756 pts/0    S      0:00 make -s -j4 modules
 5868 pts/0    S      0:00 make -f scripts/Makefile.build obj=fs
 7240 pts/0    S      0:00 make -f scripts/Makefile.build obj=fs/nfs
 7269 pts/0    S      0:00 /bin/sh -c set -e; ?   gcc -Wp,-MD,fs/nfs/.pagelist.o. 
 7270 pts/0    S      0:00 gcc -Wp,-MD,fs/nfs/.pagelist.o.d -nostdinc -iwithprefi
 7271 pts/0    S      0:00 /usr/gcc-3.4/libexec/gcc/ia64-unknown-linux-gnu/3.4.1/
 7272 pts/0    R      0:00 as -x -o fs/nfs/pagelist.o -

2.4 kernel module build work fine. Any ideas?


H.J.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Does parallel make work for modules?
  2004-06-22 22:08 ` H. J. Lu
@ 2004-06-22 22:27   ` Keith Owens
  -1 siblings, 0 replies; 7+ messages in thread
From: Keith Owens @ 2004-06-22 22:27 UTC (permalink / raw)
  To: H. J. Lu; +Cc: linux kernel, linux ia64 kernel

On Tue, 22 Jun 2004 15:08:13 -0700, 
"H. J. Lu" <hjl@lucon.org> wrote:
>When building 2.6.7 on a 4way Linux/ia64, "make -j4 modules" doesn't
>spawn 4 jobs. I got
>
> 5756 pts/0    S      0:00 make -s -j4 modules
> 5868 pts/0    S      0:00 make -f scripts/Makefile.build obj=fs
> 7240 pts/0    S      0:00 make -f scripts/Makefile.build obj=fs/nfs
> 7269 pts/0    S      0:00 /bin/sh -c set -e; ?   gcc -Wp,-MD,fs/nfs/.pagelist.o. 
> 7270 pts/0    S      0:00 gcc -Wp,-MD,fs/nfs/.pagelist.o.d -nostdinc -iwithprefi
> 7271 pts/0    S      0:00 /usr/gcc-3.4/libexec/gcc/ia64-unknown-linux-gnu/3.4.1/
> 7272 pts/0    R      0:00 as -x -o fs/nfs/pagelist.o -
>
>2.4 kernel module build work fine. Any ideas?

Works for me, GNU Make version 3.79.1 building 2.6.7 on ia64.  make -j8
modules gives a pstree of

bash(2475)---make(29483)-+-make(29806)---make(30111)---make(30112)---sh(30113)---gcc(30114)-+-as(30116)
                         |                                                                  `-cc1(30115)
                         `-make(29857)-+-make(29938)---sh(30153)---gcc(30154)-+-as(30156)
                                       |                                      `-cc1(30155)
                                       |-make(30103)-+-sh(30104)---gcc(30105)-+-as(30107)
                                       |             |                        `-cc1(30106)
                                       |             `-sh(30146)---gcc(30147)-+-as(30149)
                                       |                                      `-cc1(30148)
                                       `-make(30130)---sh(30131)---gcc(30132)-+-as(30134)
                                                                              `-cc1(30133)

Not the full blown 8 way that I asked for, but that is an artifact of
using recursive make instead of a single top level Makefile with all
the dependencies.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Does parallel make work for modules?
@ 2004-06-22 22:27   ` Keith Owens
  0 siblings, 0 replies; 7+ messages in thread
From: Keith Owens @ 2004-06-22 22:27 UTC (permalink / raw)
  To: H. J. Lu; +Cc: linux kernel, linux ia64 kernel

On Tue, 22 Jun 2004 15:08:13 -0700, 
"H. J. Lu" <hjl@lucon.org> wrote:
>When building 2.6.7 on a 4way Linux/ia64, "make -j4 modules" doesn't
>spawn 4 jobs. I got
>
> 5756 pts/0    S      0:00 make -s -j4 modules
> 5868 pts/0    S      0:00 make -f scripts/Makefile.build obj=fs
> 7240 pts/0    S      0:00 make -f scripts/Makefile.build obj=fs/nfs
> 7269 pts/0    S      0:00 /bin/sh -c set -e; ?   gcc -Wp,-MD,fs/nfs/.pagelist.o. 
> 7270 pts/0    S      0:00 gcc -Wp,-MD,fs/nfs/.pagelist.o.d -nostdinc -iwithprefi
> 7271 pts/0    S      0:00 /usr/gcc-3.4/libexec/gcc/ia64-unknown-linux-gnu/3.4.1/
> 7272 pts/0    R      0:00 as -x -o fs/nfs/pagelist.o -
>
>2.4 kernel module build work fine. Any ideas?

Works for me, GNU Make version 3.79.1 building 2.6.7 on ia64.  make -j8
modules gives a pstree of

bash(2475)---make(29483)-+-make(29806)---make(30111)---make(30112)---sh(30113)---gcc(30114)-+-as(30116)
                         |                                                                  `-cc1(30115)
                         `-make(29857)-+-make(29938)---sh(30153)---gcc(30154)-+-as(30156)
                                       |                                      `-cc1(30155)
                                       |-make(30103)-+-sh(30104)---gcc(30105)-+-as(30107)
                                       |             |                        `-cc1(30106)
                                       |             `-sh(30146)---gcc(30147)-+-as(30149)
                                       |                                      `-cc1(30148)
                                       `-make(30130)---sh(30131)---gcc(30132)-+-as(30134)
                                                                              `-cc1(30133)

Not the full blown 8 way that I asked for, but that is an artifact of
using recursive make instead of a single top level Makefile with all
the dependencies.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Does parallel make work for modules?
  2004-06-22 22:08 ` H. J. Lu
@ 2004-06-22 23:09   ` Jeff Garzik
  -1 siblings, 0 replies; 7+ messages in thread
From: Jeff Garzik @ 2004-06-22 23:09 UTC (permalink / raw)
  To: H. J. Lu; +Cc: linux kernel, linux ia64 kernel

H. J. Lu wrote:
> When building 2.6.7 on a 4way Linux/ia64, "make -j4 modules" doesn't
> spawn 4 jobs. I got


BTW, you don't need to bother with a separate 'make modules' step anymore.

'make -jN' should build everything, including the default boot image for 
your architecture.

	Jeff



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Does parallel make work for modules?
@ 2004-06-22 23:09   ` Jeff Garzik
  0 siblings, 0 replies; 7+ messages in thread
From: Jeff Garzik @ 2004-06-22 23:09 UTC (permalink / raw)
  To: H. J. Lu; +Cc: linux kernel, linux ia64 kernel

H. J. Lu wrote:
> When building 2.6.7 on a 4way Linux/ia64, "make -j4 modules" doesn't
> spawn 4 jobs. I got


BTW, you don't need to bother with a separate 'make modules' step anymore.

'make -jN' should build everything, including the default boot image for 
your architecture.

	Jeff



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Does parallel make work for modules?
  2004-06-22 22:08 ` H. J. Lu
                   ` (2 preceding siblings ...)
  (?)
@ 2004-06-22 23:40 ` Kalin KOZHUHAROV
  -1 siblings, 0 replies; 7+ messages in thread
From: Kalin KOZHUHAROV @ 2004-06-22 23:40 UTC (permalink / raw)
  To: H. J. Lu; +Cc: LKML

H. J. Lu wrote:
> When building 2.6.7 on a 4way Linux/ia64, "make -j4 modules" doesn't
> spawn 4 jobs. I got
> 
>  5756 pts/0    S      0:00 make -s -j4 modules
>  5868 pts/0    S      0:00 make -f scripts/Makefile.build obj=fs
>  7240 pts/0    S      0:00 make -f scripts/Makefile.build obj=fs/nfs
>  7269 pts/0    S      0:00 /bin/sh -c set -e; ?   gcc -Wp,-MD,fs/nfs/.pagelist.o. 
>  7270 pts/0    S      0:00 gcc -Wp,-MD,fs/nfs/.pagelist.o.d -nostdinc -iwithprefi
>  7271 pts/0    S      0:00 /usr/gcc-3.4/libexec/gcc/ia64-unknown-linux-gnu/3.4.1/
>  7272 pts/0    R      0:00 as -x -o fs/nfs/pagelist.o -
> 
> 2.4 kernel module build work fine. Any ideas?

-j8 (and distcc) WFM since 2.6.0 without problems. All CPUs (4+) are at almost 100% during the build.

Kalin.

-- 
||///_ o  *****************************
||//'_/>     WWW: http://ThinRope.net/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-06-22 23:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-22 22:08 Does parallel make work for modules? H. J. Lu
2004-06-22 22:08 ` H. J. Lu
2004-06-22 22:27 ` Keith Owens
2004-06-22 22:27   ` Keith Owens
2004-06-22 23:09 ` Jeff Garzik
2004-06-22 23:09   ` Jeff Garzik
2004-06-22 23:40 ` Kalin KOZHUHAROV

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.