Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Background Processes and I/O
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  14 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael J. Moore  
View profile  
 More options Dec 20 2003, 8:22 pm
Newsgroups: comp.databases.oracle.server
From: "Michael J. Moore" <NOhicamelS...@comcast.net>
Date: Sun, 21 Dec 2003 01:22:45 GMT
Local: Sat, Dec 20 2003 8:22 pm
Subject: Background Processes and I/O
From 9i Self Test ...

Which 4 background processes perform I/O? (Choose 4)

* DBWn
* ARCn
* PMON
* SMON
* CKPT
* LGWR
-----------------
I thought they all did, except CKPT which tells DBWn to do it, and PMON
which only works with memory structures.

Their answer was all except SMON and PMON. In reality, none of them do I/O
because they call OS library routines to do the actual I/O.  This is why I
don't have a chance in hell of passing this test, because too many answers
depend on how you consider the question. ;-)

Any comments?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ana C. Dent  
View profile  
 More options Dec 20 2003, 8:32 pm
Newsgroups: comp.databases.oracle.server
From: "Ana C. Dent" <anaced...@hotmail.com>
Date: Sat, 20 Dec 2003 17:32:41 -0800
Local: Sat, Dec 20 2003 8:32 pm
Subject: Re: Background Processes and I/O

I agree with "their" answer.
Which process writes to the control files?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael J. Moore  
View profile  
 More options Dec 20 2003, 10:15 pm
Newsgroups: comp.databases.oracle.server
From: "Michael J. Moore" <NOhicamelS...@comcast.net>
Date: Sun, 21 Dec 2003 03:15:05 GMT
Local: Sat, Dec 20 2003 10:15 pm
Subject: Re: Background Processes and I/O
Okay, but why would CKPT be any more true than SMON? Does not SMON also
perform I/O?

"Ana C. Dent" <anaced...@hotmail.com> wrote in message
news:ZK6Fb.32237$BQ5.9627@fed1read03...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ana C. Dent  
View profile  
 More options Dec 20 2003, 10:30 pm
Newsgroups: comp.databases.oracle.server
From: "Ana C. Dent" <anaced...@hotmail.com>
Date: Sat, 20 Dec 2003 19:30:12 -0800
Local: Sat, Dec 20 2003 10:30 pm
Subject: Re: Background Processes and I/O

Top posting is rude!

DBW - does I/O to datafiles
ARC - Does I/O when archiving redo logfiles
CKPT- Updates control files.
LGWR- Writes redo logfiles.
To which file(s) does SMON read & write?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael J. Moore  
View profile  
 More options Dec 20 2003, 11:06 pm
Newsgroups: comp.databases.oracle.server
From: "Michael J. Moore" <NOhicamelS...@comcast.net>
Date: Sun, 21 Dec 2003 04:06:01 GMT
Local: Sat, Dec 20 2003 11:06 pm
Subject: Re: Background Processes and I/O

"Ana C. Dent" <anaced...@hotmail.com> wrote in message
news:8t8Fb.32649$BQ5.21787@fed1read03...

Sorry, I didn't know that top posting is rude.

SMON performs instance recovery, so it must read from redo logs. The manuals
I have read are not clear on how SMON does this, but if it does read, then
that counts as I/O, right? SMON also cleans up temporary segments anc
coalesces free extents. Can it do this without performing I/O?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ana C. Dent  
View profile  
 More options Dec 20 2003, 11:33 pm
Newsgroups: comp.databases.oracle.server
From: "Ana C. Dent" <anaced...@hotmail.com>
Date: Sat, 20 Dec 2003 20:33:55 -0800
Local: Sat, Dec 20 2003 11:33 pm
Subject: Re: Background Processes and I/O

