In addition,  the ram_used seems be a little off too:
        this->ram_used  = `availrmem - `freemem;

Should it be following instead?
        this->ram_used  = `physmem -  `freemem;

Thanks,

Sean

On Tue, Sep 18, 2018 at 2:09 PM Sean Liu <sean.liu.2...@gmail.com> wrote:

> Folks,
>
> I was reading the vminfo.d from DTrace Toolkit and was wondering if
> following section for disk swap is correct?
> this->disk_resv is referring to  `k_anoninfo.ani_phys_avail and
> this->disk_avail  is derived from it.
> I wonder should it be the other way around?
> Current:
>         /* Disk stats */
>         this->disk_total = `k_anoninfo.ani_phys_max;
>         this->disk_resv = `k_anoninfo.ani_phys_avail;
>         this->disk_avail = this->disk_total - this->disk_resv;
>
> Judging from the name, should it be following instead?
>         /* Disk stats */
>         this->disk_total = `k_anoninfo.ani_phys_max;
>         this->disk_avail = `k_anoninfo.ani_phys_avail;
>         this->disk_resv = this->disk_total - this->disk_resv;
>
>
> Thanks,
>
> Sean
>



-------------------------------------------
dtrace-discuss
Archives: https://www.listbox.com/member/archive/184261/=now
Modify Your Subscription: https://www.listbox.com/member/?member_id=25769126
Powered by Listbox: https://www.listbox.com

Reply via email to