From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 25 20:12:12 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 DD3FC106566C for ; Sat, 25 Aug 2012 20:12:12 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 29F1C8FC0C for ; Sat, 25 Aug 2012 20:12:11 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id XAA24987; Sat, 25 Aug 2012 23:11:55 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1T5Mi2-0008ol-Mo; Sat, 25 Aug 2012 23:11:54 +0300 Message-ID: <50393188.6030304@FreeBSD.org> Date: Sat, 25 Aug 2012 23:11:52 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:14.0) Gecko/20120728 Thunderbird/14.0 MIME-Version: 1.0 To: Yuri References: <501871FD.601@rawbw.com> <503925C7.7080202@rawbw.com> In-Reply-To: <503925C7.7080202@rawbw.com> X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=UTF-8 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 20:12:13 -0000 on 25/08/2012 22:21 Yuri said the following: > 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? options KDB options KDB_TRACE options KDB_UNATTENDED > 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. -- Andriy Gapon