From: "Alan D. Brunelle" <alan.brunelle@hp.com>
To: linux-btrace@vger.kernel.org
Subject: Re: blktrace could cause system hang under 1G memory size and 20
Date: Tue, 31 Aug 2010 11:32:07 +0000 [thread overview]
Message-ID: <4C7CE837.2020401@hp.com> (raw)
In-Reply-To: <AANLkTi=++sLx+dJc-TRp41Sog+_Eqy9nNesumvCEd90o@mail.gmail.com>
On 08/31/2010 02:32 AM, Xuekun Hu wrote:
> Hi, Guys
>
> My Linux system (2.6.18, x86_64, RHEL5) only has 1G memory, and I
> would like to use blktrace (1.0.1) to capture 20 minutes of IO traces
> with medium IO traffics. After 20 minutes, system would hang. I think
> at this phase, blktrace is exiting and printing the summary section
> that number of events captured on each cpu.
>
> I'm guessing the system hang due to out of memory. (I can ping the
> system, but can't login). I'm wondering is there a workaround?
>
> Thx, Xuekun
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrace" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Well, you'd have to prove that the system was out of memory - note that
blktrace statically allocates it's memory at the beginning of the run
(or at least, used to). So it's direct use of memory shouldn't expand
over time. Indirectly - as it puts data out to disk - it could be
consuming buffers for that operation.
One workaround (to try) would be to go into network mode and send the
data to some other machine to process. Of course, network traffic
consumes its own buffers as well...
Another option is to limit the traces to collect - if there are only
certain things you are interested in, you could limit collection &
saving to just those traces. [One thing to disable would be the I/O
scheduler traffic if you are not interested in that - I found in the
past that some of those (CFQ) could generate a tremendous amount of traces.]
Regards,
Alan
next prev parent reply other threads:[~2010-08-31 11:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-31 6:32 blktrace could cause system hang under 1G memory size and 20 minutes duration Xuekun Hu
2010-08-31 11:32 ` Alan D. Brunelle [this message]
2010-08-31 12:25 ` blktrace could cause system hang under 1G memory size and 20 Xuekun Hu
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=4C7CE837.2020401@hp.com \
--to=alan.brunelle@hp.com \
--cc=linux-btrace@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.