DragonFly bugs List (threaded) for 2008-07
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: hammer-mount: malloc limit exceeded panic
:: 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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]