Re: SLUB: Increasing partial pages

From: Matthew Wilcox
Date: Fri Jan 18 2008 - 14:14:43 EST


On Wed, Jan 16, 2008 at 02:28:44PM -0800, Christoph Lameter wrote:
> On Wed, 16 Jan 2008, Matthew Wilcox wrote:
> > About 0.1-0.2% 0.3% is considered significant.
>
> The results are that stable? A kernel compilation which slightly
> rearranges cachelines due to code and data changes typically leads to a
> larger variance on my 8 way box (gets even larger under NUMA). I would
> expect that the variations on a database load would be more significant.

The load runs for a long time. You can reduce variance by increasing
your sample size (ok, it's twelve years since I've done a stats course ...)

> I repeatedly saw patches from Intel to do minor changes to SLAB that
> increase performance by 0.5% or so (like the recent removal of a BUG_ON
> for performance reasons). These do not regress again when you build a
> newer kernel release?

No, they don't. Unless someone's broken something (eg putting pages on
the LRU in the wrong order so we don't get merges any more ;-)

--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--
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/