DragonFly bugs List (threaded) for 2008-07
Re: hammer-mount: malloc limit exceeded panic
:: hammer-mount: malloc limit exceeded
::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.
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
(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.