DB2 10.5 BLU列式儲存技術初試

來源:互聯網
上載者:User

2013年IBM DB2 30周歲啦,在此DB2 10.5發布了,其中一個比較搶眼的特性就是BLU加速器,也就是講列式儲存技術開始引入傳統資料庫中,但目前BLU特性只是支援一些特定的的版本主要是AIX和linux 64位平台的DB2 AESE版本的資料庫,所以外界其實能接觸的機會並不多,先給大家看看BLU的配置吧。

我使用的DB2版本及license資訊:

db2level -a
DB21085I  This instance or install (instance name, where applicable: "db2deer")
uses "64" bits and DB2 code release "SQL10053" with level identifier
"0604010E".
Informational tokens are "DB2 v10.5.0.3", "s140203", "IP23544", and Fix Pack
"3".
Product is installed at "/opt/IBM/db2/V10.5".


db2licm -l
Product name:                    "DB2 Advanced Enterprise Server Edition"
License type:                    "Terabyte"
Expiry date:                      "Permanent"
Product identifier:              "db2aese"
Version information:              "10.5"
Enforcement policy:              "Soft Stop"

最簡單的配置列式儲存的方式是,使用使用者環境變數參數DB2_WORKLOAD,DB2 10.5多了個取值


db2set DB2_WORKLOAD=ANALYTICS

設定好後重啟執行個體即可,此時建立DB即可支援列式儲存

當然還有就是從低版本升級過來或者之前未啟用列式儲存的,DB也提供了簡單的自動設定方法,修改以上參數後重啟執行個體,然後使用自動設定即可:

db2 autoconfigure apply db only

        Current and Recommended Values for Database Manager Configuration

 Description                                  Parameter  Current Value      Recommended Value
 -------------------------------------------------------------------------------------------------
 Application support layer heap size (4KB)  (ASLHEAPSZ) = 15                                   
No. of int. communication buffers(4KB)(FCM_NUM_BUFFERS) = AUTOMATIC                             
 Enable intra-partition parallelism    (INTRA_PARALLEL) = NO                                   
Maximum query degree of parallelism  (MAX_QUERYDEGREE) = 7                                     
 Agent pool size                        (NUM_POOLAGENTS) = AUTOMATIC(100)                       
Initial number of agents in pool      (NUM_INITAGENTS) = 0                                     
 Max requester I/O block size (bytes)        (RQRIOBLK) = 65535                                 
 Sort heap threshold (4KB)                  (SHEAPTHRES) = 0                                     


        Former and Applied Values for Database Configuration

 Description                                  Parameter  Former Value        Applied Value
 -------------------------------------------------------------------------------------------------
 Default application heap (4KB)            (APPLHEAPSZ) = 256                256               
 Catalog cache size (4KB)              (CATALOGCACHE_SZ) = 402                482               
 Changed pages threshold                (CHNGPGS_THRESH) = 80                  80               
Database heap (4KB)                            (DBHEAP) = 6283                6306             
Degree of parallelism                      (DFT_DEGREE) = ANY                ANY               
 Default tablespace extentsize (pages)  (DFT_EXTENT_SZ) = 32                  32               
Default prefetch size (pages)        (DFT_PREFETCH_SZ) = AUTOMATIC          AUTOMATIC         
 Default query optimization class        (DFT_QUERYOPT) = 5                  5                 
 Max storage for lock list (4KB)              (LOCKLIST) = AUTOMATIC          AUTOMATIC         
 Log file size (4KB)                        (LOGFILSIZ) = 1024                1024             
Number of primary log files                (LOGPRIMARY) = 8                  19               
Number of secondary log files              (LOGSECOND) = 11                  13               
Max number of active applications            (MAXAPPLS) = AUTOMATIC          AUTOMATIC         
 Percent. of lock lists per application      (MAXLOCKS) = AUTOMATIC          AUTOMATIC         
 Number of asynchronous page cleaners  (NUM_IOCLEANERS) = 14                  1                 
 Number of I/O servers                  (NUM_IOSERVERS) = 32                  6                 
 Package cache size (4KB)                  (PCKCACHESZ) = AUTOMATIC          AUTOMATIC         
 Sort list heap (4KB)                        (SORTHEAP) = AUTOMATIC          47808             
 SQL statement heap (4KB)                    (STMTHEAP) = 8192                16384             
 Statistics heap size (4KB)              (STAT_HEAP_SZ) = 4384                4384             
Utilities heap size (4KB)                (UTIL_HEAP_SZ) = AUTOMATIC          AUTOMATIC         
 Self tuning memory                    (SELF_TUNING_MEM) = ON                  ON               
    Automatic runstats                  (AUTO_RUNSTATS) = ON                  ON               
Sort heap thres for shared sorts (4KB) (SHEAPTHRES_SHR) = AUTOMATIC          956160           
Log buffer size (4KB)                        (LOGBUFSZ) = 2152                2152             
Default table organization              (DFT_TABLE_ORG) = ROW                COLUMN           
Database memory threshold              (DB_MEM_THRESH) = 100                100               


        Former and Applied Values for Bufferpool(s)

 Description                                  Parameter  Former Value        Applied Value
 -------------------------------------------------------------------------------------------------
 IBMDEFAULTBP                            Bufferpool size = -2                  119520           


      Former and Applied Values for System WLM Objects

 Description                                              Former Value        Applied Value
 -------------------------------------------------------------------------------------------------
 Work Action SYSMAPMANAGEDQUERIES Enabled                = Y                  Y                 
 Work Action Set SYSDEFAULTUSERWAS Enabled              = Y                  Y                 
 Work Class SYSMANAGEDQUERIES Timeroncost                = 1.50000E+05        1.50000E+05       
 Threshold SYSDEFAULTCONCURRENT Enabled                  = N                  Y                 
 Threshold SYSDEFAULTCONCURRENT Maxvalue                = 13                  13               


DB210203I  AUTOCONFIGURE completed successfully. Database manager or database
configuration values may have been changed if you chose to apply changes. The
instance must be restarted before any such applied changes come into effect.
You may also want to rebind your packages after the new configuration
parameters take effect so that the new values will be used.

可以看到DFT_TABLE_ORG的值由row修改為column了,也就是以後建立的表預設就是列式儲存表了,據測試來看列式儲存確實在空間使用和SQL查詢效率上提高了很多,不過改特性只能支援單表的,對於分表/DPF/MDC/PureScale環境下的表還是不能支援的,好,現在就說初步瞭解下,以後會有更多的實際應用案例吧。

DB2資料庫效能調整和最佳化(第1、2版) PDF

DB2資料庫效能最佳化介紹

本文永久更新連結地址:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.