uClinux 2.6.x memory allocator brokenness
The right list for this would be linux-mm I guess..
Quoted 10 lines · Bernardo Innocenti
Hello,
not sure if anybody else experienced this problem. 2.5.x/2.6.x kernels seem to have some nasty bug in
mm/page_alloc.c.When I allocate over 256KB of memory, the allocator steps into
__alloc_pages()with order=7 and finds nothing free in the 512KB slab, then it splits the 1MB block in two 512MB blocks and fails miserably for some unknown reason.
Quoted 21 lines
I also noticed that any allocation (even smaller ones) always fail in the fast path and falls down into the slowish code that wakes up kswapd to free some more pages.
This happens because
zone->pages_lowis set to 512 whilefree_pagesis consistently below 400 on my system.Perhaps these values would have to be retuned on embedded targets.
Signature · 11 lines
// Bernardo Innocenti - Develer S.r.l., R&D dept. \X/ http://www.develer.com/ Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected]
---end quoted text---
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>