pcp
[Top] [All Lists]

Re: Oracle connection debugging (was Re: [pcp] Handling Oracle PMDA Late

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: Oracle connection debugging (was Re: [pcp] Handling Oracle PMDA Latencies)
From: Marko Myllynen <myllynen@xxxxxxxxxx>
Date: Tue, 24 May 2016 12:04:11 +0300
Cc: pcp developers <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <729703295.49392692.1464043930880.JavaMail.zimbra@xxxxxxxxxx>
Organization: Red Hat
References: <56F25541.9020602@xxxxxxxxxx> <57395F04.2090909@xxxxxxxxxx> <1695396289.47966126.1463381940778.JavaMail.zimbra@xxxxxxxxxx> <573D897A.5070804@xxxxxxxxxx> <626822210.48972762.1463726815586.JavaMail.zimbra@xxxxxxxxxx> <573EDF38.1020102@xxxxxxxxxx> <594283644.49214956.1463982724891.JavaMail.zimbra@xxxxxxxxxx> <5742C49E.4090208@xxxxxxxxxx> <729703295.49392692.1464043930880.JavaMail.zimbra@xxxxxxxxxx>
Reply-to: Marko Myllynen <myllynen@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0
Hi,

On 2016-05-24 01:52, Nathan Scott wrote:
> ----- Original Message -----
>> On 2016-05-23 08:52, Nathan Scott wrote:
>>> ----- Original Message -----
>>>> On 2016-05-20 09:46, Nathan Scott wrote:
>>
>>> This doesn't equate to that many metrics/instances, so perhaps some cunning
>>> query rewriting there could solve that aspect, and could get us most of the
>>> way home here.  (would involve rewriting the object_cache_values() function
>>> in pmdaoracle.pl)
>>
>> The queries are like:
>>
>> echo 'select file#, phyrds, phywrts, phyblkrd, phyblkwrt, readtim,
>> writetim from v$filestat;' | sqlplus scott/tiger@orcl
>>
>> Querying any of the columns individually takes pretty much the same time
>> so I can't see how to improve this.
> 
> There's a fair bit of post-processing done in the PMDA, as it iterates over
> all the rows returned and performs aggregation.  If that could be shifted to
> within Oracle (via more cunning queries) then there would be much less data
> to be returned, which might get us back to the response time for a regular-
> sized query.

Hmm, both the above query and pminfo -f oracle.file take the same ~1.3s
so looks like PMDA post-processing time is not that significant? (select
file#, name from v$datafile is around 0.1s)

>> Thus your suggestion to make these
>> two clusters opt-in is probably the most feasible solution at least in
>> the short-term. Here oracle.object_cache will be ignored but I can try
>> to see how things work after enabling oracle.file.
> 
> OK.  How many rows are there in your v$file view OOC?  (from the systems we
> were testing earlier there were several thousand, IIRC, but that setup was
> plagued by a very different latency problem, so might not be relevant here).

The v$filestat query return ~1k rows here:

> - oracle.file takes ~1.3s with ~1k rows

Thanks,

-- 
Marko Myllynen

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