linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Boris Pisarcik <boris@acheron.sk>
To: linux-kernel@vger.kernel.org
Subject: Re: Question about SysRq
Date: Wed, 4 Apr 2001 02:39:11 +0200	[thread overview]
Message-ID: <20010404023911.A1260@Boris> (raw)
In-Reply-To: <20010331230454.A801@Boris> <Pine.LNX.4.30.0104021654340.29684-100000@sol.compendium-tech.com>
In-Reply-To: <Pine.LNX.4.30.0104021654340.29684-100000@sol.compendium-tech.com>; from kernel@blackhole.compendium-tech.com on Mon, Apr 02, 2001 at 04:59:30PM -0700

  Unfortunately,
> the only one that responds is sysrq-b, which boots the box without
> syncing or unmounting the disks. Not only does that piss me off but it's
> led to some fs corruption as well (which pisses me off even more). sysrq-b
> is the *only* combination I can get working when this happens. 

I looked a bit at the source of sysrq handling. I've found there is
rather big difference between sysrq+b and other killers handling.
Sysrq+b is just called with pretty straitforward fashion - stops other 
processors on SMP and reboots directly (hardware impulse or triple fault)
or through the bios - so it just calls for the corruptions.

On the other side sysrq+s marks a single variable, which will be tested
next cycle in the bdflush kernel threads' main loop, and adds bdflush to
scheduler runqueue list. So it gets possibility to check for emergency
sync onle when gets next scheduled. Does it ?

Can you anyhow find something in your logs/console/serial console messages
like 13.13.2000 kernel : Sysrq: Emergency Sync (this should be present - is 
written within keyboard handler, not after shedule) and what's next logs ?
We could determine, if the bdflush thread got scheduled and called emergency 
syncing routine indeed.

As you wrote no of your processes does respond - probably telnet will 
not help. You may try to write experimental programme, that only log
say current time every n seconds, and see, if it just stopped to 
log messages after lockup-time. If not - it doesn't get scheduled.
If continues - there's problem with syncing. Again - try, as far
as i understand, log kernel messages to serial console or alike, because
the messages should not get written to logfiles - syslogd can't be woken up
eg.

Quick help against those corruptions, which comes on my mind, is use
the reiserfs. I have no real experiences with that and its reliability,
also as aj followed some of messages in this list about resierfs - it has
some problems too - but in definition it shoudn't get corrupted by not-
syncing reboot. But i see this not much helpfull ,cause if you really 
would depend on big reliability, you wouldn't intall 2.3.x-pre kernel :)

There go also occasionally discussions about watchdogs - it may be
helpfull - but none of the two really solve the problem.

LW: today a got ugly lockup with dosemu and experimental execution of
virtual pool ;). Neither Sysrq+b functioned. But that's probably another
story. Root or privilege suid processes (X server among them) need really 
just a 1-bit error to corrupt near what they like.

The least fsck sessions and nice day                                     B.

  reply	other threads:[~2001-04-03 22:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-31 21:04 Question about SysRq Boris Pisarcik
2001-04-02 16:35 ` Basic Text Mode (was: Re: Question about SysRq) Thorsten Glaser Geuer
2001-04-04  7:44   ` Boris Pisarcik
2001-04-02 23:59 ` Question about SysRq Dr. Kelsey Hudson
2001-04-04  0:39   ` Boris Pisarcik [this message]
2001-04-03 22:36     ` Andreas Dilger
2001-04-12 18:51     ` Dr. Kelsey Hudson
     [not found] ` <m2n1a1pj8r.fsf@boreas.yi.org.>
2001-04-04  7:12   ` Boris Pisarcik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010404023911.A1260@Boris \
    --to=boris@acheron.sk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).