Yann Neuhaus Blog

All around Open Source and High Availability

Data Guard in SYNC mode – does my DB suffer from network weakness ?

My Grid Control console is often polluted by warnings about wait events of the network event class :



Is my Data Guard setup really suffering from poor performance?

I operate with the Maximum Availability mode.

We will investigate why the Grid Control warnings occur. The database is up since about 3 days (72 hours). First of all try to identify the wait classes which generated the most important wait times:

set lines 130
select * from V$SYSTEM_WAIT_CLASS
order by 5
/

WAIT_CLASS_ID WAIT_CLASS# WAIT_CLASS          TOTAL_WAITS TIME_WAITED
------------- ----------- ------------------- ----------- -----------
   4217450380           1 Application                1472         434
   3875070507           4 Concurrency                1178        1338
   3290255840           2 Configuration              1097        5250
   3386400367           5 Commit                     3512        6981
   4166625743           3 Administrative             4906      111527
   2000153315           7 Network                 2549790      325016
   1740759767           8 User I/O                1384276      427440
   4108307767           9 System I/O              3151272      646415
   1893977003           0 Other                    251373     2207566
   2723168908           6 Idle                    3720999   639262672

In the database, after a performance alert occurred in Grid Control, we can identify the problem in V$WAITCLASSMETRIC_HISTORY :

select BEGIN_TIME, END_TIME, DBTIME_IN_WAIT, TIME_WAITED WAIT_COUNT
  from V$WAITCLASSMETRIC_HISTORY
 where WAIT_CLASS# = 7; # 7 for network

BEGIN_TIME           END_TIME               DBTIME_IN_WAIT TIME_WAITED WAIT_COUNT
-------------------- --------------------   -------------- ----------- ----------
25-SEP-2007 11:00:54 25-SEP-2007 11:01:54   21.0387822     2143.1923        19262
25-SEP-2007 10:59:54 25-SEP-2007 11:00:54   51.2713653     2147.2517        19047
25-SEP-2007 10:58:54 25-SEP-2007 10:59:54   55.8887214     2480.2726        18405
25-SEP-2007 10:57:53 25-SEP-2007 10:58:54   44.2017456     2374.9075        21223
25-SEP-2007 10:56:53 25-SEP-2007 10:57:53   33.1204214     2676.6979        28336
25-SEP-2007 10:55:53 25-SEP-2007 10:56:53   37.3184263     3498.7629        30965
25-SEP-2007 10:54:54 25-SEP-2007 10:55:53   27.779576      3130.5472        29403
25-SEP-2007 10:53:54 25-SEP-2007 10:54:54   26.117611      2752.5801        23430

Now we will try to analyze in depth the events mentioned in Grid control :

"Database Time Spent Waiting (%)" is at 88.26568 for event class "Network"

Let’s have a look at the primary site. According to the white paper presented in the Metalink note 387174.1, the event “LNS wait on SENDREQ” covers the sequence of the following actions (when a commit transaction is propagated to the standby database).

(Extract of the Metalink note:)
The RFS process receives the redo being sent by LNS and completes the I/O to the standby redo log (important to understand the analysis below).

V$SYSTEM_EVENT is the view which will allow us to identify the current waits events :

select EVENT, TOTAL_WAITS, TOTAL_TIMEOUTS, TIME_WAITED, AVERAGE_WAIT
from v$system_event
where event like '%LNS%'
   or event like '%LGWR%'
/

EVENT                     TOTAL_WAITS TOTAL_TIMEOUTS TIME_WAITED AVERAGE_WAIT
------------------------- ----------- -------------- ----------- ------------
. . .
LNS wait on SENDREQ            125643              0      156673         1.25
. . .

On the standby side we perform almost the same select (a few seconds later) , to identify the LNS/RFS related wait times :


select EVENT, TOTAL_WAITS, TOTAL_TIMEOUTS, TIME_WAITED, AVERAGE_WAIT

  from v$system_event
 where event like '%RFS%'
 order by 4
/

EVENT                     TOTAL_WAITS TOTAL_TIMEOUTS TIME_WAITED AVERAGE_WAIT
------------------------- ----------- -------------- ----------- ------------
. . .
RFS write                      125270              0      121825          .97
. . .


We clearly observe that out of the 156673 ms waited because of "LNS wait on SENDREQ" (on the primary, see above for detailed description of this event), 121825 ms are due to the waits on writing to the standby redo log files on the standby side ("RFS write")

