Unix Technical Forum

clarification of parallel query on informix and oracle

This is a discussion on clarification of parallel query on informix and oracle within the Informix forums, part of the Database Server Software category; --> Hi Gurus , I use oracle 9i rac on linux redhat ia64 . When i issue a parallel query ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 07:50 AM
utkanbir
 
Posts: n/a
Default clarification of parallel query on informix and oracle

Hi Gurus ,

I use oracle 9i rac on linux redhat ia64 . When i issue a parallel
query on oracle , the query bypasses the oracle buffer cache and use
process memory instead. So no caching occurs. When a full table scan
is issued in parallel , it is also true that , oracle always bypasses
the buffer cache.(Related oracle wait event for this is direct path
read) . It does not matter whether the table which is full table
scanned has some cached blocks in memory , they are not used by
parallel query . So if there is no file system caching in use ,
subsequent running of same parallel query take same time since no
caching is inuse.


As i remember correctl , with informix , we also use som ebypassing
mechanism called light scans which bypasses the resident memory and
uses virtual memory , but how about the caching? Does informix use
caching when a query runs in parallel ..


Kind Regards,
hope
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 07:50 AM
superboer
 
Posts: n/a
Default Re: clarification of parallel query on informix and oracle

this is some time ago; if i recall correctly:

there is an env var called
export LIGHT_SCANS=FORCE

and there are restrictions on it; check the manual for it;

it may also be dependant on your isolation level; if dirty read then
light_scans ??

monitor it using

onstat -g lsc

there is also something called light appends --> temp table with no log and
temp dbspaces can use this; also the high perf loader; monitor using
onstat -g lap

you can also 'configure' bits of it;
RA_PAGES and RA_THRESHOLD onconfig params have influence on how many buffers
are used for light scans/appends.

See you

Superboer.



hopehope_123@yahoo.com (utkanbir) wrote in message news:<f6c90ebe.0410052300.6f6ecd72@posting.google. com>...
> Hi Gurus ,
>
> I use oracle 9i rac on linux redhat ia64 . When i issue a parallel
> query on oracle , the query bypasses the oracle buffer cache and use
> process memory instead. So no caching occurs. When a full table scan
> is issued in parallel , it is also true that , oracle always bypasses
> the buffer cache.(Related oracle wait event for this is direct path
> read) . It does not matter whether the table which is full table
> scanned has some cached blocks in memory , they are not used by
> parallel query . So if there is no file system caching in use ,
> subsequent running of same parallel query take same time since no
> caching is inuse.
>
>
> As i remember correctl , with informix , we also use som ebypassing
> mechanism called light scans which bypasses the resident memory and
> uses virtual memory , but how about the caching? Does informix use
> caching when a query runs in parallel ..
>
>
> Kind Regards,
> hope

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 07:50 AM
Art S. Kagel
 
Posts: n/a
Default Re: clarification of parallel query on informix and oracle

On Wed, 06 Oct 2004 03:00:04 -0400, utkanbir wrote:

Read the Administrator's Guide, Light Scans are not used for parallel queries
in general, most go through the IDS buffer cache. Light scans do avoid the
buffer cache and are used for queries that include a long sequential scan of
a table and are only used for pages from that table. This is to prevent a
large table scan from thrashing the buffer cache and forcing recently used
pages out of the cache. This behavior is independent of whether the query is
parallelized or not.

Art S. Kagel

> Hi Gurus ,
>
> I use oracle 9i rac on linux redhat ia64 . When i issue a parallel query on
> oracle , the query bypasses the oracle buffer cache and use process memory
> instead. So no caching occurs. When a full table scan is issued in parallel
> , it is also true that , oracle always bypasses the buffer cache.(Related
> oracle wait event for this is direct path read) . It does not matter whether
> the table which is full table scanned has some cached blocks in memory ,
> they are not used by parallel query . So if there is no file system caching
> in use , subsequent running of same parallel query take same time since no
> caching is inuse.
>
>
> As i remember correctl , with informix , we also use som ebypassing
> mechanism called light scans which bypasses the resident memory and uses
> virtual memory , but how about the caching? Does informix use caching when a
> query runs in parallel ..
>
>
> Kind Regards,
> hope

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 07:50 AM
David E. Grove
 
Posts: n/a
Default Re: clarification of parallel query on informix and oracle

>Light scans do avoid the
> buffer cache and are used for queries that include a long sequential scan

of
> a table and are only used for pages from that table.



I've wondered about that, too. So, if a light scan is to be used, IDS
ignores any pages already in the buffer cache? Suppose the whole table is
already cached (say it was made resident)-- would that affect the answer?

Thank you.

DG


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 07:50 AM
Fernando Nunes
 
Posts: n/a
Default Re: clarification of parallel query on informix and oracle

David E. Grove wrote:
>>Light scans do avoid the
>>buffer cache and are used for queries that include a long sequential scan

>
> of
>
>>a table and are only used for pages from that table.

>
>
>
> I've wondered about that, too. So, if a light scan is to be used, IDS
> ignores any pages already in the buffer cache? Suppose the whole table is
> already cached (say it was made resident)-- would that affect the answer?
>
> Thank you.
>
> DG
>
>


If I recall correctly, one requisite of light scans is that the table
must be bigger that the buffer cache.... But you can check this in the
manual. It it's such, that the table can't be in memory. And by the way,
resident tables by user command will be gone, because the new cache
system does this by default.

Regards,

Fernando Nunes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:42 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com