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

In article <Pine.LNX.3.91.961129202137.142A-100000@nextd.demon.co.uk>,
Mark Hemment <markhe@nextd.demon.co.uk> wrote:
>behaviour. If you know the usage patterns, it is possible to design
>efficient allocators for specific applications. Difficult to do in a
>kernel.

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

-dan

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