From owner-freebsd-amd64@FreeBSD.ORG Fri Nov 2 14:10:46 2007 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D3B016A473 for ; Fri, 2 Nov 2007 14:10:46 +0000 (UTC) (envelope-from mb@kis.p.lodz.pl) Received: from zly.kis.p.lodz.pl (zly.kis.p.lodz.pl [212.191.89.2]) by mx1.freebsd.org (Postfix) with ESMTP id B7A1313C480 for ; Fri, 2 Nov 2007 14:10:45 +0000 (UTC) (envelope-from mb@kis.p.lodz.pl) Received: by zly.kis.p.lodz.pl (Postfix, from userid 58) id 785155C0F2; Fri, 2 Nov 2007 15:10:17 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on zly.kis.p.lodz.pl X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.5 tests=RDNS_NONE autolearn=disabled version=3.2.1 Received: from localhost (localhost [127.0.0.1]) by zly.kis.p.lodz.pl (Postfix) with ESMTP id BFD295C0E4 for ; Fri, 2 Nov 2007 15:10:11 +0100 (CET) X-Virus-Scanned: amavisd-new at kis.p.lodz.pl Received: from zly.kis.p.lodz.pl ([127.0.0.1]) by localhost (zly.kis.p.lodz.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LNOok18Bh3J8 for ; Fri, 2 Nov 2007 15:10:03 +0100 (CET) Received: from student.kis.p.lodz.pl (student.kis.p.lodz.pl [212.191.89.21]) by zly.kis.p.lodz.pl (Postfix) with ESMTP id BDE595C0E6 for ; Fri, 2 Nov 2007 15:10:03 +0100 (CET) Received: from [192.168.2.182] (unknown [193.142.243.5]) by student.kis.p.lodz.pl (Postfix) with ESMTP id 179D85C9E for ; Fri, 2 Nov 2007 15:07:22 +0100 (CET) Message-ID: <472B2FBB.5070308@kis.p.lodz.pl> Date: Fri, 02 Nov 2007 15:10:03 +0100 From: Marek Blaszkowski User-Agent: Mozilla Thunderbird 1.0.2 (X11/20070113) X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: freebsd-amd64@freebsd.org References: <4728906E.8020804@kis.p.lodz.pl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: strange i/o and tty lockups/delays on 6.1, strange sync() issue X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2007 14:10:46 -0000 Nate Eldredge wrote: > On Wed, 31 Oct 2007, Marek Blaszkowski wrote: > >> Hi, >> my config: >> thunder k8sr, dual opteron 244, 8GB RAM, FreeBSD 6.1, sata disk >> >> >> for time to time (every 10 or 20 secs) any process which try write or >> read any, even small file, is locked for a couple seconds (about 7 or >> 9 secs), very iritating when I try save small files edited in vim >> (size about 2-3 kbytes), it's looks like this: #vim /path/to/file >> ...editing.. >> :w >> and now (afetr w command) vim freeze for 7-10 secs until it displays >> "file written". >> >> Delays accours on tty, too. In vim I can't move around edited file >> (up/down in rows), vim just got hang, strange is that I can switch >> (durning vim lockup) beetwen virtual screen consoles. > > > [sync takes a long time too] > > Is there anything in the log files? This might happen if the disk > access fails or times out; the kernel resets the controller and tries > again, which takes a long time. That would indicate that the disk is > probably failing, in which case it should be backed up and replaced as > soon as possible. You could also see if smartctl reports anything > significant. > > If that's not it, you might try running top and see if any process > accumulated CPU seconds during the hang. > > I experienced a couple of other issues where things would hang > momentarily. One was fixed by disabling ACPI (it's a long story) and > the other by enabling PREEMPTION. So if the disk is okay those are two > more things you could try. > > Hope this helps. I'd be interested to know what you find out. Does PREEMPTION option is safe for production servers now? I saw many threads on amd64@ or stable@ about kernel crashes with this option enabled, so I don't decided to use it... regrads, -- Marek B.