RE: parallel recovery slaves waiting on undo reads

  • From: Noveljic Nenad <nenad.noveljic@xxxxxxxxxxxx>
  • To: Frits Hoogland <frits.hoogland@xxxxxxxxx>
  • Date: Fri, 28 Feb 2020 11:00:33 +0000

From a performance perspective, the problem with this wait event is that the 
timing of the wait event has no absolute meaning: waiting for a single IO is 
something different that waiting for let’s say 70 IO requests submitted at 
the same time. p2 tells you the amount of oracle blocks, p3 the amount of 
requests.

Assuming that ‘db file parallel read’ for multiple blocks starts measuring just 
before submitting IO operations and stops after the last wait completed, do you 
find the following interpretation of "db file parallel read" wait time correct 
when multiple blocks are involved:
Async IO: “db file parallel read” wait time = max(IO time)
Sync IO: “db file parallel read” wait time = sum(all IO times); (sum because 
the reads are executed sequentially, I think)

Best regards,

Nenad

https://nenadnoveljic.com/blog


From: Frits Hoogland <frits.hoogland@xxxxxxxxx>
Sent: Freitag, 28. Februar 2020 09:53
To: Noveljic Nenad <nenad.noveljic@xxxxxxxxxxxx>
Cc: Jonathan Lewis <jonathan@xxxxxxxxxxxxxxxxxx>; oracle-l@xxxxxxxxxxxxx
Subject: Re: parallel recovery slaves waiting on undo reads

Not sure how relevant this is, because you are looking for the reason your 
recovery worker processes do a lot of IO I assume.

Below is a description of the what happens when you see db file parallel read:

With newer oracle versions (12+), you’ll see plan lines indicating the word 
‘BATCHED’. I believe it’s these points where oracle knows it has to read 
multiple non-adjacent blocks that it is getting these all at once. However, I 
read indications it might be happening outside of the ‘BATCHED’ lines, and is 
implemented at any time it knows multiple non-adjacent blocks are needed, which 
would have been read serially in the past.

This can be implemented on the OS level as asynchronous IO requests via the 
regular asynchronous IO mechanism (io_submit-io_getevents), or uses a 
synchronous version to submit a a batch of IO requests: preadv. The mechanism 
of requesting multiple non-adjacent blocks has its own wait event: db file 
parallel read, which is a reasonable accurate description of what it actually 
does: it wants to read data from multiple places at the same time.

From a performance perspective, the problem with this wait event is that the 
timing of the wait event has no absolute meaning: waiting for a single IO is 
something different that waiting for let’s say 70 IO requests submitted at the 
same time. p2 tells you the amount of oracle blocks, p3 the amount of requests.

Frits Hoogland

http://fritshoogland.wordpress.com<http://fritshoogland.wordpress.com/>
frits.hoogland@xxxxxxxxx<mailto:frits.hoogland@xxxxxxxxx>
Mobile: +31 6 14180860



____________________________________________________
Please consider the environment before printing this e-mail.
Bitte denken Sie an die Umwelt, bevor Sie dieses E-Mail drucken.

<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">p { font-family: Arial;font-size:9pt }</style>
</head>
<body>
<p>
<br>Important Notice</br>
<br />
This message is intended only for the individual named. It may contain 
confidential or privileged information. If you are not the named addressee you 
should in particular not disseminate, distribute, modify or copy this e-mail. 
Please notify the sender immediately by e-mail, if you have received this 
message by mistake and delete it from your system.<br />
Without prejudice to any contractual agreements between you and us which shall 
prevail in any case, we take it as your authorization to correspond with you by 
e-mail if you send us messages by e-mail. However, we reserve the right not to 
execute orders and instructions transmitted by e-mail at any time and without 
further explanation.<br />
E-mail transmission may not be secure or error-free as information could be 
intercepted, corrupted, lost, destroyed, arrive late or incomplete. Also 
processing of incoming e-mails cannot be guaranteed. All liability of Vontobel 
Holding Ltd. and any of its affiliates (hereinafter collectively referred to as 
"Vontobel Group") for any damages resulting from e-mail use is excluded. You 
are advised that urgent and time sensitive messages should not be sent by 
e-mail and if verification is required please request a printed version.</br>
Please note that all e-mail communications to and from the Vontobel Group are 
subject to electronic storage and review by Vontobel Group. Unless stated to 
the contrary and without prejudice to any contractual agreements between you 
and Vontobel Group which shall prevail in any case, e-mail-communication is for 
informational purposes only and is not intended as an offer or solicitation for 
the purchase or sale of any financial instrument or as an official confirmation 
of any transaction.<br />
The legal basis for the processing of your personal data is the legitimate 
interest to develop a commercial relationship with you, as well as your consent 
to forward you commercial communications. You can exercise, at any time and 
under the terms established under current regulation, your rights. If you 
prefer not to receive any further communications, please contact your client 
relationship manager if you are a client of Vontobel Group or notify the sender.
Please note for an exact reference to the affected group entity the corporate 
e-mail signature.
For further information about data privacy at Vontobel Group please consult <a 
href="https://www.vontobel.com";>www.vontobel.com</a>.<br />
</p>
</body>
</html>

Other related posts: