From 76e8f77b3da86099045b17e3d8faa8f53978b962 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 1 Aug 2007 03:00:59 +0000 Subject: [PATCH] aix swap.page_{in,out} impl --- src/os/aix/aix_sigar.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/os/aix/aix_sigar.c b/src/os/aix/aix_sigar.c index 280b0b5b..9a1cedcb 100644 --- a/src/os/aix/aix_sigar.c +++ b/src/os/aix/aix_sigar.c @@ -644,6 +644,7 @@ static int sigar_swap_get_swapqry(sigar_t *sigar, sigar_swap_t *swap) static int sigar_swap_get_perfstat(sigar_t *sigar, sigar_swap_t *swap) { + perfstat_memory_total_t minfo; perfstat_pagingspace_t ps; perfstat_id_t id; @@ -679,6 +680,11 @@ static int sigar_swap_get_perfstat(sigar_t *sigar, sigar_swap_t *swap) swap->free = swap->total - swap->used; + if (sigar->perfstat.mem(&minfo) == 1) { + swap->page_in = minfo.pgins; + swap->page_out = minfo.pgouts; + } + return SIGAR_OK; }