From: Nathan Scott <nathans@sgi.com>
To: lord@xfs.org, Amon Ott <ao@rsbac.org>
Cc: "Jeffrey E. Hundstad" <jeffrey.hundstad@mnsu.edu>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: 4K stack kernel get Oops in Filesystem stress test
Date: Thu, 29 Jul 2004 12:14:53 +1000 [thread overview]
Message-ID: <20040729021453.GG800@frodo> (raw)
In-Reply-To: <200407220927.45201.ao@rsbac.org>
On Thu, Jul 22, 2004 at 09:27:44AM +0200, Amon Ott wrote:
> On Dienstag, 20. Juli 2004 16:39, Jeffrey E. Hundstad wrote:
> > Steve Lord wrote:
> > > Don't use 4K stacks and XFS. What you hit here is a path where the
> > > filesystem is getting full and it needs to free some reserved space
> > > by flushing cached data which is using reserved extents. Reserved
> > > extents do not yet have an on disk address and they include a
> > > reservation for the worst case metadata usage. Flushing them will
> > > get you room back.
> > >
> > > As you can see, it is a pretty deep call stack, most of XFS is going
> > > to work just fine with a 4K stack, but there are end cases like
> > > this one which will just not fit.
Actually, this area of the code has been a source of several
deadlocks, so we need to consider reworking how we do this
anyay (helper thread or something along those lines) - that
would also help to address the stack depth problem here, and
this spot is probably the worst-case situation for stack use
in XFS.
> > If this is a known truth with XFS maybe it would be a good idea to have
> > 4K stacks and XFS be an impossible combination using the config tool.
I would prefer not to do that, we want to know where the problems
are - if we hide them like this it will just make them harder to
find and resolve. Certainly XFS is not the only subsystem with
problems here (even saw an _ext2_ stack overflow go past recently,
and I believe other filesystems can be much worse) - & when stacked
volume managers and other drivers enter the picture...
> It would be good if there was some warning in the 4K stack option help,
> there have been quite many cases already where the kernel broke with odd
> symptoms because of this switch.
>
> E.g.
> Warning: Use this option with care, as it might break your system under
> load. If you experience weird crashes or oopses, please retry with this
> option turned off.
If its not done already, perhaps 4KSTACKS could be reported in
the oops message (like PREEMPT and one or two other things are,
IIRC)?
cheers.
--
Nathan
prev parent reply other threads:[~2004-07-29 1:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-20 11:44 4K stack kernel get Oops in Filesystem stress test Cahya Wirawan
2004-07-20 12:04 ` Steve Lord
2004-07-20 14:39 ` Jeffrey E. Hundstad
2004-07-20 19:50 ` [2.6 patch] let 4KSTACKS depend on EXPERIMENTAL and XFS on 4KSTACKS=n Adrian Bunk
2004-07-20 20:42 ` Chris Wedgwood
2004-07-20 20:50 ` Adrian Bunk
2004-07-20 20:58 ` Chris Wedgwood
2004-07-29 6:09 ` Nathan Scott
2004-07-29 11:42 ` Adrian Bunk
2004-07-29 11:46 ` Arjan van de Ven
2004-07-29 21:11 ` Adrian Bunk
2004-07-29 21:44 ` Chris Wedgwood
2004-07-29 22:30 ` [xfs-masters] " Nathan Scott
2004-08-01 19:02 ` [2.6 patch] let 4KSTACKS depend on EXPERIMENTAL Adrian Bunk
2004-07-29 15:42 ` [2.6 patch] let 4KSTACKS depend on EXPERIMENTAL and XFS on 4KSTACKS=n Mika Bostrom
2004-07-29 16:09 ` Zwane Mwaikambo
2004-07-29 16:36 ` [2.6 patch] let 4KSTACKS depend on EXPERIMENTAL and XFS on 4KSTACKS Mika Bostrom
2004-07-22 7:27 ` 4K stack kernel get Oops in Filesystem stress test Amon Ott
2004-07-29 2:14 ` Nathan Scott [this message]
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=20040729021453.GG800@frodo \
--to=nathans@sgi.com \
--cc=ao@rsbac.org \
--cc=jeffrey.hundstad@mnsu.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=lord@xfs.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).