From owner-freebsd-smp Mon Nov 24 21:16:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA11788 for smp-outgoing; Mon, 24 Nov 1997 21:16:00 -0800 (PST) (envelope-from owner-freebsd-smp) Received: from nomis.Simon-Shapiro.ORG (nomis.i-Connect.Net [206.190.143.100]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id VAA11726 for ; Mon, 24 Nov 1997 21:15:40 -0800 (PST) (envelope-from shimon@nomis.Simon-Shapiro.ORG) Received: (qmail 12344 invoked by uid 1000); 25 Nov 1997 05:13:36 -0000 Message-ID: X-Mailer: XFMail 1.2-beta-111797 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199711182256.XAA02838@daneel.stuyts.nl> Date: Mon, 24 Nov 1997 21:13:36 -0800 (PST) Reply-To: shimon@simon-shapiro.org Organization: Me, Just me... From: Simon Shapiro To: ben@stuyts.nl Subject: RE: Success with getting SMP to work, but a few questions remain Cc: freebsd-smp@freebsd.org Sender: owner-freebsd-smp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On 18-Nov-97 Ben Stuyts wrote: > Dear list, > > I just (finally) added a second cpu to my Gigabyte 586DX board, > upgraded from > 2.2-Stable to 3.0-Current, compiled an SMP kernel with the default > options, > and It Just Worked. GREAT! > > I have a few questions. BTW, my cvs source tree is up to date till > 16-nov. > > Although I'm compiling something right now, top shows that the > machine is > almost idle. (It certainly isn't.) For example: > > CPU states: 4.7% user, 0.0% nice, 20.3% system, 0.8% interrupt, > 74.2% idle > Mem: 3892K Active, 28M Inact, 15M Wired, 12M Cache, 7595K Buf, 2540K > Free > Swap: 128M Total, 5728K Used, 122M Free, 4% Inuse > > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU > COMMAND > 12309 root 10 0 1240K 644K wait 0 0:02 0.31% 0.31% > make > 13234 root 73 0 1972K 1872K CPU0 0 0:00 3.12% 0.15% > cc1 > 13235 root -6 0 504K 656K piperd 0 0:00 1.56% 0.08% as > 13232 root 10 0 220K 476K wait 0 0:00 0.78% 0.04% cc > 10434 benst 28 0 832K 572K CPU1 1 0:02 0.04% 0.04% > top > > I tried to compile a kernel (GENERIC to be exact) with make -j4, but > it failed: Try make depend first. Do not be amazed if it still fails. Normal make will succeed most of the time :-) > > make -j4 > --- symbols.exclude --- > --- symbols.sort --- > --- if_vx.o --- > --- cd9660_bmap.o --- > --- symbols.exclude --- > echo "gcc2_compiled." >symbols.exclude > echo "___gnu_compiled_c" >>symbols.exclude > --- symbols.sort --- > grep -v '^#' ../../i386/i386/symbols.raw | sed 's/^ //' | sort -u >> symbols.sort > --- if_vx.o --- > cc -c -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith > -Winline -Wuninitialized -nostdinc -I- -I. -I../.. > -I../../../include > -DFAILSAFE -DCOMPAT_43 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL -include > opt_global.h ../../dev/vx/if_vx.c > --- cd9660_lookup.o --- > --- cd9660_bmap.o --- > cc -c -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith > -Winline -Wuninitialized -nostdinc -I- -I. -I../.. > -I../../../include > -DFAILSAFE -DCOMPAT_43 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL -include > opt_global.h ../../isofs/cd9660/cd9660_bmap.c > --- cd9660_node.o --- > --- cd9660_bmap.o --- > In file included from ../../isofs/cd9660/cd9660_bmap.c:43: > ../../sys/vnode.h:429: vnode_if.h: No such file or directory > --- cd9660_lookup.o --- > cc -c -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith > -Winline -Wuninitialized -nostdinc -I- -I. -I../.. > -I../../../include > -DFAILSAFE -DCOMPAT_43 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL -include > opt_global.h ../../isofs/cd9660/cd9660_lookup.c > --- cd9660_node.o --- > cc -c -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith > -Winline -Wuninitialized -nostdinc -I- -I. -I../.. > -I../../../include > -DFAILSAFE -DCOMPAT_43 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL -include > opt_global.h ../../isofs/cd9660/cd9660_node.c > --- cd9660_bmap.o --- > In file included from ../../isofs/cd9660/cd9660_bmap.c:43: > ../../sys/vnode.h:450: warning: `struct vop_lease_args' declared > inside > parameter list > ../../sys/vnode.h:450: warning: its scope is only this definition or > declaration, > ../../sys/vnode.h:450: warning: which is probably not what you want. > ../../sys/vnode.h:464: warning: `struct vop_lease_args' declared > inside > parameter list > ../../sys/vnode.h:489: warning: `struct vop_lookup_args' declared > inside > parameter list > ../../sys/vnode.h:494: warning: `struct vop_islocked_args' declared > inside > parameter list > ../../sys/vnode.h:495: warning: `struct vop_lock_args' declared > inside > parameter list > ../../sys/vnode.h:496: warning: `struct vop_unlock_args' declared > inside > parameter list > ../../sys/vnode.h:497: warning: `struct vop_islocked_args' declared > inside > parameter list > ../../sys/vnode.h:498: warning: `struct vop_lock_args' declared > inside > parameter list > ../../sys/vnode.h:499: warning: `struct vop_poll_args' declared > inside > parameter list > ../../sys/vnode.h:500: warning: `struct vop_unlock_args' declared > inside > parameter list > ../../sys/vnode.h:501: warning: `struct vop_pathconf_args' declared > inside > parameter list > ../../sys/vnode.h:502: warning: `struct vop_revoke_args' declared > inside > parameter list > ../../sys/vnode.h:503: warning: `struct vop_lock_args' declared > inside > parameter list > --- cd9660_lookup.o --- > ... etc > > Even a make -j1 has this problem. A make without any -j option works > fine. > Did I miss something? Any ideas? > > Thanks, > Ben If Microsoft Built Cars: There would be an "Engine Pro" with bigger turbos, but it would be slower on most existing roads. Sincerely Yours, Simon Shapiro Shimon@Simon-Shapiro.ORG Voice: 503.799.2313