From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Bob Liu <bob.liu@oracle.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Keir Fraser <keir@xen.org>, Jan Beulich <JBeulich@suse.com>,
Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH] xen/tmem: Fix uses of unmatched __map_domain_page()
Date: Fri, 6 Dec 2013 09:38:42 -0500 [thread overview]
Message-ID: <20131206143842.GI3096@pegasus.dumpdata.com> (raw)
In-Reply-To: <52A1726E.2090901@oracle.com>
On Fri, Dec 06, 2013 at 02:45:02PM +0800, Bob Liu wrote:
>
> On 12/04/2013 05:00 AM, Konrad Rzeszutek Wilk wrote:
> > On Wed, Nov 27, 2013 at 02:55:04PM +0000, Andrew Cooper wrote:
> >> I noticed this while looking through tmem_xen.h with regards to the
> >> recently-discovered Coverity issues. As the issue was not noticed or
> >> referenced in Bob's cleanup series, I figured it was fair game, given its
> >> severity.
> >>
> >> __map_domain_page() *must* be matched with an unmap_domain_page(). These five
> >> static inline functions each map a page (or two), then throw away the context
> >> needed to unmap it.
> >
> > I was trying to figure out how it worked before. I had been running with
> > tze enabled (I hope!) and I did not trigger any mapcache exhaustion.
> >
> > Ah wait, I had been on my nighly regression system - which has some
> > guests that use tmem but they don't create any load fast enough.
> >
> > Let me queue this up and test it. Bob, would appreciate you testing
> > it too - just in case.
> >
>
> I've done the testing with this patch on trunk and I didn't see any problem.
>
> Both dedup and tze are enabled in my testing and I'm sure they were in use.
>
> [root@ca-test65 bob.liu]# xm tmem-list --long --all |
> /usr/sbin/xen-tmem-list-parse
> WARNING: xend/xm is deprecated.
> total tmem ops=4139783 (errors=5461) -- tmem pages avail=20918
> datastructs: objs=1039 (max=2130) pgps=32422 (max=53149) nodes=1994
> (max=2803) pages=26709 (max=46611) pcds=13776 (max=35691) deduped:
> avg=6.35% (curr=35.47%) tze savings=4.34%
Thank you!
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Jan, Andrew,
Do you guys want me to repost this with the 'Tested-by: Bob Liu
<bobliu@oracle.com> tag and my tag so it can go straight away in the
code or would you prefer to wait until I have a git branch ready?
>
> Thanks,
> -Bob
next prev parent reply other threads:[~2013-12-06 14:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-27 14:55 [PATCH] xen/tmem: Fix uses of unmatched __map_domain_page() Andrew Cooper
2013-11-29 8:49 ` Bob Liu
2013-12-03 21:00 ` Konrad Rzeszutek Wilk
2013-12-03 21:48 ` Andrew Cooper
2013-12-04 17:02 ` Andrew Cooper
2013-12-06 6:45 ` Bob Liu
2013-12-06 14:38 ` Konrad Rzeszutek Wilk [this message]
2013-12-06 14:40 ` Andrew Cooper
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=20131206143842.GI3096@pegasus.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=bob.liu@oracle.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xen.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.