Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from turing.freelists.org (turing.freelists.org [206.53.239.180])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id 0976710135F019
 for <oracle-l@orafaq.com>; Tue, 10 Oct 2017 18:09:08 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A4EBC195EF;
 Tue, 10 Oct 2017 12:09:03 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1507651743;
 bh=lGeGkdpil59Z9pOuykNh595h3e7qUSgUZJuUdTdZkSY=;
 h=From:To:References:In-Reply-To:Subject:Date:Reply-To:List-help:
	 List-unsubscribe:List-Id:List-subscribe:List-owner:List-post:
	 List-archive;
 b=A6FyVd+VxvZbZ9UvSoA8v73n6fy+JeICYrZD9DxbVvP5laOTAOYqNOfRVH6GEF2QW
	 4D1otKyxlGayabKN4tkgmy96+UCeA0M0DmErjVJvjM1f0viwcDnOnq/aWT/lPtsRp3
	 dKUlzGslxZa1lx6W2hMdTF4S7HvPHoSVtQVY/QXM=
X-Virus-Scanned: Debian amavisd-new at turing.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id SuRH-Zc0sfmD; Tue, 10 Oct 2017 12:09:03 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EE85F19605;
 Tue, 10 Oct 2017 12:08:50 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1507651743;
 bh=lGeGkdpil59Z9pOuykNh595h3e7qUSgUZJuUdTdZkSY=;
 h=From:To:References:In-Reply-To:Subject:Date:Reply-To:List-help:
	 List-unsubscribe:List-Id:List-subscribe:List-owner:List-post:
	 List-archive;
 b=A6FyVd+VxvZbZ9UvSoA8v73n6fy+JeICYrZD9DxbVvP5laOTAOYqNOfRVH6GEF2QW
	 4D1otKyxlGayabKN4tkgmy96+UCeA0M0DmErjVJvjM1f0viwcDnOnq/aWT/lPtsRp3
	 dKUlzGslxZa1lx6W2hMdTF4S7HvPHoSVtQVY/QXM=
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 10 Oct 2017 12:07:29 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 3DE04841D
 for <oracle-l@freelists.org>; Tue, 10 Oct 2017 12:07:29 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id Lb-FZl6loPmR for <oracle-l@freelists.org>;
 Tue, 10 Oct 2017 12:07:29 -0400 (EDT)
Received: from cpanel.firstlight.net (cpanel.firstlight.net [72.0.157.4])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id F39EA81AB
 for <oracle-l@freelists.org>; Tue, 10 Oct 2017 12:07:28 -0400 (EDT)
Received: from c-73-69-251-194.hsd1.nh.comcast.net ([73.69.251.194]:49866 helo=mwf4500)
 by cpanel.firstlight.net with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256)
 (Exim 4.89)
 (envelope-from <mwf@rsiz.com>)
 id 1e1x42-0003Lo-Gj; Tue, 10 Oct 2017 12:07:26 -0400
From: "Mark W. Farnham" <mwf@rsiz.com>
To: <oracle@dunbar-it.co.uk>,
 <oracle-l@freelists.org>
