If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Tempspace in EEE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-01-04, 10:14
koganti koganti is offline
Registered User
 
Join Date: Jul 2002
Location: ATL
Posts: 170
Tempspace in EEE

Does any body has any links for documentation on how SMS tempspace is allocated in a multi node systems.

I have four containers on each node and i have 7 nodes.
How will the tempaces be allocated ?
Will it allocate one extent on one node and goes to next node or will it allocate one extent on all the containers and goes to next node ?

Thanks a head
Prasad
Reply With Quote
  #2 (permalink)  
Old 03-01-04, 20:37
quigleyd quigleyd is offline
Registered User
 
Join Date: Nov 2002
Location: Delaware
Posts: 186
Re: Tempspace in EEE

I don't have any links, but each node is considered its own database and will have its own tempspace. The only thing really different about each node/partition is the cordinatior/primary will only have the system catalogs and none of the other partitions will have them. It will allocate the space on the node that its on or bring that data back to the cordinating node.

If you submit the query to pull the info from that table it would submit the same query to each partition that has data on it. It will sort and do some of the work on the node/partition that it got the data for and will use that tempspace definded in that node/partition. If you have data on partition/node 1 it will not use the tempspace defined to partition 2, etc. The only partition/node that all of them would use would be the primary/coordinator partition when it brings all the data back from the other partitions.

If you have a test system, change the sort to a real small number and then run a large select with a group by or sort and it should spill to disk, run it against that one partition and you can see the files being created in the directory since its sms, you can check the other directory where you put the temporary space at and you'll see it not being used.
__________________
David Quigley
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On