pcp
[Top] [All Lists]

Re: [pcp] Linux Swap Patch

To: Martins Innus <minnus@xxxxxxxxxxx>
Subject: Re: [pcp] Linux Swap Patch
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Mon, 4 Mar 2013 17:30:13 -0500 (EST)
Cc: PCP <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <51350A8A.1080605@xxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>

----- Original Message -----
> Nathan,
> 
> On 3/4/13 3:40 PM, Nathan Scott wrote:
> >>       I wasn't able to get the linux pmda to report any swap
> >>       activity
> >> without the attached patch.  Not sure if this is the right way to
> >> go
> >> about it, but it seems to work for us.
> > Just so I can reproduce it locally, what was the test case you were
> > using?  Is something like "pminfo -f swap" enough to show the issue
> > (if so, can you send the output you're observing)?
> >
> Sure.  While a machine is actively swapping, before the patch:
> 

Thanks!  I'm looking into it; this area is a bit messy as it attempts
to deal with /proc/vmstat not existing in earlier kernels, evidently
getting it wrong (in Kens example, swap.in should be seeing an error,
by my reading of the code).

I do think your patch will be necessary as a first step.  It would be
simpler if it used access(2), however - could you resend it with that
change?  Should be a one-liner then.

Thanks!

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>