In the whole propagation/synchronization process between primary and standby the most important part is simply the writing on the standby redo log files (normal I/Os to keep the transactions on the standby side) and not the network as expected.

It is worth to mention that the "redo write time" on the primary is 128333 ms which means that the 121825 ms of waits for the RFS writes are fully acceptable (normal I/O operations/performance)

During these 3 days while the database was up and running having waits of about 120000 to 130000 ms (120 to 130 s) is absolutely negligible!

As a conclusion: although the most important waits on the primary database are related to the network, there are negligible in absolute values. 90% of 120 seconds of waits in 3 days is still only 1,66 second of wait per hour in average

More details on www.trivadis.com -> publications :

http://www.trivadis.com/Images/Dataguard_network_tuning_tvd_layout_tcm16-16758.pdf

 

Kommentare

WreltClerma sagte:

Aloha

Thanks to owner of blog.trivadis.com - you made a nice portal in the Net!

I was able made only several pages of blog

I hope this it is suitable category for my message. If there is no forgive for trouble please.

several pages of my first blog :

Beer[url=www.plimus.com/.../buynow.jsp]big ass ***[/url]

[url=www.plimus.com/.../buynow.jsp]young ***[/url]

[/b]

sorry for errors - here is a obscure and I have small keyboard - pda

Thanks

# September 13, 2008 2:14

abemiaClulaoptisal sagte:

sleeping investor

www.proprietarytrader.net

www.proprietarytrader.biz

www.proprietarytrader.info/.../map.html

What do you think of it?

fns

# Oktober 22, 2008 8:58

qtuwhjegm sagte:

XlSoRU  <a href="iithmyiwpwgx.com/.../a>, [url=http://rxaaooskrnlt.com/]rxaaooskrnlt[/url], [link=http://aahqdsivpujb.com/]aahqdsivpujb[/link], http://msxaetpcsstr.com/

# Oktober 22, 2008 11:51

rngkoekl sagte:

vxa3SI  <a href="nilngbubtdas.com/.../a>, [url=http://liyckqskmazh.com/]liyckqskmazh[/url], [link=http://nyofznqccxhd.com/]nyofznqccxhd[/link], http://qxlqzomdwpfz.com/

# Oktober 23, 2008 5:23

hosync sagte:

# Oktober 24, 2008 5:17

hosync sagte:

# Oktober 24, 2008 5:52

unfokyMoohozy sagte:

Hey

www.proprietarytrader.info

http://www.auadvertising.net

awesome

Can you sleep at night these days?

Commercial Radio

# Oktober 25, 2008 6:13

Moiskew sagte:

Hi everyone  

What are the criteria you look for before you decide to put your money in a business?

www.aumeinbusiness.net/map.html

Please do suggest  your views on this!  

Maria

P.S   http://www.businessdomm.name

# Oktober 27, 2008 6:21

Biolispele sagte:

Good moning

I hve been hearing lately about credit repairing companies ande  the amount of work they get in their busines . One of my cousins cousins  is running a creditt repair business, I have talked to him  about the business  but. I need more  information on this so that I cann  start my own credit repair business .

http://www.businnessproect.net

Please do sugest your views on this

Charly  

P.S.  This is not a dream

www.investingtools.biz/map.html

# Oktober 27, 2008 7:15

Biolispele sagte:

My

I hve been hearing lately about credit repairing companies ande  the amount of work they get in their business . One of my cousins  sister is running a credit  repair business, I have talked to himn  about the busines  but. I need more  information on this so that I can  start my own credit repair business .

http://www.businessdomm.net

Please do sugest your views on this!  

Adam

P.S.  Don't Have Investments

www.businnessproect.biz/map.html

# Oktober 27, 2008 12:40

Mbdytuhf sagte:

naked pics of asian girls,

# Oktober 29, 2008 1:27

Gesbngfv sagte:

asian female,

# Oktober 29, 2008 1:33

Altzebje sagte:

asian girls naked,

# Oktober 29, 2008 1:45

blog.trivadis.com sagte:

Здравствуйте!

Необходимо сделать сайт. Форумы, чаты и тому подобное не нужно. Хочу получить качественную вёрстку, именно качественную, а то в дримвивере и сама могу.  Дизайн готов, а остальное за вами.

Очень хотелось бы услышать пару дельных советов о том, какой код выбрать, где лучше регить домен и так далее...

бюджет = около 150 - 200 долл.