SMON might to I/O at instance startup; also to the rollback segments for
uncommitted "transactions" (which I'll stipulate is an oxymoron).

I agree that the OCP test questions leave a lot to be desired.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael J. Moore  
View profile  
 More options Dec 20 2003, 11:44 pm
Newsgroups: comp.databases.oracle.server
From: "Michael J. Moore" <NOhicamelS...@comcast.net>
Date: Sun, 21 Dec 2003 04:44:59 GMT
Local: Sat, Dec 20 2003 11:44 pm
Subject: Re: Background Processes and I/O
--- snip---

> > SMON performs instance recovery, so it must read from redo logs. The
manuals
> > I have read are not clear on how SMON does this, but if it does read,
then
> > that counts as I/O, right? SMON also cleans up temporary segments anc
> > coalesces free extents. Can it do this without performing I/O?

> SMON might to I/O at instance startup; also to the rollback segments for
> uncommitted "transactions" (which I'll stipulate is an oxymoron).

> I agree that the OCP test questions leave a lot to be desired.

Well you did straighten me out about CKPT ... thanks. It is interesting that
even in the Oracle manuals, their diagrams never show SMON pointing to any
of the files, only pointing to the SGA. This leaves me wondering if SMON
actually performs it's own I/O or invokes some other process to do it's
dirty work. I wish they would give a little more detail.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Geomancer  
View profile  
 More options Dec 21 2003, 9:07 am
Newsgroups: comp.databases.oracle.server
From: pharfromh...@hotmail.com (Geomancer)
Date: 21 Dec 2003 06:07:14 -0800
Local: Sun, Dec 21 2003 9:07 am
Subject: Re: Background Processes and I/O

> I thought they all did, except CKPT which tells DBWn to do it, and PMON
> which only works with memory structures.

If you are on 9i, you can measure the RAM used by the Oracle background processes:

select
   program,
   pga_used_mem,
   pga_alloc_mem,
   pga_max_mem
from
   v$process;


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Drake  
View profile  
 More options Dec 21 2003, 12:01 pm
Newsgroups: comp.databases.oracle.server
From: drak0n...@yahoo.com (Paul Drake)
Date: 21 Dec 2003 09:01:00 -0800
Subject: Re: Background Processes and I/O
"Michael J. Moore" <NOhicamelS...@comcast.net> wrote in message <news:ez9Fb.446468$275.1320599@attbi_s53>...

normally, for a user process, a logon trigger could be used to trace
it (event 10046). I've seen text indicating that an instance crash is
likely if you trace PMON, but I don't know if that is true for SMON.
So lets just leave that at the usual "don't run it against a database
that you can't destroy/corrupt". Then again, the trace file might be
so cryptic that only an x$_% wizard (fluent in elvish) could read it.

I believe that LGWR can also write to the controlfiles. I've seen a
trace file where a controlfile was locked by a backup process
(infidels!) and LGWR crashed before CKPT did. Hmmm, does PMON perform
any IO when it takes down the instance?

Pd


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Lewis  
View profile  
 More options Dec 21 2003, 1:33 pm
Newsgroups: comp.databases.oracle.server
From: "Jonathan Lewis" <jonat...@jlcomp.demon.co.uk>
Date: Sun, 21 Dec 2003 18:29:59 -0000
Local: Sun, Dec 21 2003 1:29 pm
Subject: Re: Background Processes and I/O

Smon kicks in every 5 minutes to query ts$ to check
if any dictionary-managed tablespaces have pctincrease
non-zero, and then tries to coalesce them.  THere are several
other jobs that smon does which are also visible as standard
SQL querying, and therefore require normal database read
requests.

--
Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

  The educated person is not the person
  who can answer the questions, but the
  person who can question the answers -- T. Schick Jr

One-day tutorials:
http://www.jlcomp.demon.co.uk/tutorial.html

Three-day seminar:
see http://www.jlcomp.demon.co.uk/seminar.html
____UK___November

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

"Michael J. Moore" <NOhicamelS...@comcast.net> wrote in message
news:ez9Fb.446468$275.1320599@attbi_s53...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Lewis  
View profile  
 More options Dec 21 2003, 1:33 pm
Newsgroups: comp.databases.oracle.server
From: "Jonathan Lewis" <jonat...@jlcomp.demon.co.uk>
Date: Sun, 21 Dec 2003 18:32:25 -0000
Local: Sun, Dec 21 2003 1:32 pm
Subject: Re: Background Processes and I/O

If pmon is recovering a process, it has to do a
rollback on behalf of that process.  Consequently
it has to read the rollback blocks in reverse order,
and the datablocks as required.

For a long-running transaction, many undo blocks and
some data blocks are likely to be on disc, so pmon will
have to re-read them in the normal fashion.

During testing, I've never seen the database crash
on a normal sql_trace=true in the init.ora, and the
resulting traces from pmon et. al. have been quite
interesting.

--
Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

  The educated person is not the person
  who can answer the questions, but the
  person who can question the answers -- T. Schick Jr

One-day tutorials:
http://www.jlcomp.demon.co.uk/tutorial.html

Three-day seminar:
see http://www.jlcomp.demon.co.uk/seminar.html
____UK___November

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

"Paul Drake" <drak0n...@yahoo.com> wrote in message

news:1ac7c7b3.0312210901.700b593f@posting.google.com...
> "Michael J. Moore" <NOhicamelS...@comcast.net> wrote in message

<news:ez9Fb.446468$275.1320599@attbi_s53>...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael J. Moore  
View profile  
 More options Dec 21 2003, 2:09 pm
Newsgroups: comp.databases.oracle.server
From: "Michael J. Moore" <NOhicamelS...@comcast.net>
Date: Sun, 21 Dec 2003 19:09:15 GMT
Local: Sun, Dec 21 2003 2:09 pm
Subject: Re: Background Processes and I/O

"Jonathan Lewis" <jonat...@jlcomp.demon.co.uk> wrote in message

news:bs4p1v$go8$1$8300dec7@news.demon.co.uk...

So, is it fair to say that both SMON and PMON perform I/O?
Regards,
Mike

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Niall Litchfield  
View profile  
 More options Dec 21 2003, 4:32 pm
Newsgroups: comp.databases.oracle.server
From: "Niall Litchfield" <niall.litchfi...@dial.pipex.com>
Date: Sun, 21 Dec 2003 21:33:26 -0000
Local: Sun, Dec 21 2003 4:33 pm
Subject: Re: Background Processes and I/O
I'm pretty sure, and I don't know how the question was phrased in your test,
but at 8i that the which processes do IO question seemed to regard only
writes as IO and not reads.

--
Niall Litchfield
Oracle DBA
Audit Commission UK
*****************************************
Please include version and platform
and SQL where applicable
It makes life easier and increases the
likelihood of a good answer
******************************************
"Michael J. Moore" <NOhicamelS...@comcast.net> wrote in message
news:vdmFb.12034$VB2.21282@attbi_s51...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Billy Verreynne  
View profile  
 More options Dec 22 2003, 12:26 am
Newsgroups: comp.databases.oracle.server
From: vsl...@onwe.co.za (Billy Verreynne)
Date: 21 Dec 2003 21:26:47 -0800
Local: Mon, Dec 22 2003 12:26 am
Subject: Re: Background Processes and I/O
"Michael J. Moore" <NOhicamelS...@comcast.net> wrote:

I agree that this is bs.

SQL> select sid, program from v$session;

       SID PROGRAM
---------- ------------------------------------------------
         1 oracle@tjs-prod (PMON)
         2 oracle@tjs-prod (DBW0)
         3 oracle@tjs-prod (LGWR)
         4 oracle@tjs-prod (CKPT)
         5 oracle@tjs-prod (SMON)
         6 oracle@tjs-prod (RECO)
         7 oracle@tjs-prod (ARC0)
         8 oracle@tjs-prod (ARC1)
<snipped>

SQL> select * from v$sess_io where sid = 5;

       SID BLOCK_GETS CONSISTENT_GETS PHYSICAL_READS BLOCK_CHANGES
---------- ---------- --------------- -------------- -------------
CONSISTENT_CHANGES
------------------
         5      46446          148181          70781         29868
                23

70,781 physical reads. This btw is the 2nd highest i/o process
currently on the prod db I pulled these stats from.

Personally I think things like OCP and MSE certifications are worth
crap. It is like those arses who think that a penis enlargement means
they will be better at sex.

--
Billy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »