From: John Weekes <lists.xen@nuclearfallout.net>
To: Daniel Stodden <daniel.stodden@citrix.com>
Cc: Ian Pratt <Ian.Pratt@eu.citrix.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Jan Beulich <JBeulich@novell.com>
Subject: Re: OOM problems
Date: Wed, 17 Nov 2010 19:29:28 -0800 [thread overview]
Message-ID: <4CE49D98.2030402@nuclearfallout.net> (raw)
In-Reply-To: <1290043433.11102.1742.camel@agari.van.xensource.com>
Daniel:
> Which branch/revision does latest pvops mean?
stable-2.6.32, using the latest pull as of today. (I also tried
next-2.6.37, but it wouldn't boot for me.)
> Would you be willing to try and reproduce that again with the XCP blktap
> (userspace, not kernel) sources? Just to further isolate the problem.
> Those see a lot of testing. I certainly can't come up with a single fix
> to the aio layer, in ages. But I'm never sure about other stuff
> potentially broken in userland.
I'll have to give it a try. Normal blktap still isn't working with
pv_ops, though, so I hope this is a drop-in for blktap2.
In my last bit of troubleshooting, I took O_DIRECT out of the open call
in tools/blktap2/drivers/block-aio.c, and preliminary testing indicates
that this might have eliminated the problem with corruption. I'm testing
further now, but could there be an issue with alignment (since the
kernel is apparently very strict about it with direct I/O)? (Removing
this flag also brings back in use of the page cache, of course.)
> If dio is definitely not what you feel you need, let's get back your
> original OOM problem. Did reducing dom0 vcpus help? 24 of them is quite
> aggressive, to say the least.
When I switched to aio, I reduced the vcpus to 2 (I needed to do this
with dom0_max_vcpus, rather than through xend-config.sxp -- the latter
wouldn't always boot). I haven't separately tried cached I/O with
reduced CPUs yet, except in the lab; and unfortunately I still can't get
the problem to happen in the lab, no matter what I try.
> If that alone doesn't help, I'd definitely try and check vm.dirty_ratio.
> There must be a tradeoff which doesn't imply scribbling the better half
> of 1.5GB main memory.
The default for dirty_ratio is 20. I tried halving that to 10, but it
didn't help. I could try lower, but I like the thought of keeping this
in user space, if possible, so I've been pursuing the blktap2 path most
aggressively.
Ian:
> That's disturbing. It might be worth trying to drop the number of VCPUs in dom0 to 1 and then try to repro.
> BTW: for production use I'd currently be strongly inclined to use the XCP 2.6.32 kernel.
Interesting, ok.
-John
next prev parent reply other threads:[~2010-11-18 3:29 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-13 7:57 OOM problems John Weekes
2010-11-13 8:14 ` Ian Pratt
2010-11-13 8:27 ` John Weekes
2010-11-13 9:13 ` Ian Pratt
2010-11-13 9:43 ` John Weekes
2010-11-13 10:19 ` John Weekes
2010-11-14 9:53 ` Daniel Stodden
2010-11-15 8:55 ` Jan Beulich
2010-11-15 9:40 ` Daniel Stodden
2010-11-15 9:57 ` Jan Beulich
2010-11-15 17:59 ` John Weekes
2010-11-16 19:54 ` John Weekes
2010-11-17 20:10 ` Ian Pratt
2010-11-17 22:02 ` John Weekes
2010-11-18 0:56 ` Ian Pratt
2010-11-18 1:23 ` Daniel Stodden
2010-11-18 3:29 ` John Weekes [this message]
2010-11-18 4:08 ` Daniel Stodden
2010-11-18 7:15 ` John Weekes
2010-11-18 10:41 ` Daniel Stodden
2010-11-19 7:27 ` John Weekes
2010-11-15 14:17 ` Stefano Stabellini
2010-11-13 18:15 ` George Shuklin
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=4CE49D98.2030402@nuclearfallout.net \
--to=lists.xen@nuclearfallout.net \
--cc=Ian.Pratt@eu.citrix.com \
--cc=JBeulich@novell.com \
--cc=daniel.stodden@citrix.com \
--cc=xen-devel@lists.xensource.com \
/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.