hammer-mount: malloc limit exceeded panic
Matthew Dillon
dillon at apollo.backplane.com
Sun Jul 27 10:36:48 PDT 2008
:: hammer-mount: malloc limit exceeded
:: hammer_alloc_mem_record+0x22
::
::Strange, as I have 3GB of memory. Is there a memory leak somewhere?
::I just build 1 or 2 packages (distfiles are already fetched), no other
::activity. And it's a UP machine.
::
::Regards,
I tracked the problem down to the system's kern.maxvnodes variable,
which on a 3G machine is set to 197946.
This is too large for the 100MB of kmalloc space that HAMMER is allowed
to use.
(kgdb) print hammer_count_inodes
$25 = 162952
(kgdb) print hammer_count_inodes * sizeof(struct hammer_inode)
$26 = 95163968
I will adjust the maxvnodes calculation and I think I will also
have to create a separate kmalloc space for HAMMER's vnodes.
You can temporarily work around the problem by setting the
kern.maxvnodes sysctl to a lower value, like 100000.
-Matt
More information about the Bugs
mailing list