pcp
[Top] [All Lists]

Re: [pcp] PCP playback process metrics from archives in human readable t

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] PCP playback process metrics from archives in human readable text format
From: Linto Paul <lintopaul@xxxxxxxxx>
Date: Tue, 16 Aug 2016 15:12:25 +0530
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=O/V94qyfaYQNfQILkG2PJNImE4wu9M7/kUpKYBWBlbs=; b=cBxH2PEOrD83ItqquKpODNcBvUw7psdoAEsgr6thk3P8sIXfY1g6SZ5FEtCBhsw8SN QDXI/VZcY0N1lfRPMHrOSQA4zJz3LhU+8cbzX2KNhnM8J5FL3EKJQZWWdPP4YaT04+Hi wsOd3BW4WkW1SLa3lHXOI1Ab+FJsQ3ARBJcTQ3EHim8dCvfRT2cjxXf+5mZx6Zggb5tq /96fGuG2B+1VOeLsfjm5AZMP0Hi89gLlWRnhXaSeP/oEofdLKrdwnw+/Ys7zXacUsmas pRfCHTu78r9UTW3rxY5Twmd3UWtL8HV/m539D0gF6vNjUKnBqdlTf4LmtaP7Plaj/I/L eu1w==
In-reply-to: <876693927.183643.1471210228096.JavaMail.zimbra@xxxxxxxxxx>
References: <CA+KCYdz5jBNkpUDb-g=jxKDxNeYU1XXKGu4vrTZRvJ+h0fZ8_Q@xxxxxxxxxxxxxx> <658486849.183605.1471210159892.JavaMail.zimbra@xxxxxxxxxx> <876693927.183643.1471210228096.JavaMail.zimbra@xxxxxxxxxx>

Hi Nathan,

I'm looking at some output along the lines of what we get using collectl where we may get all proc metrics filtered for a process for specific time window especially in a readable format. pmdumptext was a close one but didn't find any options to filter by process name although I can specify the PID.

#collectl -sZ -i10:15 --procfilt ctqrtap --procopts m

# PID User S VmSize VmLck VmRSS VmData VmStk VmExe VmLib VmSwp MajF MinF Command

58646 tqagent S 4936K 0 2208K 952K 88K 184K 3100K 0 0 0 /opt/teamquest/manager/.bin/tqrtap

# collectl -p r2144630a217-20160608-000000.raw.gz --procanalyze -f /var/tmp/pp

Date From Thru Pid User PPid ExeSize SizeMin SizeMax LckMin LckMax RSSMin RSSMax DataMin DataMax StkMin StkMax LibMin LibMax sysT usrT PCT accumT RKB WKB RKBC WKBC RSYS WSYS CNCL threadsMin threadsMax majF minF Command

20160720 19:08:00 19:08:00 29211 root 19558 848 11300 11300 0 0 1292 1292 204 204 88 88 1876 1876 0:00:00 0:00:00 0.00 0:00:00 0 872 38945 1172 4947 446 0 0 0 0 462 sh -c LD_LIBRARY_PATH="/var/cfengine/lib-twin" TCDB_OPTIMIZE_PERCENT=0

"/var/cfengine/bin/cf-twin" -f failsafe.cf ; TCDB_OPTIMIZE_PERCENT=0 "/var/cfengine/bin/cf-agent" -Dfrom_cfexecd

20160720 00:01:00 23:59:00 32 root 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0:00:00 0:00:00 0.00 0:00:00 0 0 0 0 0 0 0 0 0 0 0 khungtaskd

20160720 00:01:00 23:59:00 6802 root 6796 196 14784 14784 0 0 772 772 4492 4492 88 88 1748 1748 0:00:00 0:00:00 0.00 0:00:01 0 0 0 0 0 0 0 0 0 0 0 bkstd

20160720 00:01:00 23:59:00 1428 root 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0:00:00 0:00:00 0.00 0:00:00 0 0 0 0 0 0 0 0 0 0 0 lockd

Best regards,
Linto


On 15-Aug-2016 3:00 AM, "Nathan Scott" <nathans@xxxxxxxxxx> wrote:


----- Original Message -----
> ----- Original Message -----
> > Hi folks,
> >
> > Can someone help me with cmdline examples of how to extract process metrics
> > from archives for a specific time window? I guess pmcollectl doesn't have
> > -sZ or process subsystem enabled, so I'm looking at the other available
> > commandline tools such as pmdumptext, pminfo etc. to retrieve this.
> >
> > I'm not looking at GUI/web options such as pmchart, vector etc. I've not
> > been
> > able to come up with retrieving data in a human readable format with
> > timestamps so far. Any assistance would be most appreciated!
> >
>
> In recent versions of PCP there is a pcp-atop(1) and a pcp-atopsar(1) [...]

Oh, there's also a pcp-pidstat(1) since pcp-3.11.4.

cheers.

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