Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-23 Thread Ingo Molnar
* Dave Hansen wrote: > On 07/22/2013 03:06 AM, Ingo Molnar wrote: > > Btw., would be nice to also integrate these VM counters into perf as well, > > as an instrumentation variant/option. > > > > It could be done in an almost zero overhead fashion using jump-labels I > > think. > > > > [

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-23 Thread Ingo Molnar
* Dave Hansen d...@sr71.net wrote: On 07/22/2013 03:06 AM, Ingo Molnar wrote: Btw., would be nice to also integrate these VM counters into perf as well, as an instrumentation variant/option. It could be done in an almost zero overhead fashion using jump-labels I think. [ Just

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-22 Thread Dave Hansen
On 07/22/2013 03:06 AM, Ingo Molnar wrote: > Btw., would be nice to also integrate these VM counters into perf as well, > as an instrumentation variant/option. > > It could be done in an almost zero overhead fashion using jump-labels I > think. > > [ Just in case someone is bored to death and

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-22 Thread Ingo Molnar
* Dave Hansen wrote: > On 07/19/2013 04:38 AM, Raghavendra KT wrote: > > While measuring non - PLE performance, one of the bottleneck, I am seeing is > > flush tlbs. > > perf had helped in alaysing a bit there, but this patch would help > > in precise calculation. It will aslo help in tuning

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-22 Thread Ingo Molnar
* Dave Hansen d...@sr71.net wrote: On 07/19/2013 04:38 AM, Raghavendra KT wrote: While measuring non - PLE performance, one of the bottleneck, I am seeing is flush tlbs. perf had helped in alaysing a bit there, but this patch would help in precise calculation. It will aslo help in

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-22 Thread Dave Hansen
On 07/22/2013 03:06 AM, Ingo Molnar wrote: Btw., would be nice to also integrate these VM counters into perf as well, as an instrumentation variant/option. It could be done in an almost zero overhead fashion using jump-labels I think. [ Just in case someone is bored to death and is

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-20 Thread Raghavendra K T
On 07/19/2013 08:50 PM, Dave Hansen wrote: On 07/19/2013 04:38 AM, Raghavendra KT wrote: While measuring non - PLE performance, one of the bottleneck, I am seeing is flush tlbs. perf had helped in alaysing a bit there, but this patch would help in precise calculation. It will aslo help in

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-20 Thread Raghavendra K T
On 07/19/2013 08:50 PM, Dave Hansen wrote: On 07/19/2013 04:38 AM, Raghavendra KT wrote: While measuring non - PLE performance, one of the bottleneck, I am seeing is flush tlbs. perf had helped in alaysing a bit there, but this patch would help in precise calculation. It will aslo help in

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-19 Thread Dave Hansen
On 07/19/2013 01:28 AM, Ingo Molnar wrote: > UP is slowly going extinct, but in any case these counters ought to inform > us about TLB flushes even on UP systems: > > > > +NR_TLB_LOCAL_FLUSH_ALL, > > > +NR_TLB_LOCAL_FLUSH_ONE, > > > +

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-19 Thread Dave Hansen
On 07/19/2013 04:38 AM, Raghavendra KT wrote: > While measuring non - PLE performance, one of the bottleneck, I am seeing is > flush tlbs. > perf had helped in alaysing a bit there, but this patch would help > in precise calculation. It will aslo help in tuning the PLE window > experiments (larger

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-19 Thread Raghavendra KT
On Wed, Jul 17, 2013 at 5:14 AM, Dave Hansen wrote: > > I was investigating some TLB flush scaling issues and realized > that we do not have any good methods for figuring out how many > TLB flushes we are doing. > > It would be nice to be able to do these in generic code, but the >

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-19 Thread Ingo Molnar
* Andrew Morton wrote: > On Wed, 17 Jul 2013 09:21:00 +0200 Ingo Molnar wrote: > > > > > * Dave Hansen wrote: > > > > > I was investigating some TLB flush scaling issues and realized > > > that we do not have any good methods for figuring out how many > > > TLB flushes we are doing. > > >

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-19 Thread Ingo Molnar
* Andrew Morton a...@linux-foundation.org wrote: On Wed, 17 Jul 2013 09:21:00 +0200 Ingo Molnar mi...@kernel.org wrote: * Dave Hansen d...@sr71.net wrote: I was investigating some TLB flush scaling issues and realized that we do not have any good methods for figuring out how

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-19 Thread Raghavendra KT
On Wed, Jul 17, 2013 at 5:14 AM, Dave Hansen d...@sr71.net wrote: I was investigating some TLB flush scaling issues and realized that we do not have any good methods for figuring out how many TLB flushes we are doing. It would be nice to be able to do these in generic code, but the

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-19 Thread Dave Hansen
On 07/19/2013 04:38 AM, Raghavendra KT wrote: While measuring non - PLE performance, one of the bottleneck, I am seeing is flush tlbs. perf had helped in alaysing a bit there, but this patch would help in precise calculation. It will aslo help in tuning the PLE window experiments (larger PLE

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-19 Thread Dave Hansen
On 07/19/2013 01:28 AM, Ingo Molnar wrote: UP is slowly going extinct, but in any case these counters ought to inform us about TLB flushes even on UP systems: +NR_TLB_LOCAL_FLUSH_ALL, +NR_TLB_LOCAL_FLUSH_ONE, +NR_TLB_LOCAL_FLUSH_ONE_KERNEL,

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-18 Thread Andrew Morton
On Wed, 17 Jul 2013 09:21:00 +0200 Ingo Molnar wrote: > > * Dave Hansen wrote: > > > I was investigating some TLB flush scaling issues and realized > > that we do not have any good methods for figuring out how many > > TLB flushes we are doing. > > > > It would be nice to be able to do these

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-18 Thread Andrew Morton
On Wed, 17 Jul 2013 09:21:00 +0200 Ingo Molnar mi...@kernel.org wrote: * Dave Hansen d...@sr71.net wrote: I was investigating some TLB flush scaling issues and realized that we do not have any good methods for figuring out how many TLB flushes we are doing. It would be nice to be

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-17 Thread Ingo Molnar
* Dave Hansen wrote: > I was investigating some TLB flush scaling issues and realized > that we do not have any good methods for figuring out how many > TLB flushes we are doing. > > It would be nice to be able to do these in generic code, but the > arch-independent calls don't explicitly

Re: [RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-17 Thread Ingo Molnar
* Dave Hansen d...@sr71.net wrote: I was investigating some TLB flush scaling issues and realized that we do not have any good methods for figuring out how many TLB flushes we are doing. It would be nice to be able to do these in generic code, but the arch-independent calls don't

[RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-16 Thread Dave Hansen
I was investigating some TLB flush scaling issues and realized that we do not have any good methods for figuring out how many TLB flushes we are doing. It would be nice to be able to do these in generic code, but the arch-independent calls don't explicitly specify whether we actually need to do

Re: [PATCH] mm: vmstats: tlb flush counters

2013-07-16 Thread Dave Hansen
On 07/16/2013 04:36 PM, Wanpeng Li wrote: > On Tue, Jul 16, 2013 at 08:53:04AM -0700, Dave Hansen wrote: >> I was investigating some TLB flush scaling issues and realized >> that we do not have any good methods for figuring out how many >> TLB flushes we are doing. >> >> It would be nice to be

[PATCH] mm: vmstats: tlb flush counters

2013-07-16 Thread Dave Hansen
I was investigating some TLB flush scaling issues and realized that we do not have any good methods for figuring out how many TLB flushes we are doing. It would be nice to be able to do these in generic code, but the arch-independent calls don't explicitly specify whether we actually need to do

[PATCH] mm: vmstats: tlb flush counters

2013-07-16 Thread Dave Hansen
I was investigating some TLB flush scaling issues and realized that we do not have any good methods for figuring out how many TLB flushes we are doing. It would be nice to be able to do these in generic code, but the arch-independent calls don't explicitly specify whether we actually need to do

Re: [PATCH] mm: vmstats: tlb flush counters

2013-07-16 Thread Dave Hansen
On 07/16/2013 04:36 PM, Wanpeng Li wrote: On Tue, Jul 16, 2013 at 08:53:04AM -0700, Dave Hansen wrote: I was investigating some TLB flush scaling issues and realized that we do not have any good methods for figuring out how many TLB flushes we are doing. It would be nice to be able to do

[RESEND][PATCH] mm: vmstats: tlb flush counters

2013-07-16 Thread Dave Hansen
I was investigating some TLB flush scaling issues and realized that we do not have any good methods for figuring out how many TLB flushes we are doing. It would be nice to be able to do these in generic code, but the arch-independent calls don't explicitly specify whether we actually need to do