From: Fenghua Yu <fenghua.yu@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Fenghua Yu <fenghua.yu@intel.com>, Shaohua Li <shli@fb.com>,
LKML <linux-kernel@vger.kernel.org>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: [PATCH] x86/intel_rdt: reinitialize cbm for new group allocation
Date: Mon, 9 Jan 2017 14:17:55 -0800 [thread overview]
Message-ID: <20170109221754.GA47453@linux.intel.com> (raw)
In-Reply-To: <alpine.DEB.2.20.1701092258540.3534@nanos>
On Mon, Jan 09, 2017 at 11:03:59PM +0100, Thomas Gleixner wrote:
> On Mon, 9 Jan 2017, Fenghua Yu wrote:
> > On Fri, Jan 06, 2017 at 04:05:19PM -0800, Shaohua Li wrote:
> > But since you come here now, I would think reseting the CBM in
> > closid_free() is better.
>
> No. closid_free() is the wrong place. closid_alloc/free() merily deal with
> the bitmap and nothing else.
>
> If you really want to do that, then this needs a seperate function called
> from rmdir.
>
> > The reason is user can see "right" max_cbm even through rdmsr after
> > rmdir, ie no gap for cbm values between rmdir and the next mkdir.
>
> And the value pf this is?
Not very useful value, but user may get a bit confused by a non max_cbm if
a closid is not used after rdmsr. A couple of users actually asked this.
Reseting to initial max_cbm may reduce questions from users.
>
> The closid is not usable after the rmdir, so it's really completely
> uninteresting when the user can read the old value from that configuration
> MSR.
Agree with you. The cbm value is uninteresting after rmdir.
>
> When the closid is reused then it hardly matters either what's in those cbm
> values (the old or max_cbm).
>
> Thanks,
>
> tglx
next prev parent reply other threads:[~2017-01-09 22:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-07 0:05 Shaohua Li
2017-01-09 21:56 ` Fenghua Yu
2017-01-09 22:03 ` Thomas Gleixner
2017-01-09 22:17 ` Fenghua Yu [this message]
2017-01-09 22:24 ` Shaohua Li
2017-01-09 21:58 ` Thomas Gleixner
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=20170109221754.GA47453@linux.intel.com \
--to=fenghua.yu@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=shli@fb.com \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®