Re: stat very inefficient

Ulrich Drepper
2004-07-29T07:47:22Z

Peter Chubb wrote:

> With hot cache the system time is really small.

But this is not all you'll have to look at.

Single application performs does not really tell the whole story. If
you touch more memory, more cache is used. In SMP machines the cost of
cacheline transfers are added. And in multi-core processors the cores
even share some cache which means every bit used might decrease system
performance ever so slightly.

If the added complexity is manageable the avoided memory operations
should be a win even if you cannot directly measure it.

--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