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 540511002C5404
 for <oracle-l@orafaq.com>; Sun,  2 Feb 2020 10:41:31 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 2AFC224EA0;
 Sun,  2 Feb 2020 04:41:29 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1580636489;
 bh=NBFjhughLrm/2Thh/deMdvFeQVfWmia8Z6lgmokdX5o=;
 h=From:Sender:Sender:From;
 b=hXAXJSbbZEkCwNLNdZTevgnZRWqwcxP69g3DbKFdUONxjrpn0tZiY3eeQ8OXGcyck
	 yca5Zk6easYqA92DsjBsWvhOkSnib+HBRbRwpNuz5LmP1oL+DtDj2ZtZLcXuMq33CC
	 8dKnlRfbzCCtIum/xPSXwE19oziH9kP9VRGL3Sdw=
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 A9aG-ygDnaqC; Sun,  2 Feb 2020 04:41:28 -0500 (EST)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7EC4D24E1D;
 Sun,  2 Feb 2020 04:40:41 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1580636485;
 bh=NBFjhughLrm/2Thh/deMdvFeQVfWmia8Z6lgmokdX5o=;
 h=From:Sender:Sender:From;
 b=nMPRuOpNDhHEtS/mW/2UBiBaH/6q3A7CNABQtqPpzng3dH2O5qjljTnWJpVZHbIHn
	 2kkI6Gt9FXyUD9I5oKr/voOtBuSOQ2JVvKMyxIlsD7TPOzk19GhBMjTKz8vNU+Ac+f
	 hrIxShNlFKm1CKVTj9pBaH4yNO2yWD29IhEg6vHM=
Received: with ECARTIS (v1.0.0; list oracle-l); Sun, 02 Feb 2020 04:39:56 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 2C78424DD4
 for <oracle-l@freelists.org>; Sun,  2 Feb 2020 04:39:56 -0500 (EST)
Authentication-Results: turing.freelists.org;
 dkim=pass (1024-bit key; unprotected) header.d=jlcompdemononcascade.onmicrosoft.com header.i=@jlcompdemononcascade.onmicrosoft.com header.b="sKlRCYeb";
 dkim-atps=neutral
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 n647obUeUtZO for <oracle-l@freelists.org>;
 Sun,  2 Feb 2020 04:39:56 -0500 (EST)
