From owner-freebsd-questions@FreeBSD.ORG Wed May 13 06:14:41 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 922DA106566B for ; Wed, 13 May 2009 06:14:41 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.221.173]) by mx1.freebsd.org (Postfix) with ESMTP id 4C2D18FC17 for ; Wed, 13 May 2009 06:14:41 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: by qyk3 with SMTP id 3so873434qyk.3 for ; Tue, 12 May 2009 23:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=XhokwiGtdL1v9d1KtMH25BdWHobRelTY9tsgqX+4bdw=; b=IiLECfdFimP9Vr9EVrNMdEG9IP6tMZt1zOcfM3Umf5IDoZAfmp74Bk/pUIg352eqwt SeWk3ucETNhmPQYF0jNyNCRz9FcnNRlaL7z8dvb7aNzgewda6R9UzKqeluDy/9QBuDW9 l43wf+HJ152Umf8XHBgRg/YOJ+bDVP/Llx5w0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=b8Jivm49Hw2qwL5nS9a5wf7+tK4F6biQJI2Nomlw2XRtqie6dA6AeHhfN+V3yp3++T 3Gcq1oAQELoyozc6K4dmK55/4qdaE7gt34OJFjgCaR1X/Iaj3nQ8ClyQBt7wzj9NUHE5 qyt1iPpK5d1s6OY2f8ZP8Foy6Xclebrof6bwA= MIME-Version: 1.0 Received: by 10.229.81.198 with SMTP id y6mr405078qck.106.1242195280774; Tue, 12 May 2009 23:14:40 -0700 (PDT) In-Reply-To: <4d7dd86f0905122254u5aa0f7aas32bb72dd52e3919@mail.gmail.com> References: <4d7dd86f0905122254u5aa0f7aas32bb72dd52e3919@mail.gmail.com> Date: Wed, 13 May 2009 16:14:40 +1000 Message-ID: <4d7dd86f0905122314g671f3f91v1c1d646a24fab77f@mail.gmail.com> From: David N To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: GJournal: Out of cache force switch - With lock up X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2009 06:14:41 -0000 2009/5/13 David N : > Hi, > > I'm running geom journal in debug and I'm seeing some > > GEOM_JOURNAL[1]: No cache, waking up the switcher. > GEOM_JOURNAL[1]: Out of cache, force switch (used=...... limit=...... ) > > But on the journal i left 2GB, how come its running out of cache? or > is that the journal cache that it flushes to disk? > > > I've also managed to lock up the system, and just trying to pin point > the problem. This is a 7.1R just upgraded to 7.2 with GPT + gmirror + > gjournal with GENERIC kernel. > All SSH no data. Local console is locked as well, but the num lock > light turns on/off. > > I had gstat running, and all disk activity went to zero before it locked. > > I'm just cp -av from one gmirror to the new gmirror with journal. > > I've done it twice so far, with about 1 hour of copying and it'll lock up. > > > Regards > David N > It happened again GEOM_JOURNAL[1]: Out of cache, force switch (used=175878656 limit=167772160). GEOM_JOURNAL[1]: Msync time of /usr: 0.156931s GEOM_JOURNAL[1]: Sync time of /usr: 0.006427s GEOM_JOURNAL[1]: Cache flush time: 0.267372s GEOM_JOURNAL[1]: BIO_FLUSH time of mirror/gm0p6: 0.267709s GEOM_JOURNAL[1]: Data has been copied. GEOM_JOURNAL[1]: Data has been copied. GEOM_JOURNAL[1]: Suspend time of /usr: 31.412925s GEOM_JOURNAL[1]: Starting copy of journal. GEOM_JOURNAL[1]: Cache flush time: 0.290278s GEOM_JOURNAL[1]: Cache flush time: 0.000101s GEOM_JOURNAL[1]: Switch time of mirror/gm0p6: 0.296598s GEOM_JOURNAL[1]: Msync time of /var: 0.000031s GEOM_JOURNAL[1]: Sync time of /var: 0.000048s GEOM_JOURNAL[1]: Cache flush time: 0.395199s GEOM_JOURNAL[1]: BIO_FLUSH time of mirror/gm0p5: 0.395694s GEOM_JOURNAL[1]: Suspend time of /var: 0.000226s GEOM_JOURNAL[1]: Starting copy of journal. GEOM_JOURNAL[1]: Cache flush time: 0.708414s GEOM_JOURNAL[1]: Cache flush time: 0.912773s GEOM_JOURNAL[1]: Switch time of mirror/gm0p5: 3.372491s GEOM_JOURNAL[1]: Entire switch time: 35.917632s managed to copy this before it locked up, the used is greater than the limit... Is there anything in sysctl i can tune to make it switch quicker? The last debug message is Data has been copied. Regards David N