Date: Thu, 15 Nov 2001 16:21:51 -0500 From: Chris Ptacek <cptacek@sitaranetworks.com> To: "'freebsd-hackers@freebsd.org'" <freebsd-hackers@freebsd.org> Subject: kernel malloc questions... Message-ID: <31269226357BD211979E00A0C9866DAB02BB9745@rios.sitaranetworks.com>
next in thread | raw e-mail | index | archive | help
Hey all, I have a couple questions about kernel mallocs. I am trying to malloc a large amount of memory for a KLD during load and the malloc keeps failing. I am trying to malloc 64-128MB for a memory pool for a project I am working on. My system has 196MB of memory and the KLD is loaded at startup so I am relativly sure that I have enough memory to satisfy the request. I guess the questions are: Is there a limit to the amount of memory the kernel (including modules) can malloc? If there is how do I change this amount? I am currently using M_NOWAIT, would using M_WAITOK be better? Would this end up hanging my system in this case? Would I be better off mallocing many smaller buffers into a memory pool (64 1MB buffers)? I don't have access to the mailing lists at the moment and would appreciate it if you could CC me with any replies. Thanks, Chris cptacek@sitaranetworks.com 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?31269226357BD211979E00A0C9866DAB02BB9745>