From owner-freebsd-stable@FreeBSD.ORG Mon Jul 22 18:05:03 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 309B7E96 for ; Mon, 22 Jul 2013 18:05:03 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-vc0-x22b.google.com (mail-vc0-x22b.google.com [IPv6:2607:f8b0:400c:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E805B2C37 for ; Mon, 22 Jul 2013 18:05:02 +0000 (UTC) Received: by mail-vc0-f171.google.com with SMTP id ij15so455395vcb.30 for ; Mon, 22 Jul 2013 11:05:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=9mm1DhZmGGs3kE1QJC6YIwszYiNSlaa6vgrUv7LmmZE=; b=EJ/dKKzPieMAtTtYXIME8va6BqWKuEDKFn0WFHDxUmGWPzfmp7HISdI85c4I6oIf0u qGEQGDxGmX5O9ILQH2+svoVUJj9mDBicruvPLEMui+uSJ4ktbieHpZksTN6LVqjijnh9 n2lNwzbIQjhei6g7MoxiKcj3PLOs16SvanD4CbWKW5p4WQKHwqkXNqQPtJMER/k38foh 6nbncCutbij42fNfHiOnEiJGHD5DdeQBD/da228M4ltNNtXwojydoLSoiva6XPoHt0PN iuPOzTYyXJ7n68qxEACBzKakslWYD1GsowOBAe0glDVY8rTMMvION7yuGzE5xYBZZFdM 7OsA== MIME-Version: 1.0 X-Received: by 10.220.77.6 with SMTP id e6mr9788209vck.50.1374516301452; Mon, 22 Jul 2013 11:05:01 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.221.41.6 with HTTP; Mon, 22 Jul 2013 11:05:01 -0700 (PDT) In-Reply-To: <51ED0060.2050502@bsdforen.de> References: <51ED0060.2050502@bsdforen.de> Date: Mon, 22 Jul 2013 11:05:01 -0700 X-Google-Sender-Auth: z0raREGqTUBssiib0WJPeFQwrGo Message-ID: Subject: Re: stopping amd causes a freeze From: Artem Belevich To: Dominic Fandrey Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 18:05:03 -0000 On Mon, Jul 22, 2013 at 2:50 AM, Dominic Fandrey wrote: > Occasionally stopping amd freezes my system. It's a rare occurrence, > and I haven't found a reliable way to reproduce it. > > It's also a real freeze, so there's no way to get into the debugger > or grab a core dump. I only can perform the 4 seconds hard shutdown to > revive the system. > > I run amd through sysutils/automounter, which is a scripting solution > that generates an amd.map file based on encountered devices and devd > events. The SIGHUP it sends to amd to tell it the map file was updated > does not cause problems, only a SIGKILL may cause the freeze. > > Nothing was mounted (by amd) during the last freeze. > > amd itself is a primitive NFS server as far as system is concerned and amd mount points are mounted from it. If you just KILL it without giving it a chance to clean things up you'll potentially end up in a situation similar to mounting from remote NFS server that's unresponsive. From mount_nfs(8): If the server becomes unresponsive while an NFS file system is mounted, any new or outstanding file operations on that file system will hang uninterruptibly until the server comes back. To modify this default be- haviour, see the intr and soft options. > I don't see any angle to tackle this, but I'm throwing it out here > any way, in the hopes that someone actually has an idea how to approach > the issue. > Don't use KILL or make sure that nobody tries to use amd mountpoints until new instance starts. Manually unmounting them before killing amd may help. Why not let amd do it itself with "/etc/rc.d/amd stop" ? --Artem > > # uname -a > FreeBSD mobileKamikaze.norad 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0 > r253413: Wed Jul 17 13:12:46 CEST 2013 root@mobileKamikaze.norad:/usr/obj/HP6510b-91/amd64/usr/src/sys/HP6510b-91 > amd64 > > That's amd's starting message: > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: no logfile defined; using > stderr > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: AM-UTILS VERSION > INFORMATION: > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: Copyright (c) 1997-2006 > Erez Zadok > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: Copyright (c) 1990 > Jan-Simon Pendry > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: Copyright (c) 1990 > Imperial College of Science, Technology & Medicine > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: Copyright (c) 1990 The > Regents of the University of California. > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: am-utils version 6.1.5 > (build 901505). > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: Report bugs to > https://bugzilla.am-utils.org/ or am-utils@am-utils.org. > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: Configured by David > O'Brien on date 4-December-2007 PST. > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: Built by > root@mobileKamikaze.norad. > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: cpu=amd64 (little-endian), > arch=amd64, karch=amd64. > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: full_os=freebsd9.2, > os=freebsd9, osver=9.2, vendor=undermydesk, distro=The FreeBSD Project. > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: domain=norad, > host=mobileKamikaze, hostd=mobileKamikaze.norad. > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: Map support for: root, > passwd, union, nis, ndbm, file, exec, error. > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: AMFS: nfs, link, nfsx, > nfsl, host, linkx, program, union, ufs, cdfs, > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: pcfs, auto, direct, > toplvl, error, inherit. > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: FS: cd9660, nfs, nfs3, > nullfs, msdosfs, ufs, unionfs. > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: Network 1: > wire="192.168.1.0" (netnumber=192.168.1). > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: Network 2: > wire="192.168.0.0" (netnumber=192.168). > Jul 22 11:32:28 mobileKamikaze amd[8176]/info: My ip addr is 127.0.0.1 > > amd is called with the flags -r -p -a -c 4 -w 2 > > -- > A: Because it fouls the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing on usenet and in e-mail? > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >