Re: [PATCH] per-cpu slab

From: willy@thepuffingroup.com
Date: Thu Jun 08 2000 - 18:31:13 EST


On Thu, Jun 08, 2000 at 08:45:50PM +0000, Dave Jones wrote:
> Manfred Spraul <manfreds@colorfullife.com> wrote:
> > If you want to benchmark the code: disable SLAB_DEBUG_SUPPORT &
> > SLAB_STATS, otherwise you'll see a huge slowdown: double free detection
> > is now always on, and red zoning is also enabled (SLAB_FORCED_DEBUG).
>
> This reminded me of something I was curious about recently.
> What exactly is red-zoning? I understand slab-poisoning,
> but couldn't figure out what red-zoning actually does.

According to Bonwick's paper (available from
ftp://ftp.bitmover.com/pub/slab.ps, as more than one person has asked
recently -- thanks lmcvoy),

``Redzone checking detects writes past the end of a buffer. The
allocator checks for redzone violations by adding a guard word to the
end of each buffer and verifying that it is unmodified when the buffer
is freed.''

-- 
The Sex Pistols were revolutionaries.  The Bay City Rollers weren't.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:16 EST