On Nov 8, 2007 4:21 PM, Nathan Kroenert <[EMAIL PROTECTED]> wrote:

> Hey all -
>
> Just a quick one...
>
> Is there any plan to update the mdb ::memstat dcmd to present ZFS
> buffers as part of the summary?
>
> At present, we get something like:
>  > ::memstat
> Page Summary                Pages                MB  %Tot
> ------------     ----------------  ----------------  ----
> Kernel                      28859               112   13%
> Anon                        34230               133   15%
> Exec and libs               10305                40    5%
> Page cache                  16876                65    8%
> Free (cachelist)            26145               102   12%
> Free (freelist)            105176               410   47%
> Balloon                         0                 0    0%
>
> Total                      221591               865
>
> Which just (as far as I can tell) includes the zfs buffers in Kernel
> memory.
>
> And what I'd really like is:
>
>  > ::memstat
> Page Summary                Pages                MB  %Tot
> ------------     ----------------  ----------------  ----
> Kernel                      28859               112   13%
> Anon                        34230               133   15%
> Exec and libs               10305                40    5%
> Page cache                  16876                65    8%
> Free (cachelist)            26145               102   12%
> Free (zfscachelist)       1827346              1700   xx%
> Free (freelist)            105176               410   47%
> Balloon                         0                 0    0%
>
> Total                      221591               865
>
> Which then represents the pages that *could* be freed up by ZFS in the
> event that they are needed for other purposes...
>
> Any thoughts on this? Is there a great reason why we cannot do this?
>
> Also - Other utilities like vmstat, etc that print out memory...


File an RFE.

I don't think it should be too bad (for ::memstat), given that (at least in
Nevada), all of the ZFS caching data belongs to the "zvp" vnode, instead of
"kvp". The work that made that change was:

4894692 caching data in heap inflates crash dump

Of course, this so-called "free" memory does act a bit differently than the
cachelist, etc., so maybe it should be named slightly differently.

Cheers,
- jonathan
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to