From owner-freebsd-current@FreeBSD.ORG Wed Apr 23 05:14:15 2008 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E4D4106566B for ; Wed, 23 Apr 2008 05:14:15 +0000 (UTC) (envelope-from daichi@freebsd.org) Received: from natial.ongs.co.jp (natial.ongs.co.jp [202.216.246.90]) by mx1.freebsd.org (Postfix) with ESMTP id 583508FC0A for ; Wed, 23 Apr 2008 05:14:15 +0000 (UTC) (envelope-from daichi@freebsd.org) Received: from parancell.ongs.co.jp (dullmdaler.ongs.co.jp [202.216.246.94]) by natial.ongs.co.jp (Postfix) with ESMTP id 2B2AF125438; Wed, 23 Apr 2008 14:14:13 +0900 (JST) Message-ID: <480EC5A5.8030308@freebsd.org> Date: Wed, 23 Apr 2008 14:14:13 +0900 From: Daichi GOTO User-Agent: Thunderbird 2.0.0.12 (X11/20080422) MIME-Version: 1.0 To: Jeremie Le Hen References: <20080422203435.GA92168@obiwan.tataz.chchile.org> <20080422210851.GE92168@obiwan.tataz.chchile.org> In-Reply-To: <20080422210851.GE92168@obiwan.tataz.chchile.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org, Masanori OZAWA Subject: Re: unionfs makes -CURRENT very sluggish X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2008 05:14:15 -0000 Jeremie Le Hen wrote: > Hi, > > On Tue, Apr 22, 2008 at 10:34:35PM +0200, Jeremie Le Hen wrote: >> I tried to compile lib/ncurses through unionfs. It is utterly slow, no >> matter I mount with noatime or not. >> >> Relevant mounts: >> % /usr/src on /space/chroot/usr/src (nullfs, local, read-only) >> % :/space/chroot/usr/src.union on /space/chroot/usr/src (unionfs, local) >> >> % root:~# chroot /space/chroot >> % root:/# cd /usr/src/ >> % root:/# make buildenv >> % # cd lib/ncurses >> % # time make >> >> Compile time without noatime: >> 5089.47 real 1670.72 user 3364.89 sys >> >> Compile time with noatime: >> 5083.22 real 1664.10 user 3369.22 sys >> >> Now if I remove the unionfs mount and just use nullfs: >> 255.47 real 150.51 user 83.82 sys >> >> >> As you can see, most of the time is spent in kernel. I'm recompiling my >> kernel with hwpmc right now in order to profile it. Any other debug >> hint would be welcome. >> >> FWIW, "while sleep 1 ; do date ; done" runs jerkily when unionfs is run: >> Tue Apr 22 21:20:06 CEST 2008 >> Tue Apr 22 21:20:13 CEST 2008 >> Tue Apr 22 21:20:17 CEST 2008 >> Tue Apr 22 21:20:22 CEST 2008 >> Tue Apr 22 21:20:29 CEST 2008 >> >> Whereas it runs smoothly without unionfs. >> >> I'll give the result of hwpmc ASAP. > > I've upgraded to the latest -CURRENT and the problem went away. Sorry > for the noise. > > Regards, No problem :) Thanks for your report! -- Daichi GOTO, http://people.freebsd.org/~daichi