From owner-freebsd-arm@freebsd.org Wed Jul 15 16:16:51 2015 Return-Path: Delivered-To: freebsd-arm@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 CC6989A1A03 for ; Wed, 15 Jul 2015 16:16:51 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 709D615C2 for ; Wed, 15 Jul 2015 16:16:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by ieik3 with SMTP id k3so37417377iei.3 for ; Wed, 15 Jul 2015 09:16:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=yk38pfAuJy/5ODR4M6R7/1C7WLaIHKSwCPPzsjQ4Cr0=; b=kngwqbAGLs3agKtVHp5GwAGFuINY+pMZqMqQa0ffJyU1RDUdx9Wi7jsYvGacya1v+E IZ4OSQLYDSURzsp6bEZnNZWc6oD0nFODTfdsPFFiRikrCVRmqfmYweAl3dcBRVQLUt22 BSNbUnm65P9Ckqh4n4lHEp4maBDpjSZhv8+JkNfkb2dCCuTrXHZRLrS0lto3HTbKBJ5U jaguAwM+yusYozbc0edk5JRVvqURBEe+GQ1PX8BlOBzZgxFdLd7Qg8KCANgOkHWqkJ23 2mOdwZHW/yQOHOxZ32IIv1JUGK41NlE89Wstd10ejraxvVf/zesjkSRZZN6dz3bz+x8A gSKw== X-Gm-Message-State: ALoCoQluIUfv0QHBq1jxSUUGy3ATT+IiSdXaHq3l2Xw95Sc5G5uDoMsiEd180PdWOVw8TBhVQvux X-Received: by 10.50.44.76 with SMTP id c12mr26641508igm.74.1436977004075; Wed, 15 Jul 2015 09:16:44 -0700 (PDT) Received: from [10.0.27.94] ([96.88.71.26]) by smtp.gmail.com with ESMTPSA id a6sm3077560ioj.1.2015.07.15.09.16.42 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jul 2015 09:16:43 -0700 (PDT) Sender: Warner Losh Subject: Re: executable gone after fsck - Fwd: Cron newsyslog Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Content-Type: multipart/signed; boundary="Apple-Mail=_7DA8361D-0EEA-47D6-B7C7-83E2A840336B"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Warner Losh In-Reply-To: <55A652D6.7010401@gmail.com> Date: Wed, 15 Jul 2015 10:16:40 -0600 Cc: Ronald Klop , "freebsd-arm@freebsd.org" Message-Id: <4CF1F0A4-9486-46DC-AF73-3E98DAB284DD@bsdimp.com> References: <20150709200019.E7710D975C@sheeva.klop.ws> <55A652D6.7010401@gmail.com> To: Mattia Rossi X-Mailer: Apple Mail (2.2102) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 16:16:52 -0000 --Apple-Mail=_7DA8361D-0EEA-47D6-B7C7-83E2A840336B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 15, 2015, at 6:32 AM, Mattia Rossi = wrote: >=20 > Hi Ronald, >=20 > I might have missed some information on the list about the topic, and = unless the unmapped i/o was the cause, fsck is pretty much broken at = least on the Dreamplug.. and I would suspect also on the Sheevaplug. Wih = the first few fsck you do you will lose random files, later on you won't = be able to boot anymore, as fsck won't be able to fix fs errors = anymore=E2=80=A6 It was broken on atmel until I turned of unmapped I/O. then it was rock = solid on atmel, at least as rock solid as it is on other platforms. Ian = told me his dream plug was also broken in a similar way, but I can=E2=80=99= t recall if he tested it for me there. I crashed my Atmel AT91SAM9G20 = system about 100 times chasing unrelated bugs after this change. Before = I turned off unmapped I/O it was always a disaster (never once did fsck = do something useful on a dirty fs). Afterwards every time i was paying = attention, it just worked (and when I wasn=E2=80=99t paying attention, = it didn=E2=80=99t have the mandatory trip into single user mode). fsck definitely does unaligned direct I/O, which is what I think is = broken with unmapped I/O. I=E2=80=99m confident that I=E2=80=99ve fixed = this. The kernel Ron is using should be plenty new enough since I fixed this = back in march, iirc. Warner > I'm currently using the fix suggested by Ian at the time: set the dump = and pass values of your root fs in fstab to 0 0 and live with a dirty fs = after a crash. Unless the system is crashing often, you'll be quite fine = ;-) >=20 > Cheers, >=20 > Mat >=20 > Am 10.07.2015 um 10:12 schrieb Ronald Klop: >> Hi, >>=20 >> I used fsck after a panic on my sheevaplug. >> FreeBSD sheeva.klop.ws 11.0-CURRENT FreeBSD 11.0-CURRENT #8 r284499M: = Wed Jun 17 12:54:02 CEST 2015 = root@sjakie.klop.ws:/usr/obj-arm/arm.arm/usr/src-arm/sys/SHEEVAPLUG arm >>=20 >> If I did not made a mistake somewhere I'm running with the unmapped = i/o turned off. >> http://www.secnetix.de/olli/FreeBSD/svnews/index.py?r=3D283931 >>=20 >> NB: In the case below bzip2 does not exist anymore. Which is not = something _just_ written to disk. >>=20 >> Unfortunately I don't have more information about the crash. >>=20 >> Ronald. >>=20 >>=20 >> ------- Forwarded message ------- >> From: "Cron Daemon" >> To: root@klop.ws >> Cc: >> Subject: Cron newsyslog >> Date: Thu, 09 Jul 2015 22:00:10 +0200 >>=20 >> newsyslog: execl(`/usr/bin/bzip2 -f /var/log/console.log.0'): No such = file >> or directory >> newsyslog: `bzip2 -f /var/log/console.log.0' terminated with a = non-zero >> status (1) >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to = "freebsd-arm-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" --Apple-Mail=_7DA8361D-0EEA-47D6-B7C7-83E2A840336B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVpodpAAoJEGwc0Sh9sBEAogwQAKpvDlDhHAlTZeaIIKMU0CGt rhO4ANHw88qsWoE3xR9M5VlLO7nMRTlaz0xRQXWfm2z9j6hQcSKGO1K9AgQZhcuq mHnNauEo241Fke20GzEanKJwtkPttmIqE94Y1KtNO0OD2SvxAHkQ2vW1o6LJ0lpG a2JX50KT1t1kLrnTJ/w1Skb8bfpx1gxxpbyFtLYrIRCrHDfpLAWxfOniVsC6ajrg gNH3M9qzNfnDgChzdYbWGmDN9uH5QbVZZjvXZjQPjeqXVdgay6hDewIi9IwMjD/q wbXak+RhcJvzy4J0IuYy5jcHyYgXvtVyaZMk0Z0BNCmQ/msdad8uZjuFGQSnBiXC ydYfJ9hX4udlpHtjTd75hjR4eEpt5jn54537ULW9f8rhDFQrMm6iTiUhGy+MkdhA T2+BQSYWfQjQKSPu1GWrnPNCSosojqlWS1gHvR7nhT+TLa/nvnLIN3nQ4ZQyEiCG WPUMUfPuO7QfqBDBjAMiUBa2r9kH0BKhhdneo5JT3BAH1JfU23zivZClvXvkbSI3 QyT3XsoCSDKkotYhjCAKb27JF7sEzSV/LG4sw9+ymA64IW9qiZmSyWU6/xacI1Vx sTsChrxCZwXDg7FKPH/SV84oi5rGDk+1UFjbK2i9ed5+nECkR03ZrvUG05JqM0FU vX5osi0lXqxLJJupMjNM =Z/jR -----END PGP SIGNATURE----- --Apple-Mail=_7DA8361D-0EEA-47D6-B7C7-83E2A840336B--