References: <CANRhLpCH1SNxY9AjmCXuLtKKC3oSN+TChDq0gocNXN9CskodJA@mail.gmail.com> <765f8523-7766-c607-331d-b3f1381bc1c8@gmail.com> <CAHSa0M0N2ZmNyfSapnGqH+j9Y-+gB7Ff3vizRtB1jxGR+Mc1sg@mail.gmail.com> <94dea893-f120-c96e-c8c3-1f7ed048b94c@gmail.com> <c599599e-5d6d-900d-c1f1-2a6d0d80660b@gmail.com> <1f527cb8-028e-64c8-3fc6-fedb8f78217a@dunbar-it.co.uk> <20f4f28e-c742-e234-d9fd-fa835c2c4661@gmail.com> <da20acac-7cf5-3bab-e446-a68c9235ab06@dunbar-it.co.uk>
In-Reply-To: <da20acac-7cf5-3bab-e446-a68c9235ab06@dunbar-it.co.uk>
Subject: RE: PGA_AGGREGATE_TARGET, AUTO PGA TARGET and WORKAREA_SIZE_POLICY
Date: Tue, 10 Oct 2017 12:07:11 -0400
Message-ID: <01d001d341e1$d524eb90$7f6ec2b0$@rsiz.com>
MIME-Version: 1.0
Content-Type: text/plain;
 charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Content-Language: en-us
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - cpanel.firstlight.net
X-AntiAbuse: Original Domain - freelists.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - rsiz.com
X-Get-Message-Sender-Via: cpanel.firstlight.net: authenticated_id: mfarnham@rsiz.com
X-Authenticated-Sender: cpanel.firstlight.net: mfarnham@rsiz.com
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-archive-position: 69510
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: mwf@rsiz.com
Precedence: normal
Reply-To: mwf@rsiz.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:mark.bobak@proquest.com>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l

To me the worst part is that the parameter ...LIMIT is not a limit. It =
is a threshold at which Oracle begins a more aggressive shedding of PGA =
space. Simply having the language wrong sends folks off on the wrong =
thought process. What various op/sys's have called the various pieces =
have changed over the years. Apart from some mild sniping about exactly =
what to call the pieces, the thread has been a useful discussion. I =
believe if when you see LIMIT in this case you think "management =
threshold" the overall function will be better understood.

mwf

-----Original Message-----
From: oracle-l-bounce@freelists.org =
[mailto:oracle-l-bounce@freelists.org] On Behalf Of Norman Dunbar
Sent: Tuesday, October 10, 2017 3:56 AM
To: oracle-l@freelists.org
Subject: Re: PGA_AGGREGATE_TARGET, AUTO PGA TARGET and =
WORKAREA_SIZE_POLICY

On 09/10/17 23:24, Tim Gorman wrote:
>=20
> In the case of idle connected sessions, almost certainly the "tunable" =

> structures such as sort area and hash area are at absolute minimums=20
> due to lack of use, if not completely deallocated, so any PGA detected =

> within those idle sessions most likely was due to "untunable" memory=20
> structures built in by application code, and even that was likely to=20
> be minimal due to lack of recent use.  So the active sessions ranked=20
> higher on that scale, and got whacked for it.
>=20
> Session leaks like this are eventually fatal, and while=20
> PGA_AGGREGATE_LIMIT was fatal for the application, consider how much=20
> longer it might have taken to recover if the server crashed too due to =

> virtual memory exhaustion?

Morning Tim,

while I agree which what you say above, and especially the bit about =
tunable PGA, my impression that the algorithm is perhaps faulty still =
stands. Here's why.

Originally, the database was having to be restarted every week, =
sometimes even less, as our monitoring detected that the used PGA was =
getting close to the limit. That caused no end of problems for the user =
as you would understand.

Then we implemented my workaround for the problem, later accepted by the =
vendor as the fix, which looks for, and kills off only idle sessions.=20
Suddenly, we no longer have a problem with used PGA getting close to the =
limit and we don't restart the database every week any more - speaking =
with ex colleagues, we haven't restarted it for months now.

So, given that killing idle sessions only actually prevents the problem =
(at least for us), perhaps Oracle's algorithm should consider idle =
sessions before killing active ones? The limit is PGA after all, and =
surely saving some GB of PGA from idle sessions is better that killing =
active sessions - at least, initially.

I'd be happy (ish) if Oracle did have to kill active sessions but only =
after killing the idle ones first.


Cheers,
Norm.

--=20
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
27a Lidget Hill
Pudsey
West Yorkshire
United Kingdom
LS28 7LG

Company Number: 05132767
--
http://www.freelists.org/webpage/oracle-l


--
http://www.freelists.org/webpage/oracle-l


