Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1540841 > unrolled thread
| Started by | Linus Torvalds <torvalds@linux-foundation.org> |
|---|---|
| First post | 2016-12-13 05:30 +0100 |
| Last post | 2016-12-17 02:50 +0100 |
| Articles | 4 — 4 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [GIT pull] x86/cache: Updates for 4.10 Linus Torvalds <torvalds@linux-foundation.org> - 2016-12-13 05:30 +0100
Re: [GIT pull] x86/cache: Updates for 4.10 Peter Zijlstra <peterz@infradead.org> - 2016-12-13 09:10 +0100
Re: [GIT pull] x86/cache: Updates for 4.10 Thomas Gleixner <tglx@linutronix.de> - 2016-12-13 10:10 +0100
Re: [GIT pull] x86/cache: Updates for 4.10 Tony Luck <tony.luck@gmail.com> - 2016-12-17 02:50 +0100
| From | Linus Torvalds <torvalds@linux-foundation.org> |
|---|---|
| Date | 2016-12-13 05:30 +0100 |
| Subject | Re: [GIT pull] x86/cache: Updates for 4.10 |
| Message-ID | <sNMSZ-502-7@gated-at.bofh.it> |
On Mon, Dec 12, 2016 at 1:53 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
>
> This update provides the support for Intel Cache Allocation Technology, a
> cache partitioning mechanism.
Ugh, this is some funky stuff. And it's entirely x86-specific, with a
rather odd special filesystem interface.
It looks pretty self-contained (good), but it also looks majorly
strange. I will have to think about this. What are the main/expected
users?
Linus
[toc] | [next] | [standalone]
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Date | 2016-12-13 09:10 +0100 |
| Message-ID | <sNQjU-7cA-19@gated-at.bofh.it> |
| In reply to | #1540841 |
On Mon, Dec 12, 2016 at 08:26:50PM -0800, Linus Torvalds wrote: > On Mon, Dec 12, 2016 at 1:53 AM, Thomas Gleixner <tglx@linutronix.de> wrote: > > > > This update provides the support for Intel Cache Allocation Technology, a > > cache partitioning mechanism. > > Ugh, this is some funky stuff. And it's entirely x86-specific, with a > rather odd special filesystem interface. > > It looks pretty self-contained (good), but it also looks majorly > strange. I will have to think about this. What are the main/expected > users? From what I know its aimed at two groups of users: Firstly the Virtual Machine usecase, where, by assigning cache masks to individual VMs you avoid one highly active VM trashing the cache of another. Secondly the Real-Time usecase, where we can assign cache slices to individual CPUs such that we can better isolate RT and !RT workloads running on the same cache domain (socket).
[toc] | [prev] | [next] | [standalone]
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Date | 2016-12-13 10:10 +0100 |
| Message-ID | <sNRfX-7LI-17@gated-at.bofh.it> |
| In reply to | #1540841 |
On Mon, 12 Dec 2016, Linus Torvalds wrote: > On Mon, Dec 12, 2016 at 1:53 AM, Thomas Gleixner <tglx@linutronix.de> wrote: > > > > This update provides the support for Intel Cache Allocation Technology, a > > cache partitioning mechanism. Sorry for being terse in the pull request. > Ugh, this is some funky stuff. And it's entirely x86-specific, with a > rather odd special filesystem interface. Yes. The interface is odd, but the hardware interface of that CAT stuff is odd as well. We tried hard to come up with an abstraction, but that only allows rather simple partitioning, but no way of sharing and dealing with the per package nature of this mechanism. In the end we decided to expose the allocation bitmaps directly so all combinations of the hardware can be utilized. There are two ways of associating a cache partition: - Task A task can be added to a resource group. It uses the cache partition associated to the group. - CPU All tasks which are not member of a resource group use the group to which the CPU they are running on is associated with. That allows for simple CPU based partitioning schemes. > It looks pretty self-contained (good), but it also looks majorly > strange. I will have to think about this. What are the main/expected > users? - Virtualization so a VM can only trash only the associated part of the cash w/o disturbing others - Real-Time systems to seperate RT and general workloads. - Latency sensitive enterprise workloads - In theory this also can be used to protect against cache side channel attacks. Thanks, tglx
[toc] | [prev] | [next] | [standalone]
| From | Tony Luck <tony.luck@gmail.com> |
|---|---|
| Date | 2016-12-17 02:50 +0100 |
| Message-ID | <sPcim-2Vn-13@gated-at.bofh.it> |
| In reply to | #1540915 |
On Tue, Dec 13, 2016 at 1:01 AM, Thomas Gleixner <tglx@linutronix.de> wrote: > On Mon, 12 Dec 2016, Linus Torvalds wrote: > >> On Mon, Dec 12, 2016 at 1:53 AM, Thomas Gleixner <tglx@linutronix.de> wrote: >> Ugh, this is some funky stuff. And it's entirely x86-specific, with a >> rather odd special filesystem interface. > > Yes. The interface is odd, but the hardware interface of that CAT stuff is > odd as well. > > We tried hard to come up with an abstraction, but that only allows rather > simple partitioning, but no way of sharing and dealing with the per package > nature of this mechanism. > > In the end we decided to expose the allocation bitmaps directly so all > combinations of the hardware can be utilized. Note that there are going to be more resources that can be controlled using the same mechanism (PQR_ASSOC.CLOSID indexes into an array of resource specific MSRs that specify how much of the resource is available to the current process). Next one should be along fairly soon. Keep an eye on chapter 17 in volume 3 of the SDM. The code changes for this next resource involve new validation functions (the resource isn't a cache, and the MSRs for it aren't bitmasks). But I think it extends nicely. -Tony
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web