From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: adilger_irq patch
Date: Mon, 22 Sep 2003 23:21:14 +0000 [thread overview]
Message-ID: <marc-linux-ia64-106427289505563@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-106426969402495@msgid-missing>
>>>>> On Mon, 22 Sep 2003 16:21:14 -0600, Andreas Dilger <adilger@clusterfs.com> said:
Andreas> Hi, below is a patch that we have been running on ia64 for
Andreas> several months now. It makes the IRQ stack overflow
Andreas> checking a bit more robust, and also adds a config option
Andreas> to be consistent with i386.
Andreas> One important change is that stack overflow messages to the
Andreas> console are rate limited, because without it if you ever
Andreas> hit this your console will continually spew messages as the
Andreas> console output is slower than the IRQ rate and you will
Andreas> continue to be over the stack limit forever. This causes
Andreas> the machine to effectively lock up without the rate
Andreas> limiting.
Well, there already _was_ rate-limiting code. Are you saying that the
rate is too high (i.e., your console is so slow that it cannot sustain
an average rate of 1 warning message per second)? If so, I suppose
you could reduce the rate to something lower. But you might also want
to consider configuring your console for higher speed (with the HP
firmware, you can use the "baud" EFI command).
Andreas> The stack overflow margin is increased slightly for larger
Andreas> stack sizes, because we probably shouldn't be getting so
Andreas> close to the end of a larger 64kB stack either. Not really
Andreas> critical, we never run with 64kB stacks.
- if ((sp - bsp) < 1024) {
+ if (unlikely((sp - bsp) <
+ 1024 + (IA64_STK_OFFSET > 32768 ? 8192 : 0))) {
This doesn't make any sense to me. Why should the safety-margin be
bigger for larger stack sizes? I can see why you might want more than
1KB, but I don't think this minimum should dependend on the max. stack
size.
Given this:
+ show_stack(0);
you _definitely_ want to set the minimum >1KByte. Note that show_stack()
calls unw_init_running(), which allocates ~1KByte all by itself.
--david
prev parent reply other threads:[~2003-09-22 23:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-22 22:21 adilger_irq patch Andreas Dilger
2003-09-22 23:21 ` David Mosberger [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=marc-linux-ia64-106427289505563@msgid-missing \
--to=davidm@napali.hpl.hp.com \
--cc=linux-ia64@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