On Thu, 3 Jun 2010, Garrett D'Amore wrote:

On Thu, 2010-06-03 at 11:36 -0700, Ketan wrote:
Thanx Rick .. but this guide does not offer any method to reduce the ARC cache 
size on the fly without rebooting the system. And the system's memory 
utilization is running very high since 2 weeks now and just 5G of memory is 
free.  And the arc cache is showing 40G of usage. and its not decreasing its 
just increasing.

Write a program which does a bunch of mallocs.  This should cause zfs to
release data.  Then when your program exits, you'll be able to use the
memory it left behind.

Your sample program makes assumptions which may not be true. For example, it assumes that allocating an address range will consume actual "memory" (rather than just a reservation in the huge 64-bit address space) from the system. This is not necessarily the case. If your program arranges to modify a byte in each page of allocated memory, then there is a better chance of success (but not assured). Expect system performance to suffer dramatically. SunOS 4 provided a program named "chill" which performed this function.

Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to