From owner-freebsd-stable@FreeBSD.ORG Wed Dec 14 18:11:51 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AF031065675 for ; Wed, 14 Dec 2011 18:11:51 +0000 (UTC) (envelope-from andrey@zonov.org) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id F3B7D8FC15 for ; Wed, 14 Dec 2011 18:11:50 +0000 (UTC) Received: by eekc50 with SMTP id c50so1329663eek.13 for ; Wed, 14 Dec 2011 10:11:50 -0800 (PST) Received: by 10.180.103.170 with SMTP id fx10mr6834682wib.56.1323886309802; Wed, 14 Dec 2011 10:11:49 -0800 (PST) Received: from [10.254.254.77] (ppp94-29-56-7.pppoe.spdop.ru. [94.29.56.7]) by mx.google.com with ESMTPS id fi11sm5127714wbb.9.2011.12.14.10.11.48 (version=SSLv3 cipher=OTHER); Wed, 14 Dec 2011 10:11:49 -0800 (PST) Message-ID: <4EE8E6E3.7050202@zonov.org> Date: Wed, 14 Dec 2011 22:11:47 +0400 From: Andrey Zonov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Jeremy Chadwick References: <4EE7BF77.5000504@zonov.org> <20111213221501.GA85563@icarus.home.lan> In-Reply-To: <20111213221501.GA85563@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: directory listing hangs in "ufs" state X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2011 18:11:51 -0000 Hi Jeremy, This is not hardware problem, I've already checked that. I also ran fsck today and got no errors. After some more exploration of how mongodb works, I found that then listing hangs, one of mongodb thread is in "biowr" state for a long time. It periodically calls msync(MS_SYNC) accordingly to ktrace out. If I'll remove msync() calls from mongodb, how often data will be sync by OS? -- Andrey Zonov On 14.12.2011 2:15, Jeremy Chadwick wrote: > On Wed, Dec 14, 2011 at 01:11:19AM +0400, Andrey Zonov wrote: >> >> Have you any ideas what is going on? or how to catch the problem? > > Assuming this isn't a file on the root filesystem, try booting the > machine in single-user mode and using "fsck -f" on the filesystem in > question. > > Can you verify there's no problems with the disk this file lives on as > well (smartctl -a /dev/disk)? I'm doubting this is the problem, but > thought I'd mention it. >