[issue1884] System completely freezes while listening music (devbuf: malloc limit exceeded)

Alex Hornung (via DragonFly issue tracker) sinknull at leaf.dragonflybsd.org
Fri Nov 19 07:32:35 PST 2010


Alex Hornung <ahornung at gmail.com> added the comment:

M_DEVBUF is used almost everywhere, it is a nightmare to find out what is 
actually leaking memory.

While overhauling vn I looked at devbuf's vmstat after every mkinitrd and it 
kept increasing, one leak at a time. To verify that it wasn't vn, I changed the 
malloc type for the vn allocations to a different one and the leak is still 
there. So something probably somewhere in the disk i/o path using M_DEVBUF is 
leaking memory, too.

To reproduce just keep an eye on devbuf's allocations while running mkinitrd a 
few times.

Cheers,
Alex Hornung

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1884>
_____________________________________________________






More information about the Bugs mailing list