[lkml]   [2013]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] mm: cache largest vma

* Davidlohr Bueso <> wrote:

> Btw, do you suggest using a high level tool such as perf for getting
> this data or sprinkling get_cycles() in find_vma() -- I'd think that the
> first isn't fine grained enough, while the later will probably variate a
> lot from run to run but the ratio should be rather constant.

LOL - I guess I should have read your mail before replying to it ;-)

Yes, I think get_cycles() works better in this case - not due to
granularity (perf stat will report cycle granular just fine), but due to
the size of the critical path you'll be measuring. You really want to
extract the delta, because it's probably so much smaller than the overhead
of the workload itself.

[ We still don't have good 'measure overhead from instruction X to
instruction Y' delta measurement infrastructure in perf yet, although
Frederic is working on such a trigger/delta facility AFAIK. ]



 \ /
  Last update: 2013-11-04 09:01    [W:0.135 / U:3.176 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site