[lkml]   [1996]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Please don't beat me up (was Re: Bugs and wishes in memory management area)

In article <>,
Mark Hemment <> wrote:
>behaviour. If you know the usage patterns, it is possible to design
>efficient allocators for specific applications. Difficult to do in a

Am I missing something here? A couple of printk()s in kmalloc and
kfree() will show you the usage patterns quite clearly, and a lot of
them _are_ regular.

I haven't messed with this since 1.3.70 or so, but at that time the n
most common request sizes were 56, 84,516, 988, 16 and 1060. 56 bytes
accounted for around 80% of the requests. Try it!

By the way, 56 is (or was, anyway) sizeof (vm_area_struct). These
figures were produced on a standalone box; obviously networking makes
a difference


 \ /
  Last update: 2005-03-22 13:38    [W:0.126 / U:1.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site