Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1220618 > unrolled thread
| Started by | Michael Ellerman <mpe@ellerman.id.au> |
|---|---|
| First post | 2015-09-08 11:10 +0200 |
| Last post | 2015-09-10 02:50 +0200 |
| Articles | 5 — 3 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: [[PATCH v6 09/10] powerpc/perf/hv-24x7: Use PMU_TXN_READ interface Michael Ellerman <mpe@ellerman.id.au> - 2015-09-08 11:10 +0200
Re: [[PATCH v6 09/10] powerpc/perf/hv-24x7: Use PMU_TXN_READ interface Peter Zijlstra <peterz@infradead.org> - 2015-09-08 13:30 +0200
Re: [[PATCH v6 09/10] powerpc/perf/hv-24x7: Use PMU_TXN_READ interface Michael Ellerman <mpe@ellerman.id.au> - 2015-09-09 04:20 +0200
Re: [[PATCH v6 09/10] powerpc/perf/hv-24x7: Use PMU_TXN_READ interface Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-09-09 23:20 +0200
Re: [[PATCH v6 09/10] powerpc/perf/hv-24x7: Use PMU_TXN_READ interface Michael Ellerman <mpe@ellerman.id.au> - 2015-09-10 02:50 +0200
| From | Michael Ellerman <mpe@ellerman.id.au> |
|---|---|
| Date | 2015-09-08 11:10 +0200 |
| Subject | Re: [[PATCH v6 09/10] powerpc/perf/hv-24x7: Use PMU_TXN_READ interface |
| Message-ID | <q6n4C-8cb-9@gated-at.bofh.it> |
On Thu, 2015-09-03 at 20:07 -0700, Sukadev Bhattiprolu wrote: > The 24x7 counters in Powerpc allow monitoring a large number of counters > simultaneously. They also allow reading several counters in a single > HCALL so we can get a more consistent snapshot of the system. > > Use the PMU's transaction interface to monitor and read several event > counters at once. The idea is that users can group several 24x7 events > into a single group of events. We use the following logic to submit > the group of events to the PMU and read the values: > > pmu->start_txn() // Initialize before first event > > for each event in group > pmu->read(event); // Queue each event to be read > > pmu->commit_txn() // Read/update all queuedcounters > > The ->commit_txn() also updates the event counts in the respective > perf_event objects. The perf subsystem can then directly get the > event counts from the perf_event and can avoid submitting a new > ->read() request to the PMU. > > Thanks to input from Peter Zijlstra. > > Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> > --- > arch/powerpc/perf/hv-24x7.c | 166 ++++++++++++++++++++++++++++++++++++++++++- This looks fine to me from an arch perspective. I assume the whole series can go via tip-something? Acked-by: Michael Ellerman <mpe@ellerman.id.au> cheers -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Date | 2015-09-08 13:30 +0200 |
| Message-ID | <q6pg6-2No-13@gated-at.bofh.it> |
| In reply to | #1220618 |
On Tue, Sep 08, 2015 at 07:07:55PM +1000, Michael Ellerman wrote: > On Thu, 2015-09-03 at 20:07 -0700, Sukadev Bhattiprolu wrote: > > The 24x7 counters in Powerpc allow monitoring a large number of counters > > simultaneously. They also allow reading several counters in a single > > HCALL so we can get a more consistent snapshot of the system. > > > > Use the PMU's transaction interface to monitor and read several event > > counters at once. The idea is that users can group several 24x7 events > > into a single group of events. We use the following logic to submit > > the group of events to the PMU and read the values: > > > > pmu->start_txn() // Initialize before first event > > > > for each event in group > > pmu->read(event); // Queue each event to be read > > > > pmu->commit_txn() // Read/update all queuedcounters > > > > The ->commit_txn() also updates the event counts in the respective > > perf_event objects. The perf subsystem can then directly get the > > event counts from the perf_event and can avoid submitting a new > > ->read() request to the PMU. > > > > Thanks to input from Peter Zijlstra. > > > > Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> > > --- > > arch/powerpc/perf/hv-24x7.c | 166 ++++++++++++++++++++++++++++++++++++++++++- > > This looks fine to me from an arch perspective. I assume the whole series can > go via tip-something? Yeah, I've had it queued for a few days, there was one s390 compile fail reported by the build-bot, which I've just fixed. So if nothing weird happens, it should hit tip somewhere this week. > Acked-by: Michael Ellerman <mpe@ellerman.id.au> Thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Michael Ellerman <mpe@ellerman.id.au> |
|---|---|
| Date | 2015-09-09 04:20 +0200 |
| Message-ID | <q6D9o-660-11@gated-at.bofh.it> |
| In reply to | #1220708 |
On Tue, 2015-09-08 at 13:29 +0200, Peter Zijlstra wrote: > On Tue, Sep 08, 2015 at 07:07:55PM +1000, Michael Ellerman wrote: > > On Thu, 2015-09-03 at 20:07 -0700, Sukadev Bhattiprolu wrote: > > > The 24x7 counters in Powerpc allow monitoring a large number of counters > > > simultaneously. They also allow reading several counters in a single > > > HCALL so we can get a more consistent snapshot of the system. > > > > > > Use the PMU's transaction interface to monitor and read several event > > > counters at once. The idea is that users can group several 24x7 events > > > into a single group of events. We use the following logic to submit > > > the group of events to the PMU and read the values: > > > > > > pmu->start_txn() // Initialize before first event > > > > > > for each event in group > > > pmu->read(event); // Queue each event to be read > > > > > > pmu->commit_txn() // Read/update all queuedcounters > > > > > > The ->commit_txn() also updates the event counts in the respective > > > perf_event objects. The perf subsystem can then directly get the > > > event counts from the perf_event and can avoid submitting a new > > > ->read() request to the PMU. > > > > > > Thanks to input from Peter Zijlstra. > > > > > > Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> > > > --- > > > arch/powerpc/perf/hv-24x7.c | 166 ++++++++++++++++++++++++++++++++++++++++++- > > > > This looks fine to me from an arch perspective. I assume the whole series can > > go via tip-something? > > Yeah, I've had it queued for a few days, there was one s390 compile > fail reported by the build-bot, which I've just fixed. So if nothing > weird happens, it should hit tip somewhere this week. Great, thanks. Now Sukadev can focus on getting the JSON events support merged, hopefully it won't require another 16 versions. cheers -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> |
|---|---|
| Date | 2015-09-09 23:20 +0200 |
| Message-ID | <q6UWD-6st-41@gated-at.bofh.it> |
| In reply to | #1221180 |
Michael Ellerman [mpe@ellerman.id.au] wrote: | > > This looks fine to me from an arch perspective. I assume the whole series can | > > go via tip-something? | > | > Yeah, I've had it queued for a few days, there was one s390 compile | > fail reported by the build-bot, which I've just fixed. So if nothing | > weird happens, it should hit tip somewhere this week. Peter, thanks for fixing the typo. | | Great, thanks. | | Now Sukadev can focus on getting the JSON events support merged, hopefully it | won't require another 16 versions. :-) BTW, other than an occasional patch from Andi Kleen (on top of the v16), I have not received any comments on the JSON file patch set, so I don't have a v17 in the pipeline... Sukadev -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Michael Ellerman <mpe@ellerman.id.au> |
|---|---|
| Date | 2015-09-10 02:50 +0200 |
| Message-ID | <q6YdP-2yV-15@gated-at.bofh.it> |
| In reply to | #1221734 |
On Wed, 2015-09-09 at 14:12 -0700, Sukadev Bhattiprolu wrote: > Michael Ellerman [mpe@ellerman.id.au] wrote: > | > > This looks fine to me from an arch perspective. I assume the whole series can > | > > go via tip-something? > | > > | > Yeah, I've had it queued for a few days, there was one s390 compile > | > fail reported by the build-bot, which I've just fixed. So if nothing > | > weird happens, it should hit tip somewhere this week. > > Peter, thanks for fixing the typo. > > | > | Great, thanks. > | > | Now Sukadev can focus on getting the JSON events support merged, hopefully it > | won't require another 16 versions. > > :-) BTW, other than an occasional patch from Andi Kleen (on top of the v16), I > have not received any comments on the JSON file patch set, so I don't have a > v17 in the pipeline... Yeah. I assume everyone's happy with it and someone is going to pick it up for the next merge window? cheers -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web