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>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------010304000009040600000002 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 --------------010304000009040600000002 Content-Type: application/gzip; name="kmem.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="kmem.tar.gz" H4sICEe+cToCA2ttZW0udGFyAO0ba1PbSJKv6Ff0kk2wWGH0sGUb1tkj4Gxxy+MKwt5tJZRL lkZGZ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VE1eFOnDZAbdNs1OxFwnEC5LRRN3SFbvOE i+5H0+3WJd0Vu+NzuskjtoV7XEI1uuymSFjA7zvdtGksEEoiR1Is5AP+LXBYdj+aUl9qdp1Z Xo1TOm1ybyNJLpJIH58I+u1KnRzqIs1TLZUfexCP68ji5YY5QXos/b7pyrOpj+F7Qr9oEv0/ /ID+YvlQR5oIczp2dTJUNGmoTChNKPFxzY+Z3/bpk4QK2gU+s8KzV4TzMJTzypcBaNvQa7WG VTPMuiYTcurjYSjvwyF8RMDD0HbDtGt21aDwxlEpClE0l6vczq7i8m6rUjXoP2cLmEMwPI/w VpY4gygmJLNIQUIplinwebixa4atV7j1I8ylnVmG6OeCJpRqQ26tSL5lCPJTwYw78dpwohOB VbfFjSghjTBMW6HbVCUWcB6hEB2/4/udekWI0es4tYJUeZOk+q8gyvTbut6e/B9QUT0ThwPG QszYHF53SIMw6DsJr3RSKk0HgIzbxJgy+QH3QPwkwqJRkMRRSK/S+OlhP+IooUgWE/jPENEo J3fwrHjD+m7ME/JdyKvZf2NRQAhl7Fm9Z1ldq2t1ra7VtbpW1+paXatrda2uv/D1P0dA6cYA UAAA --------------010304000009040600000002-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A71C39F.8060109>