From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 25 19:21:49 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E08F106566C; Sat, 25 Aug 2012 19:21:49 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 762F68FC0A; Sat, 25 Aug 2012 19:21:49 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id q7PJLh7g075910; Sat, 25 Aug 2012 12:21:43 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <503925C7.7080202@rawbw.com> Date: Sat, 25 Aug 2012 12:21:43 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:14.0) Gecko/20120802 Thunderbird/14.0 MIME-Version: 1.0 To: attilio@freebsd.org References: <501871FD.601@rawbw.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: How to diagnose system freezes? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2012 19:21:49 -0000 On 07/31/2012 17:20, Attilio Rao wrote: > Start by adding SW_WATCHDOG to your machine with a reasonably low timeout. > Also, can you use a serial console? If yes you may consider going with > a serial break. The difference with the GENERIC is mainly the addition of these lines, which make it debug image and add SW_WATCHDOG, etc. (also add dtrace) options KDTRACE_FRAME # Ensure frames are compiled in options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF makeoptions WITH_CTF=1 makeoptions DEBUG="-g" options SW_WATCHDOG options DIAGNOSTIC options DDB # Support DDB. options GDB # Support remote GDB Npw, with this config, system doesn't hang indefinitely. Instead, it hangs for ~1 minute and then reboots. It doesn't drop into debugger and doesn't leave anything in messages. I didn't yet try 4BSD scheduler as Doug Barton suggested. Anything else I can try? One thing of importance here is that there is an older graphics card 9400 GT on this system and current nvidia-driver-295.71 has an issue with 9400 GT: it makes graphics to malfunction (unpainted windows, long delays switching to terminal mode) or freezes Xorg (but not OS). So I run the older nvidia-driver-285.05.09 which appears to work. That's why I think that nvidia driver is probably to blame for these periodic OS freezes. Also the latest driver version must be, obviously, working for most people because (I think) they mostly have newer than mine nvidia cards. So maybe I should also just get the newer nvidia card and shut up, not sure. Yuri