Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jan 2001 19:36:15 +0100
From:      Xavier Galleri <xgalleri@enition.com>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        Peter Wemm <peter@netplex.com.au>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Kernel memory allocation bug ...
Message-ID:  <3A71C39F.8060109@enition.com>
References:  <200101191524.f0JFOtk14877@mobile.wemm.org> <3A6861DF.8060108@enition.com> <3A706788.5040509@enition.com> <20010125101659.N26076@fw.wintelcom.net> <3A707211.2080801@enition.com> <20010125114602.Q26076@fw.wintelcom.net> <3A7151D5.2040405@enition.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Xavier Galleri wrote:

[...]

>> You've been complaining about this problem for at least a week.
>> Producing some code so that we can test couldn't take more than a
>> couple of hours and would have probably had your issue resolved
>> by now.
>> 
>> This is why I'm irritated that you still haven't provided any code
>> to reproduce it. 
> 
[...]

> Well, actually, it sounds that I did go to far to be able to retract  
> myself, so I will let you know of any progress I will make asap ;-)

Ok, I'm back again ;-) and this time, I got something for you ...

Basically, what I did, is to write a little SYSCALL kld module to allow 
controlling calls to MALLOC/FREE from user space. This way, I can issue 
some filesystem-intensive command (tar 
something-bigger-than-memory-size) in order to create the free list 
shortage. Then, I use my test program to issue several MALLOC in kernel 
space. What I actually noticed is that, when the free list felt below 
120 or alike, I can issue several thousands successful MALLOC as long as 
the asked size is no more than one or a few pages. But, when I ask for 
numerous pages (32Kb), then the process is falling asleep (this is 
analysed with my manual stack analysis process ;-), whilst the M_NOWAIT 
flag has been set (of course !).

Everything is almost entirely self-documented in the attached 
kmem.tar.gz file. I hope this will help and I am eager to hear from you 
soon.

Have a nice WE,

Regards

Xavier

[-- Attachment #2 --]
Gq:kmem.tarkSHWMXae#lq
m%KFFgKI߯{fdH.>
gRz!w֞^VaͰF"~+KV2튉φaZ5=5L3'X:>K'?#unw 
Jos?g,ovr͊>e5ET@_/E4|z:+ȯ9l.DKF2(p,nG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