# Oktober 29, 2008 11:10

fzunfeucup sagte:

jRl5IQ  <a href="kcapcygefqim.com/.../a>, [url=http://vrjhtsseqowg.com/]vrjhtsseqowg[/url], [link=http://sofoimtsxqgl.com/]sofoimtsxqgl[/link], http://bfbqqsbdtqia.com/

# Oktober 29, 2008 3:32

tismhbntim sagte:

qWjSjZ  <a href="ulitnmshdwvp.com/.../a>, [url=http://tnefpiijjvjp.com/]tnefpiijjvjp[/url], [link=http://ubdundylijel.com/]ubdundylijel[/link], http://qtkkkjupuyts.com/

# Oktober 29, 2008 3:55

rbrzlc sagte:

8kI5ql  <a href="erfyfdumedmh.com/.../a>, [url=http://xsodclwbyylv.com/]xsodclwbyylv[/url], [link=http://yavwppjvisjf.com/]yavwppjvisjf[/link], http://ioemajjsnxbj.com/

# Oktober 29, 2008 4:38

uxUentekYUroLJGSORr sagte:

wadwint77779981

# Oktober 29, 2008 11:56

DlkjSFCJldVkDC sagte:

wadwint77779981

# Oktober 29, 2008 11:58

houptetuets sagte:

blog.trivadis.com = Ggood site

Here is my personal page 2011 [url=http://ved6574.skyrock.com] I and ?[/url]

Frank

# November 2, 2008 12:11

scienry sagte:

[url=http://ved6574.skyrock.com]My BLOG?[/url]

Frank

# November 4, 2008 6:42

scienry sagte:

[url=http://ved6574.skyrock.com]My BLOG?[/url]

Billy

# November 4, 2008 9:47

obeldJelp sagte:

[url=ccbc-ivn.ums.edu/2008.html]Educasion[/url] New 2008

# November 5, 2008 1:57

scienry sagte:

[url=ccbc-ivn.ums.edu/2008.html]educasion[/url]

Anna

# November 5, 2008 3:17

scienry sagte:

[url=ccbc-ivn.ums.edu/2008.html]educasion[/url]

Werner

# November 5, 2008 5:21

scienry sagte:

[url=ccbc-ivn.ums.edu/2008.html]educasion[/url]

Chris

# November 5, 2008 5:50

dpncaqvc sagte:

l2IBpl  <a href="xkpqblqwoqni.com/.../a>, [url=http://jwzuwkyegoqg.com/]jwzuwkyegoqg[/url], [link=http://hwyrjzlizybv.com/]hwyrjzlizybv[/link], http://uqnqonlzoonr.com/

# November 14, 2008 10:19

Bicpriery sagte:

# November 17, 2008 3:34

Bicpriery sagte:

# November 17, 2008 4:59

Bicpriery sagte:

# November 17, 2008 7:39

scienry sagte:

[url=www.financere.info/map.html]definition steuern[/url]

[url=www.financere.org/map.html]steuern[/url]

[url=www.financere.biz/map.html]steuer[/url]

Micha

# November 17, 2008 8:53

Bicpriery sagte:

# November 17, 2008 12:43

zgenrxazpf sagte:

nVJL6g  <a href="dlusdrzqdnuv.com/.../a>, [url=http://ebffhkllbpyj.com/]ebffhkllbpyj[/url], [link=http://vqtogtwoaunk.com/]vqtogtwoaunk[/link], http://sizgyleyrsjy.com/

# November 17, 2008 4:32

videoonlinego sagte:

It is not out-of-date information? Because I have other data on this theme. video-online-go.ru/map.html

# November 20, 2008 5:19

xxxcxs sagte:

D7MTPa  <a href="ebruutazgrbu.com/.../a>, [url=http://ovjehnwuyaav.com/]ovjehnwuyaav[/url], [link=http://oixdfcwwgrmu.com/]oixdfcwwgrmu[/link], http://zaeggwuqmurd.com/

# November 20, 2008 1:54

StoodeLenna sagte:

By investing your money with us, you will get real profits every day

[url=www.capitalifinance.biz/map.html]investing[/url]

[url=www.corporateifinance.net/map.html]corporate finance 2[/url]

[url=www.refinancemortgagee.biz/map.html]firma[/url]

What do you think?

fns  Carlo

# November 21, 2008 4:52
Kommentar abgeben

(verpflichtend) 

(verpflichtend) 

(optional)

(verpflichtend)