Linux-kernel mailing list archive 2000-23,: Re: [PATCH] cleaned up slab allocator

# Re: [PATCH] cleaned up slab allocator

manfreds@colorfullife.com
Mon, 5 Jun 2000 07:42:48 -0400

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Alexander Valys: "USB and Keyboard Problems Fixed?"
- Previous message: Andre Hedrick: "Re: FOPS needs Shutdown SIG Hook!!!"

Zitiere Andi Kleen <ak@suse.de>:

>
> - Fix the reaction to memory pressure. The current
measures (deleting
> all caches on the slightest bit of memory pressure) is
too radical.

I have improved it a little bit:
I use a clock algorithm and scan the next 10 caches,
then I free 80% (but at least one) of the unused slabs.

One warning: "cat /proc/slabinfo" causes random memory
corruption, please be carefull if you test the patch.
I'll upload a new patch in a few hours.

    --
    	Manfred

    -----------------------------------------------------
    This mail sent through IMP: http://web.horde.org/imp/

    -
    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/

- Next message: Alexander Valys: "USB and Keyboard Problems Fixed?"
- Previous message: Andre Hedrick: "Re: FOPS needs Shutdown SIG Hook!!!"