Re: [zfs-discuss] Monitoring ZFS host memory use

2009-05-07 Thread Carson Gaspar
Bob Friesenhahn wrote: It seems like this Nagios script is not very useful since the notion of free memory has become antiquated. Not true. The script is simply not intelligent enough. There are really 3 broad kinds of RAM usage: A) Unused B) Unfreeable by the kernel (normal process

Re: [zfs-discuss] Monitoring ZFS host memory use

2009-05-07 Thread Fajar A. Nugraha
On Wed, May 6, 2009 at 10:17 PM, Richard Elling richard.ell...@gmail.com wrote: Fajar A. Nugraha wrote: IMHO it's probably best to set a limit on ARC size and treat it like any other memory used by applications. There are a few cases where this makes sense, but not many.  The ARC will

Re: [zfs-discuss] Monitoring ZFS host memory use

2009-05-07 Thread Richard Elling
Fajar A. Nugraha wrote: On Wed, May 6, 2009 at 10:17 PM, Richard Elling richard.ell...@gmail.com wrote: Fajar A. Nugraha wrote: IMHO it's probably best to set a limit on ARC size and treat it like any other memory used by applications. There are a few cases where this

Re: [zfs-discuss] Monitoring ZFS host memory use

2009-05-07 Thread Moore, Joe
Carson Gaspar wrote: Not true. The script is simply not intelligent enough. There are really 3 broad kinds of RAM usage: A) Unused B) Unfreeable by the kernel (normal process memory) C) Freeable by the kernel (buffer cache, ARC, etc.) Monitoring usually should focus on keeping (A+C)

Re: [zfs-discuss] Monitoring ZFS host memory use

2009-05-07 Thread Bob Friesenhahn
On Thu, 7 May 2009, Moore, Joe wrote: Carson Gaspar wrote: Not true. The script is simply not intelligent enough. There are really 3 broad kinds of RAM usage: A) Unused B) Unfreeable by the kernel (normal process memory) C) Freeable by the kernel (buffer cache, ARC, etc.) Monitoring usually

[zfs-discuss] Monitoring ZFS host memory use

2009-05-06 Thread Troy Nancarrow (MEL)
Hi, Please forgive me if my searching-fu has failed me in this case, but I've been unable to find any information on how people are going about monitoring and alerting regarding memory usage on Solaris hosts using ZFS. The problem is not that the ZFS ARC is using up the memory, but that the

Re: [zfs-discuss] Monitoring ZFS host memory use

2009-05-06 Thread Fajar A. Nugraha
On Wed, May 6, 2009 at 1:08 PM, Troy Nancarrow (MEL) troy.nancar...@foxtel.com.au wrote: So how are others monitoring memory usage on ZFS servers? I think you can get the amount of memory zfs arc uses with arcstat.pl. http://www.solarisinternals.com/wiki/index.php/Arcstat IMHO it's probably

Re: [zfs-discuss] Monitoring ZFS host memory use

2009-05-06 Thread Thomas Maier-Komor
Troy Nancarrow (MEL) schrieb: Hi, Please forgive me if my searching-fu has failed me in this case, but I've been unable to find any information on how people are going about monitoring and alerting regarding memory usage on Solaris hosts using ZFS. The problem is not that the ZFS ARC is

Re: [zfs-discuss] Monitoring ZFS host memory use

2009-05-06 Thread Richard Elling
Fajar A. Nugraha wrote: On Wed, May 6, 2009 at 1:08 PM, Troy Nancarrow (MEL) troy.nancar...@foxtel.com.au wrote: So how are others monitoring memory usage on ZFS servers? I think you can get the amount of memory zfs arc uses with arcstat.pl.

Re: [zfs-discuss] Monitoring ZFS host memory use

2009-05-06 Thread Bob Friesenhahn
On Wed, 6 May 2009, Troy Nancarrow (MEL) wrote: Please forgive me if my searching-fu has failed me in this case, but I've been unable to find any information on how people are going about monitoring and alerting regarding memory usage on Solaris hosts using ZFS. The problem is not that the ZFS

Re: [zfs-discuss] Monitoring ZFS host memory use

2009-05-06 Thread Richard Elling
Bob Friesenhahn wrote: On Wed, 6 May 2009, Troy Nancarrow (MEL) wrote: Please forgive me if my searching-fu has failed me in this case, but I've been unable to find any information on how people are going about monitoring and alerting regarding memory usage on Solaris hosts using ZFS. The

Re: [zfs-discuss] Monitoring ZFS host memory use

2009-05-06 Thread Bob Friesenhahn
On Wed, 6 May 2009, Richard Elling wrote: Memory is meant to be used. 96% RAM use is good since it represents an effective use of your investment. Actually, I think a percentage of RAM is a bogus metric to measure. For example, on a 2TBytes system, you would be wasting 80 GBytes. Perhaps

Re: [zfs-discuss] Monitoring ZFS host memory use

2009-05-06 Thread Paul Choi
Ben Rockwood's written a very useful util called arc_summary: http://www.cuddletech.com/blog/pivot/entry.php?id=979 It's really good for looking at ARC usage (including memory usage). You might be able to make some guesses based on kstat -n zfs_file_data and kstat -n zfs_file_data_buf. Look for