pcp
[Top] [All Lists]

Re: [pcp] PCP Updates: mgoodwin pmrep + qa

To: Marko Myllynen <myllynen@xxxxxxxxxx>, pcp@xxxxxxxxxxx
Subject: Re: [pcp] PCP Updates: mgoodwin pmrep + qa
From: Mark Goodwin <mgoodwin@xxxxxxxxxx>
Date: Thu, 11 Feb 2016 16:20:28 +1100
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <56BBD42C.2000108@xxxxxxxxxx>
References: <56BA340C.1020300@xxxxxxxxxx> <56BB0946.5040407@xxxxxxxxxx> <56BBD42C.2000108@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
On 02/11/2016 11:22 AM, Mark Goodwin wrote:
On 02/10/2016 08:56 PM, Marko Myllynen wrote:
...
I'm still seeing issues after this patch, in fact now I have issues
also with Python 2:

$ python3 /tmp/pcp/bin/pmrep --archive $here/archives/20130706 -o csv -u -S 
@10:00 -x kernel.all.sysfork | head -n 1
#
zsh: broken pipe  python3 /tmp/pcp/bin/pmrep --archive $here/archives/20130706 
-o csv -u -S  -x |
zsh: done         head -n 1
$ python2 /tmp/pcp/bin/pmrep --archive $here/archives/20130706 -o csv -u -S 
@10:00 -x kernel.all.sysfork | head -n 1
#
zsh: broken pipe  python2 /tmp/pcp/bin/pmrep --archive $here/archives/20130706 
-o csv -u -S  -x |
zsh: done         head -n 1
$

This is on RHEL 7 (Python 2.7 and Python 3.3 in use). The reason why
I'm so inclined to have this fixed shows above, with PRINT_EXIT_VALUE
Zsh prints some ugly diagnostics.

Isn't zsh's PRINT_EXIT_VALUE doing just that here - printing that there was
a broken pipe for pmrep (for which the signal was ignored via SIG_DFL),
and that 'head' exited normally? I'll install zsh and test some more.


I think this is all OK - here's some more testing with zsh : the broken pipe
signal is caught and we see no Broken Pipe exceptions or Exception Ignored 
errors

[mgoodwin@kilcunda pcp]$ zsh
[mgoodwin@kilcunda]~/src/pcp% setopt PRINT_EXIT_VALUE

[mgoodwin@kilcunda]~/src/pcp% yes | head -n 2
y
y
zsh: broken pipe  yes |
zsh: done         head -n 2


[mgoodwin@kilcunda]~/src/pcp% python2 src/pmrep/pmrep.py --archive 
qa/archives/20130706 -o csv -u -S @10:00 -x kernel.all.sysfork | head -n 1
#
zsh: broken pipe  python2 src/pmrep/pmrep.py --archive qa/archives/20130706 -o 
csv -u -S @10:00 |
zsh: done         head -n 1
[mgoodwin@kilcunda]~/src/pcp% python3 src/pmrep/pmrep.py --archive 
qa/archives/20130706 -o csv -u -S @10:00 -x kernel.all.sysfork | head -n 1
#
zsh: broken pipe  python3 src/pmrep/pmrep.py --archive qa/archives/20130706 -o 
csv -u -S @10:00 |
zsh: done         head -n 1

[mgoodwin@kilcunda]~/src/pcp% python2 src/pcp/iostat/pcp-iostat.py -a 
qa/archives/pmiostat_mark | head -n 5
# Device      rrqm/s  wrqm/s    r/s    w/s    rkB/s    wkB/s avgrq-sz avgqu-sz  
 await r_await w_await %util
mmcblk0          0.0     0.0    0.0    0.0      0.0      0.0     0.00     0.00  
   0.0     0.0     0.0   0.0
sda              0.0    10.0    2.0   19.0      9.0    208.0    10.33     0.03  
   1.5     1.0     1.6   0.8
mmcblk0          0.0     0.0    0.0    0.0      0.0      0.0     0.00     0.00  
   0.0     0.0     0.0   0.0
sda              0.0     9.0    2.0   19.0      9.0    209.0    10.38     0.03  
   1.5     1.0     1.5   0.8
zsh: broken pipe  python2 src/pcp/iostat/pcp-iostat.py -a 
qa/archives/pmiostat_mark |
zsh: done         head -n 5

[mgoodwin@kilcunda]~/src/pcp% python3 src/pcp/iostat/pcp-iostat.py -a 
qa/archives/pmiostat_mark | head -n 5
# Device      rrqm/s  wrqm/s    r/s    w/s    rkB/s    wkB/s avgrq-sz avgqu-sz  
 await r_await w_await %util
mmcblk0          0.0     0.0    0.0    0.0      0.0      0.0     0.00     0.00  
   0.0     0.0     0.0   0.0
sda              0.0    10.0    2.0   19.0      9.0    208.0    10.33     0.03  
   1.5     1.0     1.6   0.8
mmcblk0          0.0     0.0    0.0    0.0      0.0      0.0     0.00     0.00  
   0.0     0.0     0.0   0.0
sda              0.0     9.0    2.0   19.0      9.0    209.0    10.38     0.03  
   1.5     1.0     1.5   0.8
zsh: broken pipe  python3 src/pcp/iostat/pcp-iostat.py -a 
qa/archives/pmiostat_mark |
zsh: done         head -n 5


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