Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 17549 invoked from network); 29 Nov 2006 20:45:57 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 29 Nov 2006 20:45:57 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id F00204C52EB;
 Wed, 29 Nov 2006 21:45:07 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 28258-02; Wed, 29 Nov 2006 21:45:07 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 791854C4C73;
 Wed, 29 Nov 2006 21:45:07 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Wed, 29 Nov 2006 21:44:03 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D0BEF4C57A7
 for <oracle-l@freelists.org>; Wed, 29 Nov 2006 21:44:03 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 28113-07 for <oracle-l@freelists.org>;
 Wed, 29 Nov 2006 21:44:03 -0500 (EST)
Received: from host5.apollohosting.com (host5.apollohosting.com [209.239.40.144])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 9C52B4C5768
 for <oracle-l@freelists.org>; Wed, 29 Nov 2006 21:44:03 -0500 (EST)
Received: from [127.0.0.1] (71-208-132-151.hlrn.qwest.net [71.208.132.151])
 by host5.apollohosting.com (8.12.11.20060614/8.13.6) with ESMTP id kAU2ihUC002546;
 Wed, 29 Nov 2006 21:44:47 -0500
Message-ID: <456E4594.9070902@evdbt.com>
Date: Wed, 29 Nov 2006 19:44:36 -0700
From: Tim Gorman <tim@evdbt.com>
Organization: Evergreen Database Technologies, Inc.
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
MIME-Version: 1.0
To: oracle-l@freelists.org
CC: eagle.f@gmail.com
Subject: Re: sql tuning on X$ table
References: <4415a5ed0611291831q2631b2bby9826b6d244522d@mail.gmail.com>
In-Reply-To: <4415a5ed0611291831q2631b2bby9826b6d244522d@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
X-archive-position: 42581
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: tim@evdbt.com
Precedence: normal
Reply-to: tim@evdbt.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at avenirtech.net

How much time is being spent in the "latch free" wait-event?  If there 
is not a large amount of time spent waiting on this wait-event, then 
running this query is a waste of CPU.

Hope this helps...


Eagle Fan wrote:
> hi:
>
> We have a monitoring tool to monitor database performance.
>
> It run the following sql every few seconds and it cost a lot of CPU 
> times. About 20% of total CPU time.
>
> select kslltnum latch#,sum(kslltwgt) gets,sum(kslltwff) misses,
>                              sum(kslltwsl) sleeps from x$ksllt group 
> by kslltnum;
>
> The sql is used to collect latch statistics, latch#, gets, misses, 
> sleeps and then get the top heavy latch contentions.
>
> I have no idea how to tune this sql. It's on x$ table.
>
> I have read kyle's presentation about direct SGA access and I think it 
> may help the sql.
>
> Does anyone have experiences of using direct SGA access on production 
> system?
>
> Any risks? How many performance gains?
>
> Thanks
>
> -- 
> Eagle Fan
>
> Oracle DBA 
--
http://www.freelists.org/webpage/oracle-l


