CVS log for xfs-linux/support/ktrace.h

[BACK] Up to [Development] / xfs-linux / support

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: HEAD


Revision 1.17 / (download) - annotate - [select for diffs], Fri Feb 22 15:02:07 2008 UTC (9 years, 7 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +1 -0 lines
Diff to previous 1.16 (unified)

Use power-of-2 sized buffers to reduce overhead

Now that the ktrace_enter() code is using atomics,
the non-power-of-2 buffer sizes - which require modulus
operations to get the index - are showing up as using
substantial CPU in the profiles.

Force the buffer sizes to be rounded up to the nearest
power of two and use masking rather than modulus operations
to convert the index counter to the buffer index. This
reduces ktrace_enter overhead to 8% of a CPU time, and
again almost halves the trace intensive test runtime.
Merge of xfs-linux-melb:xfs-kern:30538a by kenmcd.

  Use power-of-2 buffer sizes so we can use more efficient
  masking operations to get the buffer index.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>