ZFS memory usage
Andriy Gapon
avg at icyb.net.ua
Tue Jun 8 07:26:04 UTC 2010
on 08/06/2010 03:14 Artem Belevich said the following:
> I believe it's pagedaemon's job to push pages from active list to
> inactive and from inactive down to cache and free.
> I have a really ugly hack to arc.c which forces pagedaemon wakeup if
> ARC sees too much memory on inactive list.
> How much is too much is defined by a sysctl value.
>
> http://pastebin.com/ZCkzkWcs
>
> Be warned: it's ugly, it may not work, it assumes too much, it's plain
> broken, it may <write in your worst nightmare details here>...
> I'm serious -- I have seen my box locking up when I did manage to
> exhaust memory. The only reason I'm posting this ugliness at all is
> bacause of hope that someone more familiar with memory allocation in
> FreeBSD may be able to suggest better approach.
I think it's a good start.
I did a much more primitive thing locally and even that improved thing for me a
lot - I simply dropped "(vm_paging_target() > -2048" check.
Kip Macy is aware of this situation, perhaps he'll look into resolving it.
--
Andriy Gapon
More information about the freebsd-fs
mailing list