From owner-freebsd-current@freebsd.org Tue Jul 26 05:50:25 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8628BBA5613 for ; Tue, 26 Jul 2016 05:50:25 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4A9831D04 for ; Tue, 26 Jul 2016 05:50:24 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [89.204.155.146] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1bRvG0-0003BZ-S2; Tue, 26 Jul 2016 07:50:21 +0200 Received: from localhost.my.domain (c720-r292778-amd64 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id u6Q5oHBh003085 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 26 Jul 2016 07:50:17 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id u6Q5oFVp003084; Tue, 26 Jul 2016 07:50:15 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Tue, 26 Jul 2016 07:50:15 +0200 From: Matthias Apitz To: Mark Millard Cc: FreeBSD Current Subject: Re: seldom crashes on Dell E6330 with 12-CURRENT Message-ID: <20160726055015.GB2981@c720-r292778-amd64> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Mark Millard , FreeBSD Current References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 11.0-CURRENT r292778 (amd64) User-Agent: Mutt/1.5.24 (2015-08-30) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.155.146 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2016 05:50:25 -0000 El día Monday, July 25, 2016 a las 05:00:59PM -0700, Mark Millard escribió: > Matthias Apitz guru at unixarea.de wrote on Mon Jul 25 16:10:52 UTC 2016 : > > > On Monday, 25 July 2016 17:11:23 CEST, Eric van Gyzen wrote: > > > > What file system are you using? > > UFS; I followed the good instructions about new SSD disk configuration; that's why I now have swap as plain file :-( > > Unfortunately see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206048 : > > 11.0-CURRENT -r293227 (and others) arm (rpi2/BeagleBone Black) amd64 etc: swapfile usage hangs; swap partition works . > > As far as I know it still applies for the problems that can occur for plain-file based swap files. The list of comments covers more than just armv6 as having example failures. > Thanks for the pointer to the bug issue. I remembered, that I created the swap file as a so called sparse file (dd ... bs=1m seek=8192 count=0) and this is still visible with du(1): # du -sh /usr/swap01 ; ls -lh /usr/swap01 95M /usr/swap01 -rw------- 1 root wheel 8,0G 25 jul. 08:19 /usr/swap01 I have now unmounted the swap and re-created it with real blocks: # swapoff -a swapoff: removing /dev/md99 as swap device # dd if=/dev/zero of=/usr/swap01 bs=1m count=8192 8192+0 records in 8192+0 records out 8589934592 bytes transferred in 43.594277 secs (197042712 bytes/sec) # du -sh /usr/swap01 ; ls -lh /usr/swap01 8,0G /usr/swap01 -rw------- 1 root wheel 8,0G 26 jul. 07:24 /usr/swap01 I will first give this a try. If the crash rehappens, I will move it to a real freebsd-swap partition. While saying 'crash', I now remember that in the two cases which I named 'hard locked', the system was still alive in the sense of echoing typed chars, it was only impossible to start new commands or login on another console. This points too in the direction of a disk access or swap problem. Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045 "Wer übersieht, dass wir uns den anderen weggenommen haben und sie uns wiederhaben wollen, kann von den Kämpfen der letzten Tage keinen verstehen. Und kann natürlich auch keinen dieser Kämpfe bestehen." Hermann Kant in jW 1.10.1989