Re: [PATCH 2.6.9-rc2 2/2] enhanced MM accounting data collection

From: Paul Jackson
Date: Tue Sep 28 2004 - 08:33:20 EST


Robin wrote:
> I have benchmarked these hooks a very long time ago. The number and
> location has not changed appreciably.

These results seem reasonable ... thanks.

> The size was never very noticable.

But would the time cost of being out of line be noticable either?
Actually, being out of line might be a tick faster, if it reduced by a
cache line what was needed for a common execution path.

> Originally, there was a 5% decrease in performance with the writing of
> the accounting data. There was another unfortunate side effect that some
> of the CSA metrics became much worse. This problem was later identified
> and fixed.

Is there any non-trivial risk that some other "unfortunate side affect"
exists today, that we'd find on benchmarking?

I'm not sure its worth benchmarking again, but I slightly suspect it is,
and if benchmarking was done, I'd do it with these calls both inline and
out of line, to see what affect that had on runtime. If no affect on
runtime, I'd tend toward the out of line calls - at least saving a
little kernel text space.

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@xxxxxxx> 1.650.933.1373
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/