Date: Sat, 14 Apr 2012 08:59:42 -0400 From: Robert Huff <roberthuff@rcn.com> To: Jeremie Le Hen <jeremie@le-hen.org> Cc: Alexander Best <arundel@freebsd.org>, freebsd-current@freebsd.org Subject: Re: howto debug a complete hard reset Message-ID: <20361.29886.740093.455933@jerusalem.litteratus.org> In-Reply-To: <20120414090728.GA8798@felucia.tataz.chchile.org> References: <20120414090728.GA8798@felucia.tataz.chchile.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Jeremie Le Hen writes: > This is probably a sysctl handler that is causing the reboot. You can > run this one-liner to spot the culprit (use sh): > > for i in $(sysctl -Na); do sysctl $i >> ~/sysctl.out; sync; done > > Each sysctl will be called in turn and the output is appended to > a file, but the file will forcibly written to the disk before the > next occurence. Um ... it is my understanding sync(8) does not guarantee pending i/o will be written before it returns, but merely requests this happen irrespective of when it would normally occur. An I mistaken? Robert Huff
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20361.29886.740093.455933>