From owner-cvs-all Wed Oct 10 18: 1:31 2001 Delivered-To: cvs-all@freebsd.org Received: from updraft.jp.freebsd.org (updraft.jp.FreeBSD.ORG [210.157.158.42]) by hub.freebsd.org (Postfix) with ESMTP id 6D51037B406; Wed, 10 Oct 2001 18:01:23 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by updraft.jp.freebsd.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id f9B11KY00616; Thu, 11 Oct 2001 10:01:20 +0900 (JST) (envelope-from matusita@jp.FreeBSD.org) In-Reply-To: <200110080343.f983htL29456@khavrinen.lcs.mit.edu> References: <200110051728.f95HSX738122@harmony.village.org> <20011007021605I.matusita@jp.FreeBSD.org> <200110080343.f983htL29456@khavrinen.lcs.mit.edu> X-User-Agent: Mew/1.94.2 XEmacs/21.5 (alfalfa) X-FaceAnim: (-O_O-)(O_O- )(_O- )(O- )(- -)( -O)( -O_)( -O_O)(-O_O-) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Dispatcher: imput version 20000228(IM140) Lines: 54 From: Makoto MATSUSHITA To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/release/i386 dokern.sh Date: Thu, 11 Oct 2001 10:01:15 +0900 Message-Id: <20011011100115Q.matusita@jp.FreeBSD.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG wollman> I found that it helps a lot if you link the modules together into a wollman> single kld (amortizing the overhead of the linker metadata over wollman> multiple modules). Just take the *.kld (NOT *.ko) from the object wollman> directories and link them together with `ld -Bshareable'. I've tried to confirm this. * compile all kernel modules. * copied *.kld into single directory. * run 'ld -Bshareable -o merged.ko *.kld'. some modules conflicts about function definition. The conflicted modules pair are: if_sl/if_ppp nfsserver/nfsclient ng_sync_ar/if_ar ng_sync/sr/if_sr ng_vjc/if_ppp * remove if_sr, if_ppp, nfs*, and ng_* modules and link again. # ld -Bshareable -o merged.ko *.kld # ls -l *.kld | wc 165 1485 9809 # ls -l *.kld | awk '{sum+=$5} END {print sum}' 6433815 # ls -l merged.ko -rwxr-xr-x 1 root wheel 5116576 Oct 11 00:41 merged.ko Wow... it is worth trying to merge modules into single one. I'll try it later. *** BTW, why 'bge' and 'lge', gigabit ethernet drivers, are not in GENERIC yet? it is still developing is not working, or just missed? Before patch: kern.flp 59 kbytes left mfsroot.flp 311 kbytes left After patch #1 (remove some drivers out to kernel module): kern.flp 139 kbytes left mfsroot.flp 115 kbytes left After patch #2 (#1 plus adding 'bge' and 'lge'): kern.flp 139 kbytes left mfsroot.flp 95 kbytes left We lost more 20kbytes in mfsroot.flp but it still fits to 1.44MB floppy. -- - Makoto `MAR' MATSUSHITA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message