Re: Should we be using unlikely() around tests of GFP_ZERO?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Rostedt
Date: Monday, January 3, 2011 - 6:45 am

On Mon, 2011-01-03 at 09:40 +0200, Pekka Enberg wrote:

Note, you could do it yourself too. Just enable:

  Kernel Hacking -> Tracers -> Branch Profiling
    (Trace likely/unlikely profiler)

   CONFIG_PROFILE_ANNOTATED_BRANCHES

Then search /debug/tracing/trace_stats/branch_annotated.

(hmm, the help in Kconfig is wrong, I need to fix that)


Anyway, here's my box. I just started it an hour ago, and have not been
doing too much on it yet. But here's what I got (using SLUB)


 correct incorrect  %        Function                  File              Line
 ------- ---------  -        --------                  ----              ----
 6890998  2784830  28        slab_alloc                slub.c            1719

That's incorrect 28% of the time.

-- Steve


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Should we be using unlikely() around tests of GFP_ZERO?, Theodore Ts'o, (Sun Jan 2, 4:48 pm)
Re: Should we be using unlikely() around tests of GFP_ZERO?, Steven Rostedt, (Mon Jan 3, 6:45 am)