pcp
[Top] [All Lists]

Re: [pcp] [patch] Add a new command pcp-ipcs

To: Liming Wu <wulm.fnst@xxxxxxxxxxxxxx>
Subject: Re: [pcp] [patch] Add a new command pcp-ipcs
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Mon, 6 Jun 2016 03:00:44 -0400 (EDT)
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <6A799D6419DDBA43B657744DC4113882FE3F63B0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <6A799D6419DDBA43B657744DC4113882FE3F63B0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: AdG9fAbMjlqtgcCjQ7K57sfQi+g/zgErCEkb
Thread-topic: [patch] Add a new command pcp-ipcs
Hi Liming,

----- Original Message -----
> Hi
> 
>    I have completed the command pcp-ipcs which can report the limits and
>    summary of ipcs command.
>    If there is anything wrong , please let me know.  Thanks.
> 

Nice work - it's great to see all the docs and QA work done too - thanks!

I noticed a few typos & unused imports in the python script, so fixed those
up.  We also sometimes add a "qa/archives/mk.xxx.sh" script when adding new
test archives - I've added one because we'll need it shortly...

There's a small problem in the script - it's using the original ipc.* names
before I tweaked 'em for consistency.  I've fixed this up in the script but
we should re-create qa/archives/pcp-ipcs to match.  Could you do that?  (I
would, but my system is not setup with an interesting sem/msg/shm like yours
seems to be already - mostly zero values for me).

Also, the script accesses sysconf(SC_PAGE_SIZE) for reporting #pages.  That
should be using the "hinv.pagesize" metric instead (and perhaps use sysconf
value as a fall-back?), so that the report is generated for the monitored
system (which is possibly remote via --host) or archive.  In both cases the
values may not have come from a system with a pagesize matching the system
where pcp-ipcs is being run.

I've pushed your current work (along with my little fixes) into the master
branch; if you could send followup patches relative to master, that would be
perfect.

cheers.

--
Nathan

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