From: Jana Saout <jana@saout.de>
To: xen-devel@lists.xensource.com
Subject: Self-ballooning question / cache issue
Date: Sun, 29 Apr 2012 21:34:18 +0200 [thread overview]
Message-ID: <1335728058.4574.18.camel@localhost> (raw)
Hello,
I have been testing autoballooning on a production Xen system today
(with cleancache + frontswap on Xen-provided tmem). For most of the
idle or CPU-centric VMs it seems to work just fine.
However, on one of the web-serving VMs, there is also a cron job running
every few minutes which runs over a rather large directory (plus, this
directory is on OCFS2 so this is a rather time-consuming process). Now,
if the dcache/inode cache is large enough (which it was before, since
the VM got allocated 4 GB and is only using 1-2 most of the time), this
was not a problem.
Now, with self-ballooning, the memory gets reduced to somewhat between 1
and 2 GB and after a few minutes the load is going through the ceiling.
Jobs reading through said directories are piling up (stuck in D state,
waiting for the FS). And most of the time kswapd is spinning at 100%.
If I deactivate self-ballooning and assign the VM 3 GB, everything goes
back to normal after a few minutes. (and, "ls -l" on said directory is
served from the cache again).
Now, I am aware that said problem is a self-made one. The directory was
not actually supposed to contain that many files and the next job not
waiting for the previous job to terminate is cause for trouble - but
still, I would consider this a possible regression since it seems
self-ballooning is constantly thrashing the VM's caches. Not all caches
can be saved in cleancache.
What about an additional tunable: a user-specified amount of pages that
is added on top of the computed target number of pages? This way, one
could manually reserve a bit more room for other types of caches. (in
fact, I might try this myself, since it shouldn't be too hard to do so)
Any opinions on this?
Thank you,
Jana
next reply other threads:[~2012-04-29 19:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-29 19:34 Jana Saout [this message]
2012-05-01 16:52 ` Self-ballooning question / cache issue Dan Magenheimer
2012-05-02 10:13 ` Jana Saout
2012-05-02 17:51 ` Dan Magenheimer
2012-05-10 14:42 ` Konrad Rzeszutek Wilk
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=1335728058.4574.18.camel@localhost \
--to=jana@saout.de \
--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 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).