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 > Raw device or filesystem container?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-18-10, 02:22
DB2 D-B-A DB2 D-B-A is offline
Registered User
 
Join Date: Sep 2009
Location: Mumbai,India
Posts: 16
Question Raw device or filesystem container?

Hi,

I am working a benchmarking project wherein we have to do performance & volume testing with 18TB of DB2 database (version 9.7) with AIX 5.3 (p series) as database servers with OLTP applications.I am not sure whether to define containers as raw device or filesystem.

I have always learned that raw devices are better than filesystem when it comes to performance but I recently read in the following link that its better to have filesystem containers over raw devices (please note that the link was recently updated in Oct,09 which means the ideas suggested in the link are not old ones).

IBM developerWorks : Best Practices: Database Storage

I am confused..Please suggest because the tablespace design would highly impact benchmarking results.
__________________
Shuchi Mishra
DB2 9 certified DBA for LUW
Reply With Quote
  #2 (permalink)  
Old 02-19-10, 09:31
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Times have changed. I doubt whether you still have local disks on your server. It will be SAN/LUN's right? That means that the times of raw-disks are over. No big deal: you can override the file-system caching in you tablespace definition and that equals out your performance loss.
Reply With Quote
  #3 (permalink)  
Old 02-19-10, 17:09
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
At one time there was a performance benefit to raw devices because there was no file system caching by the OS (which is redundant to bufferpool caching) if one used raw devices.

However, you can now define all your DMS tablespaces with no file system caching, so there is no measurable performance benefit for raw devices anymore. However, remember to put your LOB objects in a separate Long tablespace when the table is created, and you should use file system caching for these tablespaces since LOB's do not use bufferpools (except with Version 9.7 we now have inline LOB's up to 32K if a so-defined).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 02-19-10, 17:17
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
The file system caching was actually one of the main reasons to use raw devices. The caching done by the operating system was just adding another caching layer, robbing memory from the DBMS and providing useless double-buffering. With direct I/O, these times are over and it is generally preferable to have a simpler administration over squeezing out another 1% of performance.

Typically, more severe performance problems exist in other places like missing proper indexes, misconfigured memory heaps, crappy SQL statements, applications that don't treat a DBMS as a DBMS but rather as a dump file system, ... If you want to do real performance testing going to the high-end (e.g. TPC-x), you should get in touch with the IBM labs to get dedicated support. There are people who are working full-time on performance tuning and performance improvements in DB2.

Btw, you could have up to 32K "inlined" LOBs in DB2 V7 already if you wrapped them into structured types. That made accessing those LOBs rather messy, but it did and still does work. :-)
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development

Last edited by stolze; 02-19-10 at 17:23.
Reply With Quote
  #5 (permalink)  
Old 02-19-10, 19:15
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Quote:
Originally Posted by stolze View Post
The file system caching was actually one of the main reasons to use raw devices. The caching done by the operating system was just adding another caching layer, robbing memory from the DBMS and providing useless double-buffering. With direct I/O, these times are over and it is generally preferable to have a simpler administration over squeezing out another 1% of performance.
That is what is said in my post above. Please read it again.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #6 (permalink)  
Old 02-21-10, 13:26
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Quote:
Originally Posted by Marcus_A View Post
That is what is said in my post above. Please read it again.
Right - we agree. What's the problem?

(You just posted a few minutes before me, and I needed some time to write, too. So I did see your post before I klicked on "Submit". I just edited my post and added the comment about the option to inlining short LOBs afterwards.)
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #7 (permalink)  
Old 03-04-10, 01:35
DB2 D-B-A DB2 D-B-A is offline
Registered User
 
Join Date: Sep 2009
Location: Mumbai,India
Posts: 16
Thanks Guys!!!
__________________
Shuchi Mishra
DB2 9 certified DBA for LUW
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