Alex Hornung <[email protected]> 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 <[email protected]>
<http://bugs.dragonflybsd.org/issue1884>
_____________________________________________________

Reply via email to