From: "Jan Beulich" Subject: RE: OOM problems Date: Mon, 15 Nov 2010 09:57:39 +0000 Message-ID: <4CE11223020000780002234C@vpn.id2.novell.com> References: <4CDE44E2.2060807@nuclearfallout.net> <4FA716B1526C7C4DB0375C6DADBC4EA38D80702C25@LONPMAILBOX01.citrite.net> <4CDE4C08.70309@nuclearfallout.net> <4FA716B1526C7C4DB0375C6DADBC4EA38D80702C2E@LONPMAILBOX01.citrite.net> <4CE1037402000078000222F0@vpn.id2.novell.com> <1289814037.21694.22.camel@ramone> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1289814037.21694.22.camel@ramone> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel Stodden Cc: Ian Pratt , "xen-devel@lists.xensource.com" , John Weekes List-Id: xen-devel@lists.xenproject.org >>> On 15.11.10 at 10:40, Daniel Stodden = wrote: > On Mon, 2010-11-15 at 03:55 -0500, Jan Beulich wrote: >> >>> On 13.11.10 at 10:13, Ian Pratt wrote: >> >> > What do the guests use for storage? (e.g. "blktap2 for VHD files = on >> >> an iscsi mounted ext3 volume") >> >>=20 >> >> Simple sparse .img files on a local ext4 RAID volume, using "file:". >> >=20 >> > Ah, if you're using loop it may be that you're just filling memory = with=20 >> > dirty pages. Older kernels certainly did this, not sure about newer = ones. >>=20 >> Shouldn't this lead to the calling process being throttled, instead of >> the system running into OOM? >=20 > They are throttled, but the single control I'm aware of > is /proc/sys/vm/dirty_ratio (or dirty_bytes, nowadays). Which is only > per process, not a global limit. Could well be that's part of the > problem -- outwitting mm with just too many writers on too many cores? >=20 > We had a bit of trouble when switching dom0 to 2.6.32, buffered writes > made it much easier than with e.g. 2.6.27 to drive everybody else into > costly reclaims. >=20 > The Oom shown here reports about ~650M in dirty pages. The fact alone > that this counts as on oom condition doesn't sound quite right in > itself. That qemu might just have dared to ask at the wrong point in > time. Indeed - dirty pages alone shouldn't resolve to OOM. > Just to get an idea -- how many guests did this box carry? >From what we know this requires just a single (Windows 7 or some such) guest, provided the guest has more memory than Dom0. Jan