Received: from GBR01-LO2-obe.outbound.protection.outlook.com (mail-eopbgr100089.outbound.protection.outlook.com [40.107.10.89])
 (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 DB29C24C72
 for <oracle-l@freelists.org>; Sun,  2 Feb 2020 04:39:54 -0500 (EST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=muSSZ+GN57ESMUEDGyEAXPYsPBvRumyZycXp//miPKKvhcGOnW2DuB45SJYc0QrLe/l05qe+9TS2YXh+oGAIDhQv9yq3+QjOAkUTtUeRxEw7gO1dQNQP48fDjsyP49C2egSS36GOnrFNUOub8XSR8o4qBHNamZCqDzqsvi+x5ILuZbkcl7pnlwHWWqMQV7ScO6ofdqedIpl4x8+qDFN0i29PteDOpAK4P6w8Nr7nLKq1kctH8Xcq3p5yyHge2+iWrt15rTFrx4JPSgBlC/kLnHnQBzRz9wRQOmRTU9yYZC7/JQWB8hYOOVSqZ2kZRvA1L7iad3znIymhzOEdT74cSA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=L8Lj9BNd7J3z0/yoCAZmYQ9tYg5dkeY26NeSczcJ4iE=;
 b=cBvfP5ShYR0IjH247EHWmWmS861fNRdZY5//JW1qGOAwyTnOOd4m1+iZaJT7VG4wA+xx3uzMsCUXLHY7Vpev2zAzBOdidpKNkdzDfKa6Y1/TF8LpjpK0GBHhYTZI44/wQrKwOFUhjApAIwgC6nHCnv2T6uJAjXvUvLymCsT8cIGI4i5+Ilq5AQVUnUEupBqc8BHJyyXdOG38cOCjdIzoqj44Upj02nEnwV9f/EVNrPYZSocwCN/mLAKY6CD1ByInH5Pxet7etbKTopWw2+uw9y0dNxKA1EL6h/2FA91H0wJCeMEQmdH9YkLB9gU1Y+qW9cJkQwRJosEQbKQITlLyGg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=jlcomp.demon.co.uk; dmarc=pass action=none
 header.from=jlcomp.demon.co.uk; dkim=pass header.d=jlcomp.demon.co.uk;
 arc=none
Received: from LNXP265MB1562.GBRP265.PROD.OUTLOOK.COM (20.176.130.21) by
 LNXP265MB0250.GBRP265.PROD.OUTLOOK.COM (10.166.183.21) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.2665.24; Sun, 2 Feb 2020 09:39:52 +0000
Received: from LNXP265MB1562.GBRP265.PROD.OUTLOOK.COM
 ([fe80::d5:ae78:8c0e:c207]) by LNXP265MB1562.GBRP265.PROD.OUTLOOK.COM
 ([fe80::d5:ae78:8c0e:c207%6]) with mapi id 15.20.2686.031; Sun, 2 Feb 2020
 09:39:52 +0000
From: Jonathan Lewis <jonathan@jlcomp.demon.co.uk>
To: Oracle L <oracle-l@freelists.org>
Subject: Re: intermittent long "log file sync" waits
Thread-Topic: intermittent long "log file sync" waits
Date: Sun, 2 Feb 2020 09:39:52 +0000
Message-ID: 
 <LNXP265MB1562810EC75BB7A638891C97A5010@LNXP265MB1562.GBRP265.PROD.OUTLOOK.COM>
References: 
 <CAEFL0szEBH0P-hqb39Pmjw-pdJ60OZ+RUuFoqCXsC7+=iPEFzQ@mail.gmail.com>
 <38763_1580228753_5E306091_38763_12713_1_cf89e1868e2e40949f6177bf1c604696@vontobel.com>
 <CAEFL0swS2CGeDF2pGWHDBQkO8J1cH7cMbDCxBngx613UW52A+Q@mail.gmail.com>
 <39760_1580232621_5E306FAD_39760_6519_1_238f704e660247f78d5e2f6a5c98b27f@vontobel.com>
 <CAEFL0szP5+-ZUog8Q=P0TiusLw6MpDDM46hZM=7ps0v0o3p_OQ@mail.gmail.com>
 <38763_1580238546_5E3086D2_38763_18592_1_8d9cba2aa89d4aba82f0b60173245848@vontobel.com>
 <CAEFL0szn17WU9kSj7ipRhieXd4w_3hzhU5gSmxDxhx1=WnqDkw@mail.gmail.com>
 <CAMHX9J+FooJWWr896aFx7oqeMk=PKA__GaHjxjU_gsOyE1Tzjg@mail.gmail.com>
 <CAEFL0sx7fAF89Qike6PS2Jy9-N5S-w-r31XQ7kj8AEGP5FonTg@mail.gmail.com>
 <CAEFL0syR4Xy2fPiL4M3jtmmfj_02MmYgC_haCM=LDZ17ikuGgg@mail.gmail.com>
 <CAMHX9JLchyEEvh4mHH8hHXEa53r5FP4Ck-kpCMLUiTgOJzYuEw@mail.gmail.com>,<CAMHX9JLW_i_c+7V0jMwXhWeAKNvUhEdVkf0sKEyHg62XyZP3aA@mail.gmail.com>
In-Reply-To: 
 <CAMHX9JLW_i_c+7V0jMwXhWeAKNvUhEdVkf0sKEyHg62XyZP3aA@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=none (sender IP is )
 smtp.mailfrom=jonathan@jlcomp.demon.co.uk; 
x-originating-ip: [86.140.148.162]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 3956712e-51f6-4dff-0bb5-08d7a7c3dab7
x-ms-traffictypediagnostic: LNXP265MB0250:
x-microsoft-antispam-prvs: 
 <LNXP265MB0250C0B92D2160A315B732B1A5010@LNXP265MB0250.GBRP265.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0301360BF5
x-forefront-antispam-report: 
 SFV:NSPM;SFS:(10009020)(366004)(346002)(39830400003)(396003)(376002)(136003)(189003)(199004)(71200400001)(76116006)(55016002)(2906002)(66446008)(66476007)(64756008)(5660300002)(966005)(508600001)(66556008)(66946007)(52536014)(9686003)(6506007)(53546011)(8936002)(26005)(316002)(186003)(8676002)(81156014)(81166006)(86362001)(6916009)(33656002)(7696005);DIR:OUT;SFP:1101;SCL:1;SRVR:LNXP265MB0250;H:LNXP265MB1562.GBRP265.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:0;
received-spf: None (protection.outlook.com: jlcomp.demon.co.uk does not
 designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 
 0DTuo6H8HfxCTBR5MHUoZsvJOptY//FslnJGjp6VjvlBeOuWqTRgXEtOjkGrHEsiTl+l5Xebx9DEaqERsSqkTebx63NcyvgFBBIxCTI2ASnQ6iWi8dI1Byd04vsdq7VPlGlOuY5f85hO22mHadXr9C5JqRREVLDIgh29a3/vO3WW4PvyphE/8WDxUlur5M2TqMmVzPYkyeukWb7sSBb4c+j54BSYHB4fH5zPRI+w4nePl3ugwsFt+mYpouGclvRXHAgt6eAKWSlx42lA8kY4iTmxygkDo9IOAPu5x5pJrdVgEUan8A1g2Qhjqw5D7gH23nJo7+0P+WyDtczQM+Jtk/nJOTnpUUYDyPPi1daV5bgIbwyKbkdIvlUlqVhmAwzol4ilsT8TxFVos8w6R5rNKULwfTEOY3A18eIqFmyaDSquFMfMnOmYEobeD67fCMoxdhkmHyVX6oK9nOrhm96AqvlERKP9g3bYLQQSECL5vI6RDl8pbGtS7QpsGQF21tECj4z62aipPv0/WsqSyS5eug==
x-ms-exchange-antispam-messagedata: 
 LhxmAyEy+SrzTDBeKxLKzqqZxMMI6e4Y7E2HZi8U+GZnrw7qQcloXBoWpoTZygpieGIcKPqwcnEih4VNf8C+jQ9SmM5lK5B20WqBvXDY/g4QE9dSf8pHkeSN7GRzvyLuCed0XVt7tceC3/+sOcwxEg==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: jlcomp.demon.co.uk
X-MS-Exchange-CrossTenant-Network-Message-Id: 3956712e-51f6-4dff-0bb5-08d7a7c3dab7
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2020 09:39:52.4965
 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: c5ec3dea-08bd-405e-942c-f61dff9a4831
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: ip/rfvDmIPQen+nxAF8R+DPTedYPugC9bxVDyUhXWsFTIenC71J2Pt0AK8N5og/nUZXVzqMim2WxChDF0AGaI3+jEiH6dEcwplwLZXBUtY0=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: LNXP265MB0250
X-archive-position: 76130
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: jonathan@jlcomp.demon.co.uk
Precedence: normal
Reply-To: jonathan@jlcomp.demon.co.uk
List-Help: <mailto:ecartis@freelists.org?Subject=help>
List-Unsubscribe: <mailto: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: <mailto:oracle-l-request@freelists.org?Subject=subscribe>
List-Owner: <mailto:>
List-post: <mailto:oracle-l@freelists.org>
List-Archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l

=0A=
It be interesting to see the previous 5 or 6 seconds of lgwr WAITS - using =
the "tim=3D" values as indicators to get to a point before that log file sy=
nc started. =0A=
The foreground doesn't have to send a message to the log writer if the log =
writer is already writing because it knows that LGWR will check if there's =
more to write before going to sleep. Possibly there's a race condition wher=
e the foreground decides that it doesn't need to send a message but the log=
 writer has decided there's no more to write - the log writer's activity in=
 the few seconds before it's 2.9 second wait might give us a clue.=0A=
=0A=
I'm also a little puzzled that a foreground could wait 6.9 seconds.  I thou=
ght there was a timeout for LFS (either 1 second or 1/10th second - possibl=
y version dependent, and settable by hidden parameter). So, unless the fore=
ground times out but doesn't start a new wait, it can't wait for 6.9 second=
s.=0A=
=0A=
Purely for the sake of collecting information I think I'd take a look at sm=
on_scn_time to to see what time the foregrounds  "sync scn" corresponded to=
, and to check the SCNs for the start and end time of the LFS wait.  =0A=
=0A=
=0A=
=0A=
Regards=0A=
Jonathan Lewis=0A=
 =0A=
=0A=
=0A=
________________________________________=0A=
From: oracle-l-bounce@freelists.org <oracle-l-bounce@freelists.org> on beha=
lf of Tanel Poder <tanel@tanelpoder.com>=0A=
Sent: 02 February 2020 03:50=0A=
To: Tanel Poder=0A=
Cc: Chris Stephens; Noveljic Nenad; oracle-l=0A=
Subject: Re: intermittent long "log file sync" waits=0A=
=0A=
But your trace file here already indicates that there's some glitch regardi=
ng LGWR wakeups/posting:=0A=
=0A=
Foreground:=0A=
=0A=
*** 2020-01-29T13:04:20.724666-06:00=0A=
WAIT #0: nam=3D'log file sync' ela=3D 6909711 buffer#=3D58996 sync scn=3D97=
6089279 p3=3D0 obj#=3D-1 tim=3D1025228531958=0A=
=0A=
LGWR at the same time:=0A=
=0A=
*** 2020-01-29T13:04:20.725994-06:00=0A=
WAIT #0: nam=3D'rdbms ipc message' ela=3D 2918443 timeout=3D300 p2=3D0 p3=
=3D0 obj#=3D-1 tim=3D1025228533313=0A=
=0A=
The WAIT lines are printed out when the wait ends (and the *** timestamp li=
ne just before the WAIT line is printed out, if enough time has passed sinc=
e the last *** line). So this shows that LGWR had happily been idle, waitin=
g for its idle 3-second timeout to expire, or someone to wake it up (that's=
 what "rdbms ipc message" means) - while someone had issued a commit and wa=
s waiting for LGWR acknowledgment. So this shows that LGWR didn't even get =
the post from your session, nor any other sessions (if you had concurrent t=
ransactional activity). Back in 11g, typically these problems happened when=
 adaptive log file syncing switch between poll and post/wait wakeup method =
happened and you hit a bug. But in 12c there are more moving parts.=0A=
=0A=
--=0A=
Tanel Poder=0A=
https://blog.tanelpoder.com/seminar=0A=
=0A=
--
http://www.freelists.org/webpage/oracle-l


