Date: Tue, 08 Jun 2010 10:25:56 +0300 From: Andriy Gapon <avg@icyb.net.ua> To: Artem Belevich <fbsdlist@src.cx> Cc: freebsd-fs@freebsd.org Subject: Re: ZFS memory usage Message-ID: <4C0DF084.6090106@icyb.net.ua> In-Reply-To: <AANLkTin1GV0ayjtsvF5NTQZK37-kVq1KOlFEkHFiywa-@mail.gmail.com> References: <20100607232909.GA57423@server.vk2pj.dyndns.org> <AANLkTin1GV0ayjtsvF5NTQZK37-kVq1KOlFEkHFiywa-@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C0DF084.6090106>
