KS2007: Memory management & application notification of low memory
Posted Sep 13, 2007 22:07 UTC (Thu) by oak
In reply to: KS2007: Memory management & application notification of low memory
Parent article: KS2007: Memory management
I think in Nokia internet tablets there's a notification about low memory
situations to applications through system D-BUS broadcasts. Delivering
information with D-BUS messages has obviously a latency issue if
application is gobbling memory very fast, but I guess it works acceptably.
Btw. I think for applications which keep large freeable memory caches i.e.
have a very active and complex memory allocation schemes, (Glibc) heap
fragmentation is at least as large problem as getting rid of their caches.
The caches should at least be large enough that their allocations have
been memory mapped (>= 128KB is the Glibc default) instead of coming from
heap and therefore they are returned back to system immediately when they
are freed, but with heap fragmentation you can only hope that allocation
re-ordering helps (after you've analyzed which allocations are the
to post comments)