Oracle Exadata
Bottlenecks, Bottlenecks, and more Bottlenecks:
Lessons Learned from 2 Years of Exadata Benchmarks




Tyler D Muth
Chief Database Engineer
Oracle Public Sector
tylermuth.wordpress.com
I only used the most challenging POVs as examples. Some,

I talked a lot about the challenges. In each my examples the
ultimate result was very successful.
Tangent 1
           (is it a tangent if you schedule it?)


Mixed Workload     (show (next slide))

  ½ rack
  ~15,000 transactions per second from swingbench
  Mix of read & write OLTP

  what this machine can do in isolation) of physical
  I/O every few seconds

  DW queries have little or no impact on TPS metric
Reality Check


Physics govern the performance of
computing systems
Marketing cannot change the laws of
physics
Very few people in the world understand
the components end-to-end
Hard Drive Capacity vs Throughput
                                                                                                   120,000
                   120000



                   100000
                                                     90,000
                                                                                                                                       80,000
Factor of Change




                   80000



                   60000
                                                                                                                     Capacity Factor of Change

                                                                                                                     Throughput Factor of Change
                   40000



                   20000

                             1       1                          33                                  41                                72
                        0
                            ST506 (1979)              Cheetah 15k.6 (2008)                   Cheetah 15k.7 (2011)            Pulsar XT.2 SSD (2011)

                                                                Seagate Hard Drive Model (Year)

                                                              ST506          Cheetah 15k.6     Cheetah 15k.7   Pulsar XT.2 SSD
                                                              (1979)            (2008)            (2011)           (2011)

                                     Capacity (GB)                   0.005             450               600              400


                                     Throughput (MB/s)                  5              164               204              360
List of Device Bit Rates
                                  wikipedia - http://sn.im/24mqy8q

Device                            Bandwidth                          Move 1 TB
Ethernet   10 | 100 Mbit          1.25 | 12.5 MB/s                   9+ days | 18 hours
Ethernet   1 | 10 Gbit            125 MB/s | 1.25 GB/s               2.3 hours | 13.7 min
Infiniband QDR 4×                 4 GB/s                             4.3 min
PCI Express 2.0                   4 GB/s                             4.3 min
USB Hi-Speed (USB 2.0)            60 MB/s                            7.2 hours
Fibre Channel     2 | 4 | 8 GFC   212.5 | 425 | 850 MB/s             82 min | 41 min | 20.5 min
7200 RPM Drive                    155 MB/s                           112 min
15k RPM Drive                     204 MB/s                           85 min
Enterprise SSD                    360 MB/s                           48 min
Throughput GB/s
80.0

                                                        75
70.0

60.0

                                                             2 Gbps Fibre Channel x2
50.0
                                                             4 Gbps Fibre Channel x2
 40.0
                                                             8 Gbps Fibre Channel x2
 30.0                                              37
                                                             Exadata 1/4 - Disk
                                         25
 20.0                                                        Exadata 1/2 - Disk

 10.0                             12.5        16             Exadata Full - Disk
         0.4   0.8          5.4                              Exadata 1/4 - Disk & Flash
                     1.6
   0.0
                                                             Exadata 1/2 - Disk & Flash

                                                             Exadata Full - Disk & Flash
Basic Capacity Planning
Basic Capacity Planning
  A transaction takes 10 CPU Milli Seconds of CPU
  and performs 5 random Disk I/Os
   The requirement is to support 1,000
  Transactions/Sec
This means
  #CPU cores needed =
    CPU secs/tx x Transaction Rate / Max Utilization
    0.01 x 1000 / 0.65 = 15.38 round up to 16
  #Disk Spindles Needed =
    IOPS/tx x Transaction rate / IOP per disk
    5 X 1000 / 35 = 142 Disks
Insert Performance            500k Rows

                  Indexes         Indexes
                  Enabled         Disabled

Individual Inserts 52.1 seconds   37.9 seconds

Bulk Inserts      4.2 seconds     2.4 seconds
Monitoring Tools
Macro
   AWR
        Single-node / Global / Compare Period / Single SQL Statement (Color SQL)
        Mining with R Look at my blog shortly, also karlarao.wordpress.com
        AWR Formatter (show)
   EM Avg Act Sessions
   OSWatcher
   CPU Monitor Dominic Giles
   DB Time Viewer
   EM 12c
Micro
   ASH
   SQLT MOS Note: 215187.1 (show):
   http://sn.im/24ocbsn - Main
   http://sn.im/24occct - Compare
   Snapper Tanel Poder - http://sn.im/tanel-snapper
PL/SQL Hierarchical Profiler
NAME                                 FUNCTION                  SUBTREE_ELAPSED_TIME FUNCTION_ELAPSED_TIME      CALLS
----------------------------------   ------------------------- -------------------- --------------------- ----------
  MDSYS.SDO_GEOM                     SDO_UNION                            339697300                    19          1
    MDSYS.SDO_GEOM                   GET_DIM_ARRAY                              187                   187          2
    MDSYS.SDO_GEOM                   SDO_UNION                            339697094                   526          1
      MDSYS.SDO_3GL                  GEOM_OPERATION                       339696568              71518056          1
        .                            __plsql_vm@1                               435                    10          3
          MDSYS.SDO_CS               DISAMBIGUATE_PROJ_NAME                     640                   241          2
            MDSYS.SDO_CS             __static_sql_exec_line472                  399                   399          2
        MDSYS.SDO_3GL                VALIDATE_GEOM                        268178077             268177852          1
          .                          __plsql_vm@1                               225                    10          1
            MDSYS.SDO_CS             DISAMBIGUATE_PROJ_NAME                     640                   241          2
              MDSYS.SDO_CS           __static_sql_exec_line472                  399                   399          2
  MDSYS.SDO_GEOM                     __pkg_init                                  10                    10          1
  MDSYS.SDO_UTIL                     APPEND                                  208234                208234          2
  MDSYS.SDO_UTIL                     INTERNAL_MERGE_LINESTRING            317104843              78041429          1
    MDSYS.SDO_UTIL                   CONCAT_LINES                         238540586              86537313      12314
      MDSYS.SDO_UTIL                 INTERNAL_ORDINATE_COPY               151276858             151276858      80904
      MDSYS.SDO_UTIL                 INTERNAL_REVERSE_LINE_POI               611137                611137        230
      MDSYS.SDO_UTIL                 REVERSE_LINESTRING                      115278                 67102       3760
        MDSYS.SDO_UTIL               INTERNAL_REVERSE_LINE_POI                48176                 48176       3760
    MDSYS.SDO_UTIL                   TRUNCATE_NUMBER                         522828                522828     198680
  MDSYS.SDO_UTIL                     __pkg_init                                  11                    11          1
  SYS.DBMS_ASSERT                    QUALIFIED_SQL_NAME                         195                   195          1
  SYS.DBMS_ASSERT                    SIMPLE_SQL_NAME                             95                    95          1
  MDSYS.SDO_TOPO_GEOMETRY            __dyn_sql_exec_line1048                6718375               6718375          1
  MDSYS.SDO_TOPO_GEOMETRY            __dyn_sql_exec_line978                    3986                  3986          1
  MDSYS.SDO_TOPO_GEOMETRY            __sql_fetch_line1054                   2482917               2482917      12316
Google can be your enemy
Large SGA Example
Show exacheck: http://sn.im/24ocb99
Hints Are Evil


      Hints that define specific access paths apply to your CURRENT platform



create or replace trigger disable_hints
after logon on database
declare
          x varchar2(200) := q'! alter session set "_optimizer_ignore_hints" = TRUE !';
          l_program varchar2(1000);
begin
          if sys_context('USERENV','SESSION_USER') = 'FOO' then

                   select upper(program) into l_program
                     from v$session
                    where sys_context('USERENV','SESSIONID') = AUDSID;

                   if l_program like 'JDBC THIN%' then
                             execute immediate x;
                   end if;
Average Active Sessions by Wait Class
                                                                (scale of 0-60 sessions of a possible 256)

                                                   60
Average Active Sessions (256 would be 100% busy)




                                                   50




                                                   40




                                                   30                                                        USER_IO
                                                                                                             OTHER
                                                                                                             DB_CPU
                                                                                                             CONCURRENCY
                                                   20
                                                                                                             CLUSTER
                                                                                                             APPLICATION


                                                   10




                                                   0




                                                               Snapshot Date / Time (PDT)
OS Average CPU % by Database Node
                       (0-100 % Scale)


100
 90
 80
 70
 60
 50
 40
  30
  20
  10
      0                                                Node 1
                                                       Node 2


                                              Node 1
Case     Object Tracking


Track (insert) 21,000 new objects per
second
2,200 tracking queries per second
2 years = 72 TB of data
X2-
Data coming in from flat files, new file
every few seconds
No need for indexes?
#CPU cores needed =
    CPU secs/tx x Transaction Rate / Max Utilization
Guess the fastest avg smartscan = 0.5 s
0.5 * 2200 / 0.65 = 1,692 cores !?!?
0.04 * 2200 / 0.65 = 135 cores
No time-based partitioning scheme
Query response requirements = global
indexes
1 index on 1 column took 4+ days and 24
TB of temp
(show SQL Monitor)
Insert Rate     Indexes = bad


Bulk inserts, no indexes = 1.1 million rows
per second
With 1 index on 1 column = 12,000 rows
per second
Case 1    DDL = Expensive


Create new external table for each new
file
Create & delete about 30 per minute
Most of the time spend in DDL
Solution:
DDL Solution


01 loop
02       exit when l_current_file is null;
03       l_location_string := l_location_string ||
             ''''||p_file_array(l_current_file)||''',';
04       l_current_file := p_file_array.next(l_current_file);
05 end loop;
06
07 l_location_string := rtrim(l_location_string,',');
08 log('Location ['||l_random_string||'] maps to
       ['||substr(l_location_string,1,900)||']');
09 q := 'ALTER TABLE '||g_ext_tab_name||' LOCATION ('||l_location_string||')' ;
10 log(substr(q,1,900));
11 execute immediate q;
Index Write IOPs
Inserting ~12,000 rows per second
Required 22,000+

OSWatcher iostat files indicated 27,000+
write IOPs uh oh
Metrics in dba_hist_sysmetric_summary

Achieved 44,000+
Show write-IOPs PDF
1G
            1G

      1.4                                                                                             1G



      1.2




                                                                                                                Service Time (ms)
      1.0                                                                                                  0G


      0.8



      0.6



      0.4


                                                                                                                                    type

                                                                                                                                     a
                                                                                                                                     G     Disk
                                            272,154   G
                                                                                                                                     a
                                                                                                                                     G     Flash
                                                                                        258,475   G
250,000




200,000




150,000




                                                                                                                Write IOPs
100,000




50,000



                                                                           13,104   G
                                                                                         10,686   G
  0




                 20:10   20:20   20:30                20:40        20:50                    21:00
                                         date_stamp
Dynamic Remastering


Show AWR Mining PDF
Average Active Sessions (AAS) for U




2000                                                                                                                                               1943.41
                                                                                                                                                                   G




                                                                                                                                                                                                                     Other
1500                                                                                                                                                                                                                 Cluster
                                                                                                                                                                                                                     Network
                                                                                                                                                                                                                     Administrative
                                                                                                                                                                                                                     Configuration
                                                                                                                                                                                                                     Commit
                                                                                                                                                                                                                     Application

1000                                                                                                                                                                                                                 Concurrency
                                                                                                                                                                                                                     System I/O
                                                                                                                                                                                                                     User I/O
                                                                                                                                                                                                                     Scheduler
                                                                                                                                                                                                                     CPU


 500
       CPU Cores
                                                                                                     392.19
                                                                                                                     G




                                                                                                                                         185
               140.84                                                            153.77                                                        G
                                                                                               G
                        G
                                       77.42       97.72                                                                                                                     88.65
                                                                   G                                                                                                                    G
                                               G
                                                                                                                                                                                            0.26
   0                                                                                                                                                                                               G




         Fri                Sa                      Su                      Mo                     Tu                    We                        Th                  Fri                         Sa
            ,F                t, F                    n,                      n,                      e,                    d                        u,                   ,M                           t, M
              eb                  eb                       Fe                      Fe                    Fe                  ,F                           Ma                  ar                           ar
                   24                  25                     b                       b                     b   28             eb                           r0                     02                           03
                                                                  26                      27                                        29                         1
Average Active Sessions by Wait Class − U
                                                                                                                      Only Values >= 95th Percentile
1200
1000




                                                                                                                                                                                                                                                                                                                                                                      Other
 800
 600
 400
 200                                                                                                                                                                                              132.6                                                                131.12
                                                                                                                                                     25.99                                                   G                                                                         G                                       17.74
   0                                                                                                                                                           G                                                                                                                                                                       G


1200
1000                                                                                                                                                                                                                                                                                 795.65




                                                                                                                                                                                                                                                                                                                                                                      Cluster
 800                                                                                                                                                                                                                                                                                              G
 600
 400
 200               34.89                                                                                                                         72.79
                                                                                                                                                               G                            37.91
                             G                                                                                                                                                                      G
   0
1200




                                                                                                                                                                                                                                                                                                                                                                      Configuration
1000
 800
 600
 400                                                                                                                                                                                       214.79
 200                                                                                                                                                                                                G
                                                                                                                                                                                                                 20.36
   0                                                                                                                                                                                                                     G


1200
1000




                                                                                                                                                                                                                                                                                                                                                                      Commit
 800
 600
 400
 200                               18.65                                                                                                             22.5                                   25.8
   0                                        G                                                                                                             G                                        G


1200                                                                                                                                                                                                                                                                             1096.84




                                                                                                                                                                                                                                                                                                                                                                      Concurrency
                                                                                                                                                                                                                                                                                                  G
1000
 800
 600
 400
 200         20.49                                                                                                                                                  92.7
                                                                                                                                                                         G
   0                     G


1200
1000




                                                                                                                                                                                                                                                                                                                                                                      User I/O
 800
 600
 400                                                                                                                                                                            250.64
 200               79.29                                         60.86                  77.33                                             51.57
                                                                                                                                                                                             G                                                   134.34                          76.81                                62.79
                             G                                                                      G                                                                                                                                                    G                                  G
                                                                       G                                                                             G                                                                                                                                                                          G
   0
1200
1000
 800




                                                                                                                                                                                                                                                                                                                                                                      CPU
 600
 400
 200                                                                                                                                          55.9                                          17.73                                    43.37                    41.23
                                                                                                                                                     G                                                                                      G                          G
   0                                                                                                                                                                                                    G
       780


             785
                   790


                             795


                                     800


                                                805


                                                           810


                                                                 815


                                                                       820


                                                                             825


                                                                                         830


                                                                                                    835


                                                                                                          840


                                                                                                                 845


                                                                                                                       850


                                                                                                                                    855


                                                                                                                                               860


                                                                                                                                                         865

                                                                                                                                                                   870


                                                                                                                                                                         875


                                                                                                                                                                                  880


                                                                                                                                                                                            885


                                                                                                                                                                                                       890


                                                                                                                                                                                                                 895


                                                                                                                                                                                                                        900


                                                                                                                                                                                                                                     905


                                                                                                                                                                                                                                           910

                                                                                                                                                                                                                                                  915

                                                                                                                                                                                                                                                        920


                                                                                                                                                                                                                                                                925


                                                                                                                                                                                                                                                                           930


                                                                                                                                                                                                                                                                                      935
                                                                                                                                                                                                                                                                                            940
                                                                                                                                                                                                                                                                                                  945

                                                                                                                                                                                                                                                                                                        950


                                                                                                                                                                                                                                                                                                              955


                                                                                                                                                                                                                                                                                                                         960


                                                                                                                                                                                                                                                                                                                                 965
                                                                                                                                                                                                                                                                                                                                       970

                                                                                                                                                                                                                                                                                                                                             975


                                                                                                                                                                                                                                                                                                                                                   980


                                                                                                                                                                                                                                                                                                                                                                985
                                           Sa                                 Su                                       Mo                                                Tu                                            We                                       Th                                            Fri                                   Sa
                                             t, F                                  n,                                        n,                                             e,                                            d                                       u,                                             ,M                                      t, M
                                                 eb                                     Fe                                        Fe                                           Fe                                             ,F                                       Ma                                           ar                                       ar
                                                      25                                   b                                         b                                            b   28                                        eb                                         r0                                            02                                       03
                                                                                               26                                        27                                                                                          29                                          1
a OS CPU Max
                                                                                                                                                                          a OS CPU Avg
                                                                                                                                                         variable
                                                                                                                                                                          G

                                                                                                                                                                                           G




                                                           1                                   2                                           3                                                               4                                        5                                    6
                                                                                                                                                                                                                                                                                                                            03




                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            98                                  98                                                  98                                                              98                                   98                               98
                                                                                                                                                                                                                                                                                                                         ar
                                                                                                                                                                                                                                                                                                                     t, M
                                                                                                                                                             G
                                                                                                                                                     2




                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                                                                                                                                                                                                                                                                   Sa




                                                                            98                                  98                                                  98                                                              98                                   98                               98
                                                                        G




                                                                                                                                                                                                                                G
                                                                    1




                                                                                                                                                                                                                        1




                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            97                                  97                                                  97                                                              97                                   97                               97
                                                                        G




                                                                                                                                                                                                                G

                                                                                                                                                                                                                         G
                                                                1 4




                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                                                                                                                                                          36
                                                                                                                                                                                                                    14




                                                                            97                                  97                                                  97                                                              97                                   97                               97
                                                                        G




                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            96                                  96                                                  96                                                              96                                   96                               96
                                                                                                                                            G


                                                                                                                                                     G
                                                                                                                                       42

                                                                                                                                                10




                                                                                                                                                                                                                                                                                                                          02
                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            96                                  96                                                  96                                                              96                                   96                               96




                                                                                                                                                                                                                                                                                                                       ar
                                                                                                                                                                                                                                                                                                                     ,M
                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            95                                  95                                                  95                                                              95                                   95                               95




                                                                                                                                                                                                                                                                                                                   Fri
                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            95                                  95                                                  95                                                              95                                   95                               95
                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            94                                  94                                                  94                                                              94                                   94                               94
                                                                                                                                                     G




                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            94                                  94                                                  94                                                              94                                   94                               94
                                                                                                                                                12




                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            93                                  93                                                  93                                                              93                                   93                               93




                                                                                                                                                                                                                                                                                                                            1
                                                                                                                                                                                                                                                                                                                          r0
                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            93                                  93                                                  93                                                              93                                   93                               93




                                                                                                                                                                                                                                                                                                                       Ma
                                              G




                                                                    G




                                                                                                                              G




                                                                                                                                                                                               G




                                                                                                                                                                                                                         G




                                                                                                                                                                                                                                                                                                                     u,
                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            92                                  92                                                  92                                                              92                                   92                               92




                                                                                                                                                                                                                                                                                                                   Th
                                      88




                                                               11




                                                                                                                         99




                                                                                                                                                                                                                    13
                                                                                                                                                                                         100




                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            92                                  92                                                  92                                                              92                                   92                               92
                                                                                                                                                                                                               G
CPU Avg and Max by Instance for U




                                                                                                                                                                                                          42




                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            91                                  91                                                  91                                                              91                                   91                               91
                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            91                                  91                                                  91                                                              91                                   91                               91
                                          G




                                                                    G




                                                                                                                              G




                                                                                                                                                     G




                                                                                                                                                                                               G
                                                                                                            G




                                                                                                                                                9
                                                               14




                                                                                                                         99
                                                                                                    7




                                                                                                                                                                                                                                                                                                                            29
                                    100




                                                                                                                                                                                         100




                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            90                                  90                                                  90                                                              90                                   90                               90




                                                                                                                                                                                                                                                                                                                        eb
                                                                                                                                                                                                                                                                                                                      ,F
                                                                                                                                                                                                                                                                     G
                                                                                                            G




                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            90                                  90                                                  90                                                              90                                   90                               90




                                                                                                                                                                                                                                                                                                                      d
                                                                                                                                                                                                                                                                 2
                                                                                                        1




                                                                                                                                                                                                                                                                                                                   We
                                                                                                                                                                                                                                                                                                      G
                                                                                                                                                                                                                                                                                                  1
                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            89                                  89                                                  89                                                              89                                   89                               89
                                                                                                                                                     G




                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            89                                  89                                                  89                                                              89                                   89                               89
                                                                                                     1G
                                                                                                            G




                                                                                                                                                                                                                   G

                                                                                                                                                                                                                            G




                                                                                                                                                                                                                                                                                                  G
                                                                                                                                                15
                                                                                                                                       G
                                                                                                   16




                                                                                                                                                                                                           35
                                                                                                                                                                                                                       10




                                                                                                                                                                                                                                                                                             16
                                                                                                                                                                                                                                                         G

                                                                                                                                                                                                                                                                     G
                                                       G




                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                                                                                  62




                                                                                                                                                                                                                                                                 3
                                                                            88                                  88                                                  88                                                              88                                   88                               88




                                                                                                                                                                                                                                                    31
                                                  58




                                                                                                                                                                                                                                                                                                                            28
                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            88                                  88                                                  88                                                              88                                   88                               88




                                                                                                                                                                                                                                                                                                                            b
                                                                                                                                                                                                                                                                                                                         Fe
                                                                                 5                                   5                                                5                                                               5                                    5                                   5




                                                                                                                                                                                                                                                                                                                      e,
                                                                            87                                  87                                                  87                                                              87                                   87                               87




                                                                                                                                                                                                                                                                                                                   Tu
                                                                    G




                                                                                                                                                                                                                                                                                                      G
                                                                                                                                                                                                                                                                                                  1
                                                               15




                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            87                                  87                                                  87                                                              87                                   87                               87
                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            86                                  86                                                  86                                                              86                                   86                               86
                                                                    G




                                                                                                                              G




                                                                                                                                                     G




                                                                                                                                                                                               G




                                                                                                                                                                                                                         G




                                                                                                                                                                                                                                                                                                  G
                                                               11




                                                                                                        G




                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            86                                  86                                                  86                                                              86                                   86                               86




                                                                                                                                                                                                                                                G




                                                                                                                                                                                                                                                                     G




                                                                                                                                                                                                                                                                                     G
                                                                                                                         95




                                                                                                                                                16




                                                                                                                                                                                                                    14




                                                                                                                                                                                                                                                                                             10
                                          G




                                                                                           G




                                                                                                                                                                                         100
                                                                                                   17




                                                                                                                                                                                                                                                                 3




                                                                                                                                                                                                                                                                                                                            27
                                                                                                                                                                                                                                          100




                                                                                                                                                                                                                                                                               100
                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                    100




                                                                                     100




                                                                            85                                  85                                                  85                                                              85                                   85                               85




                                                                                                                                                                                                                                                                                                                          b
                                                                                                                                                                                                                                                                                                                       Fe
                                                                                                                                                                                                                                                                                                                     n,
                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            85                                  85                                                  85                                                              85                                   85                               85




                                                                                                                                                                                                                                                                                                                   Mo
                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            84                                  84                                                  84                                                              84                                   84                               84
                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            84                                  84                                                  84                                                              84                                   84                               84
                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            83                                  83                                                  83                                                              83                                   83                               83




                                                                                                                                                                                                               15 G




                                                                                                                                                                                                                                                                                                                            26
                                                                                                                                                                                                                         G
                                                                        G




                                                                                                                                                                                                                26
                                                                                                            G




                                                                                                                                                                                                                                                                                                      G
                                                                                 0                                   0                                                0                                                               0                                    0                                   0




                                                                                                                                                                                                                                                                                                                          b
                                                                2




                                                                            83                                  83                                                  83                                                              83                                   83                               83




                                                                                                                                                                                                                                                                                                                       Fe
                                                                                                        2




                                                                                                                                                                                                                                                                                              2



                                                                                                                                                                                                                                                                                                                     n,
                                                                                                                                                            G
                                                                                 5                                   5                                                5                                                               5                                    5                                   5




                                                                                                                                                                                                                                                                                                                   Su
                                                                                                                                                    3
                                                                            82                                  82                                                  82                                                              82                                   82                               82
                                                                        G




                                                                                                                                                                                                                         GG




                                                                                                                                                                                                                                                                                                      G
                                                                    1




                                                                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                    11
                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            82                                  82                                                  82                                                              82                                   82                               82




                                                                                                                                                                                                                   15
                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            81                                  81                                                  81                                                              81                                   81                               81
                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            81                                  81                                                  81                                                              81                                   81                               81
                                                                        G




                                                                                                            G
                                                                                                            G




                                                                                                                                                                                                                                                          2G
                                                                                                                                                                                                                                                                     G




                                                                                                                                                                                                                                                                                                      G




                                                                                                                                                                                                                                                                                                                            25
                                                                3




                                                                                                    5
                                                                                                    1




                                                                                                                                                                                                                                                                                              3
                                                                                                                                                                                                                                                         14




                                                                                                                                                                                                                                                                                                                         eb
                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            80                                  80                                                  80                                                              80                                   80                               80




                                                                                                                                                                                                                                                                                                                     t, F
                                                                                                                                                            G




                                                                                                                                                                                                                                                                                                                   Sa
                                                                                                                                                           G
                                                                                 0                                   0                                                0                                                               0                                    0                                   0




                                                                                                                                                     6
                                                                            80                                  80                                                  80                                                              80                                   80                               80




                                                                                                                                                                                                                                G
                                                                                                                                                    3




                                                                                                                                                                                                                                                                                                      G
                                                                        G




                                                                                                                                                                                                                        3




                                                                                                                                                                                                                                                                                              7
                                                                6



                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            79                                  79                                                  79                                                              79                                   79                               79




                                                                                                            G




                                                                                                                                                                                                                                                                                                      G
                                                                        G




                                                                                                                                                           G




                                                                                                                                                                                                                        G




                                                                                                                                                                                                                                                             G

                                                                                                                                                                                                                                                                     G
                                                                                                        G
                                                                                                        3




                                                                                                                                                                                                                                                                                              2
                                                                2




                                                                                                                                                    6




                                                                                                                                                                                                                                                                 3
                                                                                                                                                                                                                   17




                                                                                                                                                                                                                                                        26
                                                                                 0                                   0                                                0                                                               0                                    0                                   0




                                                                                                   13
                                                                            79                                  79                                                  79                                                              79                                   79                               79




                                                                                                                                                G
                                                                                 5                                   5                                                5                                                               5                                    5                                   5
                                                                            78                                  78                                                  78                                                              78                                   78                               78




                                                                                                                                           28




                                                                                                                                                                                                                                                                                                                          24
                                                                                 0                                   0                                                0                                                               0                                    0                                   0
                                                                            78                                  78                                                  78                                                              78                                   78                               78




                                                                                                                                                                                                                                                                                                                       eb
                                                                                                                                                                                                                                                                                                                     ,F
                                                                                                                                                                                                                                                                                                                   Fri
                                      100
                                       80
                                       60
                                       40
                                       20
                                        0


                                                                                       100
                                                                                        80
                                                                                        60
                                                                                        40
                                                                                        20
                                                                                         0


                                                                                                                          100
                                                                                                                           80
                                                                                                                           60
                                                                                                                           40
                                                                                                                           20
                                                                                                                            0


                                                                                                                                                                                            100
                                                                                                                                                                                             80
                                                                                                                                                                                             60
                                                                                                                                                                                             40
                                                                                                                                                                                             20
                                                                                                                                                                                              0


                                                                                                                                                                                                                                            100
                                                                                                                                                                                                                                             80
                                                                                                                                                                                                                                             60
                                                                                                                                                                                                                                             40
                                                                                                                                                                                                                                             20
                                                                                                                                                                                                                                              0


                                                                                                                                                                                                                                                                                 100
                                                                                                                                                                                                                                                                                  80
                                                                                                                                                                                                                                                                                  60
                                                                                                                                                                                                                                                                                  40
                                                                                                                                                                                                                                                                                  20
                                                                                                                                                                                                                                                                                   0
                                                                                                                                                CPU Percent
IO Avg and Max by IO Type for U
                     173,631 G

150,000

                                                                                                                                                                                                      119,131 G




                                                                                                                                                                                                                                                                                                                                             Read IOPs
100,000                                                                                                                                      93,419 G

                                                                                                                                                   69,417 G

 50,000
                                                                                                                                                                                                                                                                                           40,069 G
                         24,320 G          19,520 G                                                                                                                                                                                    18,010 G
                                                                                                                                       12,316 G                                 9,638 G                                                                                                         11,934 G
                                    4,626 G                                     4,545 G                                                                                                                     5,444 G                        7,052 G
     0                                                                            116 G                                                                                                                                                                                                                             397 G
                78


                          78

                               79


                                    79


                                          80


                                                  80


                                                              81


                                                                    81


                                                                          82


                                                                                 82


                                                                                            83


                                                                                                       83


                                                                                                             84


                                                                                                                   84


                                                                                                                         85


                                                                                                                                  85


                                                                                                                                            86


                                                                                                                                                   86

                                                                                                                                                         87


                                                                                                                                                                87


                                                                                                                                                                       88


                                                                                                                                                                                  88


                                                                                                                                                                                        89


                                                                                                                                                                                              89


                                                                                                                                                                                                      90


                                                                                                                                                                                                             90


                                                                                                                                                                                                                    91

                                                                                                                                                                                                                          91


                                                                                                                                                                                                                                92


                                                                                                                                                                                                                                      92


                                                                                                                                                                                                                                              93


                                                                                                                                                                                                                                                          93
                                                                                                                                                                                                                                                               94

                                                                                                                                                                                                                                                                    94

                                                                                                                                                                                                                                                                          95


                                                                                                                                                                                                                                                                                 95


                                                                                                                                                                                                                                                                                               96


                                                                                                                                                                                                                                                                                                      96

                                                                                                                                                                                                                                                                                                            97


                                                                                                                                                                                                                                                                                                                   97


                                                                                                                                                                                                                                                                                                                          98


                                                                                                                                                                                                                                                                                                                                  98
                    0


                           5

                                0


                                     5


                                           0


                                                   5


                                                               0


                                                                     5


                                                                           0


                                                                                  5


                                                                                             0


                                                                                                        5


                                                                                                              0


                                                                                                                    5


                                                                                                                          0


                                                                                                                                   5


                                                                                                                                             0


                                                                                                                                                    5

                                                                                                                                                          0


                                                                                                                                                                  5


                                                                                                                                                                            0


                                                                                                                                                                                   5


                                                                                                                                                                                          0


                                                                                                                                                                                               5


                                                                                                                                                                                                       0


                                                                                                                                                                                                               5


                                                                                                                                                                                                                     0

                                                                                                                                                                                                                           5


                                                                                                                                                                                                                                 0


                                                                                                                                                                                                                                       5


                                                                                                                                                                                                                                                  0


                                                                                                                                                                                                                                                           5
                                                                                                                                                                                                                                                                0

                                                                                                                                                                                                                                                                     5

                                                                                                                                                                                                                                                                           0


                                                                                                                                                                                                                                                                                      5


                                                                                                                                                                                                                                                                                                0


                                                                                                                                                                                                                                                                                                       5

                                                                                                                                                                                                                                                                                                             0


                                                                                                                                                                                                                                                                                                                    5


                                                                                                                                                                                                                                                                                                                           0


                                                                                                                                                                                                                                                                                                                                      5
 30,000                  30,244 G
                                                                                                                                                                                                            28,104 G
                                                                                                                                   26,743 G
 25,000
 20,000




                                                                                                                                                                                                                                                                                                                                             Read MB/s
                                               17,358 G
 15,000                                                                                                                                                                                                                                13,453 G

 10,000                                                                                                                                                               10,272 G


  5,000                   4,932 G                                                                                                                                                                                                                                                         5,306 G

                                                                                                                                                                                                             1,457 G
     0                                             799 G                               70G
                                                                                        2
                                                                                                                                        1,048 G                                 510 G                                                        651 G                                              488 G                     9G                              stat
                78


                          78

                               79


                                    79


                                          80


                                                  80


                                                              81


                                                                    81


                                                                          82


                                                                                 82


                                                                                            83


                                                                                                       83


                                                                                                             84


                                                                                                                   84


                                                                                                                         85


                                                                                                                                  85


                                                                                                                                            86


                                                                                                                                                   86

                                                                                                                                                         87


                                                                                                                                                                87


                                                                                                                                                                       88


                                                                                                                                                                                  88


                                                                                                                                                                                        89


                                                                                                                                                                                              89


                                                                                                                                                                                                      90


                                                                                                                                                                                                             90


                                                                                                                                                                                                                    91

                                                                                                                                                                                                                          91


                                                                                                                                                                                                                                92


                                                                                                                                                                                                                                      92


                                                                                                                                                                                                                                              93


                                                                                                                                                                                                                                                          93
                                                                                                                                                                                                                                                               94

                                                                                                                                                                                                                                                                    94

                                                                                                                                                                                                                                                                          95


                                                                                                                                                                                                                                                                                 95


                                                                                                                                                                                                                                                                                               96


                                                                                                                                                                                                                                                                                                      96

                                                                                                                                                                                                                                                                                                            97


                                                                                                                                                                                                                                                                                                                   97


                                                                                                                                                                                                                                                                                                                          98


                                                                                                                                                                                                                                                                                                                                  98
                    0


                           5

                                0


                                     5


                                           0


                                                   5


                                                               0


                                                                     5


                                                                           0


                                                                                  5


                                                                                             0


                                                                                                        5


                                                                                                              0


                                                                                                                    5


                                                                                                                          0


                                                                                                                                   5


                                                                                                                                             0


                                                                                                                                                    5

                                                                                                                                                          0


                                                                                                                                                                  5


                                                                                                                                                                            0


                                                                                                                                                                                   5


                                                                                                                                                                                          0


                                                                                                                                                                                               5


                                                                                                                                                                                                       0


                                                                                                                                                                                                               5


                                                                                                                                                                                                                     0

                                                                                                                                                                                                                           5


                                                                                                                                                                                                                                 0


                                                                                                                                                                                                                                       5


                                                                                                                                                                                                                                                  0


                                                                                                                                                                                                                                                           5
                                                                                                                                                                                                                                                                0

                                                                                                                                                                                                                                                                     5

                                                                                                                                                                                                                                                                           0


                                                                                                                                                                                                                                                                                      5


                                                                                                                                                                                                                                                                                                0


                                                                                                                                                                                                                                                                                                       5

                                                                                                                                                                                                                                                                                                             0


                                                                                                                                                                                                                                                                                                                    5


                                                                                                                                                                                                                                                                                                                           0


                                                                                                                                                                                                                                                                                                                                      5
                                                                                                                                                                                                                                                                                                                                                           a
                                                                                                                                                                                                                                                                                                                                                           G     Avg
150,000                                                                                                                                                                                                                                                                                         152,961 G
                                                                                                                                                                                                                                                                                                                                                           a
                                                                                                                                                                                                                                                                                                                                                           G     Max




                                                                                                                                                                                                                                                                                                                                             Write IOPs
100,000

                                                                                                                                                                            68,470 G
                                                                                                                                                                                                                                                                                                     59,267 G
 50,000                                                                                                                                          46,756 G
                         41,199 G 40,340 G                                                                                                                                                                                            42,254 G
                                                                                                                                                                                                         37,348 G
                                                                                                                                       32,274 G                      28,900 G                       30,827 G
                                     27,653 G
                                                                                                                                                                                                                                             19,494 G
                               9,854 G
                                                                                                                                                                                                                                                                                                                  3,027 G
     0                                                                                 1,413G
                                                                                        206 G                                                                                                                                                                                                                       632 G
                78


                          78

                          79


                                    79


                                          80


                                                  80


                                                              81


                                                                    81


                                                                          82


                                                                                 82


                                                                                            83


                                                                                                       83


                                                                                                             84


                                                                                                                   84


                                                                                                                         85


                                                                                                                                  85


                                                                                                                                            86


                                                                                                                                                   86

                                                                                                                                                         87


                                                                                                                                                                87


                                                                                                                                                                       88


                                                                                                                                                                                  88


                                                                                                                                                                                        89


                                                                                                                                                                                              89


                                                                                                                                                                                                      90


                                                                                                                                                                                                             90


                                                                                                                                                                                                                    91

                                                                                                                                                                                                                          91


                                                                                                                                                                                                                                92


                                                                                                                                                                                                                                      92


                                                                                                                                                                                                                                              93


                                                                                                                                                                                                                                                          93
                                                                                                                                                                                                                                                          94

                                                                                                                                                                                                                                                                    94

                                                                                                                                                                                                                                                                          95


                                                                                                                                                                                                                                                                                 95


                                                                                                                                                                                                                                                                                               96


                                                                                                                                                                                                                                                                                                      96

                                                                                                                                                                                                                                                                                                            97


                                                                                                                                                                                                                                                                                                                   97


                                                                                                                                                                                                                                                                                                                          98


                                                                                                                                                                                                                                                                                                                                  98
                  0


                            5

                            0


                                      5


                                            0


                                                    5


                                                                0


                                                                      5


                                                                            0


                                                                                   5


                                                                                              0


                                                                                                         5


                                                                                                               0


                                                                                                                     5


                                                                                                                           0


                                                                                                                                    5


                                                                                                                                              0


                                                                                                                                                     5

                                                                                                                                                           0


                                                                                                                                                                  5


                                                                                                                                                                         0


                                                                                                                                                                                    5


                                                                                                                                                                                          0


                                                                                                                                                                                                5


                                                                                                                                                                                                        0


                                                                                                                                                                                                               5


                                                                                                                                                                                                                      0

                                                                                                                                                                                                                            5


                                                                                                                                                                                                                                  0


                                                                                                                                                                                                                                        5


                                                                                                                                                                                                                                                0


                                                                                                                                                                                                                                                            5
                                                                                                                                                                                                                                                            0

                                                                                                                                                                                                                                                                      5

                                                                                                                                                                                                                                                                            0


                                                                                                                                                                                                                                                                                   5


                                                                                                                                                                                                                                                                                                 0


                                                                                                                                                                                                                                                                                                        5

                                                                                                                                                                                                                                                                                                              0


                                                                                                                                                                                                                                                                                                                     5


                                                                                                                                                                                                                                                                                                                            0


                                                                                                                                                                                                                                                                                                                                    5
                                                               4,131 G
  4,000
                                                                                                                                                                                                                    3,609 G

  3,000




                                                                                                                                                                                                                                                                                                                                             Write MB/s
                                                                                2,606 G                                                                                                                                                    2,608 G
                         2,402 G                                                                                                 2,479 G

  2,000                                                                                                                                                                                                                                                                                   1,905 G
                                                                                                                                                                                 1,738 G


  1,000
                                                                                                                                                                                   466 G                                                     464 G                                                         551 G
                           370 G                                                                                                       388 G                                                               284 G
                                          250 G
                                                                                  105 G
     0                                                                                                                                                                                                                                                                                                                   35G
                                                                                                                                                                                                                                                                                                                          7
                78


                          78

                               79


                                    79


                                          80


                                                  80


                                                              81


                                                                    81


                                                                          82


                                                                                 82


                                                                                            83


                                                                                                       83


                                                                                                             84


                                                                                                                   84


                                                                                                                         85


                                                                                                                                  85


                                                                                                                                            86


                                                                                                                                                   86

                                                                                                                                                         87


                                                                                                                                                                87


                                                                                                                                                                       88


                                                                                                                                                                                  88


                                                                                                                                                                                        89


                                                                                                                                                                                              89


                                                                                                                                                                                                      90


                                                                                                                                                                                                             90


                                                                                                                                                                                                                    91

                                                                                                                                                                                                                          91


                                                                                                                                                                                                                                92


                                                                                                                                                                                                                                      92


                                                                                                                                                                                                                                              93


                                                                                                                                                                                                                                                          93
                                                                                                                                                                                                                                                               94

                                                                                                                                                                                                                                                                    94

                                                                                                                                                                                                                                                                          95


                                                                                                                                                                                                                                                                                 95


                                                                                                                                                                                                                                                                                               96


                                                                                                                                                                                                                                                                                                      96

                                                                                                                                                                                                                                                                                                            97


                                                                                                                                                                                                                                                                                                                   97


                                                                                                                                                                                                                                                                                                                          98


                                                                                                                                                                                                                                                                                                                                  98
                    0


                           5

                                0


                                     5


                                           0


                                                   5


                                                               0


                                                                     5


                                                                           0


                                                                                  5


                                                                                             0


                                                                                                        5


                                                                                                              0


                                                                                                                    5


                                                                                                                          0


                                                                                                                                   5


                                                                                                                                             0


                                                                                                                                                    5

                                                                                                                                                          0


                                                                                                                                                                  5


                                                                                                                                                                            0


                                                                                                                                                                                   5


                                                                                                                                                                                          0


                                                                                                                                                                                               5


                                                                                                                                                                                                       0


                                                                                                                                                                                                               5


                                                                                                                                                                                                                     0

                                                                                                                                                                                                                           5


                                                                                                                                                                                                                                 0


                                                                                                                                                                                                                                       5


                                                                                                                                                                                                                                                  0


                                                                                                                                                                                                                                                           5
                                                                                                                                                                                                                                                                0

                                                                                                                                                                                                                                                                     5

                                                                                                                                                                                                                                                                           0


                                                                                                                                                                                                                                                                                      5


                                                                                                                                                                                                                                                                                                0


                                                                                                                                                                                                                                                                                                       5

                                                                                                                                                                                                                                                                                                             0


                                                                                                                                                                                                                                                                                                                    5


                                                                                                                                                                                                                                                                                                                           0


                                                                                                                                                                                                                                                                                                                                      5
          Fri                              Sa                                    Su                                      Mo                                    Tu                                   We                                Th                                        Fri                                       Sa
             ,F                                 t, F                                  n,                                   n,                                     e,                                   d                                u,                                         ,M                                          t, M
               eb                                   eb                                     Fe                                   Fe                                   Fe                                 ,F                                   Ma                                           ar                                       ar
                    24                                   25                                   b                                    b                                    b   28                            eb                                   r0                                              02                                       03
                                                                                                  26                                   27                                                                      29                                     1
Main Activity Variables for U
3,000
2,500




                                                                                                                                                                                                                                                                                                                                     AAS
2,000
1,500
1,000
  500
    0
3,000




                                                                                                                                                                                                                                                                                                                                     AAS Max
2,000
1,000
   0
   4




                                                                                                                                                                                                                                                                                                                                     Commits/s
   3
   2
    1
    0
8,000




                                                                                                                                                                                                                                                                                                                                     Execs/s
6,000
4,000
2,000
    0
   12




                                                                                                                                                                                                                                                                                                                                     Hard Parses/s Logons Total
   10
    8
    6
    4
    2
    0
3,000
2,000
1,000
   0

 500




                                                                                                                                                                                                                                                                                                                                     Logons/s
 400
 300
 200
 100
   0




                                                                                                                                                                                                                                                                                                                                     SQL Resp (cs)
3,000
2,000
1,000
   0
        Fri                                Sa                                                                                                                    Tu                                                                       Th                                  Fri                                Sa
              780

                       785
                             790

                                   795

                                         800

                                                 805

                                                             810

                                                                   815

                                                                         820

                                                                               825




                                                                                Su
                                                                                           830

                                                                                                      835

                                                                                                            840

                                                                                                                  845

                                                                                                                        850

                                                                                                                                     855

                                                                                                                                               860

                                                                                                                                                     865

                                                                                                                                                           870

                                                                                                                                                                 875

                                                                                                                                                                          880

                                                                                                                                                                                   885

                                                                                                                                                                                         890

                                                                                                                                                                                               895

                                                                                                                                                                                                      900

                                                                                                                                                                                                               905

                                                                                                                                                                                                                        910
                                                                                                                                                                                                                              915

                                                                                                                                                                                                                                    920

                                                                                                                                                                                                                                          925

                                                                                                                                                                                                                                                  930

                                                                                                                                                                                                                                                            935
                                                                                                                                                                                                                                                            940
                                                                                                                                                                                                                                                                  945

                                                                                                                                                                                                                                                                        950

                                                                                                                                                                                                                                                                              955

                                                                                                                                                                                                                                                                                         960

                                                                                                                                                                                                                                                                                               965
                                                                                                                                                                                                                                                                                                     970

                                                                                                                                                                                                                                                                                                           975

                                                                                                                                                                                                                                                                                                                 980

                                                                                                                                                                                                                                                                                                                          985
                                                                                                                        Mo                                                                           We
           ,F                                  t, F                                  n,                                       n,                                    e,                                  d                                   u,                                   ,M                                    t, M
             eb                                    eb                                     Fe                                       Fe                                  Fe                                   ,F                                   Ma                                 ar                                     ar
                  24                                    25                                   b                                        b                                   b   28                              eb                                   r0                                    02                                     03
                                                                                                 26                                       27                                                                       29                                   1
Data Types Matter

          RAW          Varchar2
Table     8.6 GB       14.1 GB
Index     20.1 GB      29.6 GB
Compression


         Your data will compress at least

         Example of highly synthetic data:
2012-03-02 22.21.27   1330726911   101692495337.00   9d5e39e286dc18df0ec0c006f5065872   0 10 DBCS   36912

2012-03-02 22.21.28   1330726911   101816821802.00   5cf9a8fd3645e670f0a0bc1eeaa74a64   0 10 APPS   62988

Bottlenecks, Bottlenecks, and more Bottlenecks: Lessons Learned from 2 Years of Exadata Benchmarks

  • 1.
    Oracle Exadata Bottlenecks, Bottlenecks,and more Bottlenecks: Lessons Learned from 2 Years of Exadata Benchmarks Tyler D Muth Chief Database Engineer Oracle Public Sector tylermuth.wordpress.com
  • 3.
    I only usedthe most challenging POVs as examples. Some, I talked a lot about the challenges. In each my examples the ultimate result was very successful.
  • 4.
    Tangent 1 (is it a tangent if you schedule it?) Mixed Workload (show (next slide)) ½ rack ~15,000 transactions per second from swingbench Mix of read & write OLTP what this machine can do in isolation) of physical I/O every few seconds DW queries have little or no impact on TPS metric
  • 6.
    Reality Check Physics governthe performance of computing systems Marketing cannot change the laws of physics Very few people in the world understand the components end-to-end
  • 7.
    Hard Drive Capacityvs Throughput 120,000 120000 100000 90,000 80,000 Factor of Change 80000 60000 Capacity Factor of Change Throughput Factor of Change 40000 20000 1 1 33 41 72 0 ST506 (1979) Cheetah 15k.6 (2008) Cheetah 15k.7 (2011) Pulsar XT.2 SSD (2011) Seagate Hard Drive Model (Year) ST506 Cheetah 15k.6 Cheetah 15k.7 Pulsar XT.2 SSD (1979) (2008) (2011) (2011) Capacity (GB) 0.005 450 600 400 Throughput (MB/s) 5 164 204 360
  • 8.
    List of DeviceBit Rates wikipedia - http://sn.im/24mqy8q Device Bandwidth Move 1 TB Ethernet 10 | 100 Mbit 1.25 | 12.5 MB/s 9+ days | 18 hours Ethernet 1 | 10 Gbit 125 MB/s | 1.25 GB/s 2.3 hours | 13.7 min Infiniband QDR 4× 4 GB/s 4.3 min PCI Express 2.0 4 GB/s 4.3 min USB Hi-Speed (USB 2.0) 60 MB/s 7.2 hours Fibre Channel 2 | 4 | 8 GFC 212.5 | 425 | 850 MB/s 82 min | 41 min | 20.5 min 7200 RPM Drive 155 MB/s 112 min 15k RPM Drive 204 MB/s 85 min Enterprise SSD 360 MB/s 48 min
  • 9.
    Throughput GB/s 80.0 75 70.0 60.0 2 Gbps Fibre Channel x2 50.0 4 Gbps Fibre Channel x2 40.0 8 Gbps Fibre Channel x2 30.0 37 Exadata 1/4 - Disk 25 20.0 Exadata 1/2 - Disk 10.0 12.5 16 Exadata Full - Disk 0.4 0.8 5.4 Exadata 1/4 - Disk & Flash 1.6 0.0 Exadata 1/2 - Disk & Flash Exadata Full - Disk & Flash
  • 10.
    Basic Capacity Planning BasicCapacity Planning A transaction takes 10 CPU Milli Seconds of CPU and performs 5 random Disk I/Os The requirement is to support 1,000 Transactions/Sec This means #CPU cores needed = CPU secs/tx x Transaction Rate / Max Utilization 0.01 x 1000 / 0.65 = 15.38 round up to 16 #Disk Spindles Needed = IOPS/tx x Transaction rate / IOP per disk 5 X 1000 / 35 = 142 Disks
  • 11.
    Insert Performance 500k Rows Indexes Indexes Enabled Disabled Individual Inserts 52.1 seconds 37.9 seconds Bulk Inserts 4.2 seconds 2.4 seconds
  • 14.
    Monitoring Tools Macro AWR Single-node / Global / Compare Period / Single SQL Statement (Color SQL) Mining with R Look at my blog shortly, also karlarao.wordpress.com AWR Formatter (show) EM Avg Act Sessions OSWatcher CPU Monitor Dominic Giles DB Time Viewer EM 12c Micro ASH SQLT MOS Note: 215187.1 (show): http://sn.im/24ocbsn - Main http://sn.im/24occct - Compare Snapper Tanel Poder - http://sn.im/tanel-snapper
  • 15.
    PL/SQL Hierarchical Profiler NAME FUNCTION SUBTREE_ELAPSED_TIME FUNCTION_ELAPSED_TIME CALLS ---------------------------------- ------------------------- -------------------- --------------------- ---------- MDSYS.SDO_GEOM SDO_UNION 339697300 19 1 MDSYS.SDO_GEOM GET_DIM_ARRAY 187 187 2 MDSYS.SDO_GEOM SDO_UNION 339697094 526 1 MDSYS.SDO_3GL GEOM_OPERATION 339696568 71518056 1 . __plsql_vm@1 435 10 3 MDSYS.SDO_CS DISAMBIGUATE_PROJ_NAME 640 241 2 MDSYS.SDO_CS __static_sql_exec_line472 399 399 2 MDSYS.SDO_3GL VALIDATE_GEOM 268178077 268177852 1 . __plsql_vm@1 225 10 1 MDSYS.SDO_CS DISAMBIGUATE_PROJ_NAME 640 241 2 MDSYS.SDO_CS __static_sql_exec_line472 399 399 2 MDSYS.SDO_GEOM __pkg_init 10 10 1 MDSYS.SDO_UTIL APPEND 208234 208234 2 MDSYS.SDO_UTIL INTERNAL_MERGE_LINESTRING 317104843 78041429 1 MDSYS.SDO_UTIL CONCAT_LINES 238540586 86537313 12314 MDSYS.SDO_UTIL INTERNAL_ORDINATE_COPY 151276858 151276858 80904 MDSYS.SDO_UTIL INTERNAL_REVERSE_LINE_POI 611137 611137 230 MDSYS.SDO_UTIL REVERSE_LINESTRING 115278 67102 3760 MDSYS.SDO_UTIL INTERNAL_REVERSE_LINE_POI 48176 48176 3760 MDSYS.SDO_UTIL TRUNCATE_NUMBER 522828 522828 198680 MDSYS.SDO_UTIL __pkg_init 11 11 1 SYS.DBMS_ASSERT QUALIFIED_SQL_NAME 195 195 1 SYS.DBMS_ASSERT SIMPLE_SQL_NAME 95 95 1 MDSYS.SDO_TOPO_GEOMETRY __dyn_sql_exec_line1048 6718375 6718375 1 MDSYS.SDO_TOPO_GEOMETRY __dyn_sql_exec_line978 3986 3986 1 MDSYS.SDO_TOPO_GEOMETRY __sql_fetch_line1054 2482917 2482917 12316
  • 16.
    Google can beyour enemy Large SGA Example Show exacheck: http://sn.im/24ocb99
  • 17.
    Hints Are Evil Hints that define specific access paths apply to your CURRENT platform create or replace trigger disable_hints after logon on database declare x varchar2(200) := q'! alter session set "_optimizer_ignore_hints" = TRUE !'; l_program varchar2(1000); begin if sys_context('USERENV','SESSION_USER') = 'FOO' then select upper(program) into l_program from v$session where sys_context('USERENV','SESSIONID') = AUDSID; if l_program like 'JDBC THIN%' then execute immediate x; end if;
  • 18.
    Average Active Sessionsby Wait Class (scale of 0-60 sessions of a possible 256) 60 Average Active Sessions (256 would be 100% busy) 50 40 30 USER_IO OTHER DB_CPU CONCURRENCY 20 CLUSTER APPLICATION 10 0 Snapshot Date / Time (PDT)
  • 19.
    OS Average CPU% by Database Node (0-100 % Scale) 100 90 80 70 60 50 40 30 20 10 0 Node 1 Node 2 Node 1
  • 20.
    Case Object Tracking Track (insert) 21,000 new objects per second 2,200 tracking queries per second 2 years = 72 TB of data X2- Data coming in from flat files, new file every few seconds
  • 21.
    No need forindexes? #CPU cores needed = CPU secs/tx x Transaction Rate / Max Utilization Guess the fastest avg smartscan = 0.5 s 0.5 * 2200 / 0.65 = 1,692 cores !?!? 0.04 * 2200 / 0.65 = 135 cores
  • 22.
    No time-based partitioningscheme Query response requirements = global indexes 1 index on 1 column took 4+ days and 24 TB of temp (show SQL Monitor)
  • 23.
    Insert Rate Indexes = bad Bulk inserts, no indexes = 1.1 million rows per second With 1 index on 1 column = 12,000 rows per second
  • 24.
    Case 1 DDL = Expensive Create new external table for each new file Create & delete about 30 per minute Most of the time spend in DDL Solution:
  • 25.
    DDL Solution 01 loop 02 exit when l_current_file is null; 03 l_location_string := l_location_string || ''''||p_file_array(l_current_file)||''','; 04 l_current_file := p_file_array.next(l_current_file); 05 end loop; 06 07 l_location_string := rtrim(l_location_string,','); 08 log('Location ['||l_random_string||'] maps to ['||substr(l_location_string,1,900)||']'); 09 q := 'ALTER TABLE '||g_ext_tab_name||' LOCATION ('||l_location_string||')' ; 10 log(substr(q,1,900)); 11 execute immediate q;
  • 26.
    Index Write IOPs Inserting~12,000 rows per second Required 22,000+ OSWatcher iostat files indicated 27,000+ write IOPs uh oh Metrics in dba_hist_sysmetric_summary Achieved 44,000+ Show write-IOPs PDF
  • 27.
    1G 1G 1.4 1G 1.2 Service Time (ms) 1.0 0G 0.8 0.6 0.4 type a G Disk 272,154 G a G Flash 258,475 G 250,000 200,000 150,000 Write IOPs 100,000 50,000 13,104 G 10,686 G 0 20:10 20:20 20:30 20:40 20:50 21:00 date_stamp
  • 28.
  • 29.
    Average Active Sessions(AAS) for U 2000 1943.41 G Other 1500 Cluster Network Administrative Configuration Commit Application 1000 Concurrency System I/O User I/O Scheduler CPU 500 CPU Cores 392.19 G 185 140.84 153.77 G G G 77.42 97.72 88.65 G G G 0.26 0 G Fri Sa Su Mo Tu We Th Fri Sa ,F t, F n, n, e, d u, ,M t, M eb eb Fe Fe Fe ,F Ma ar ar 24 25 b b b 28 eb r0 02 03 26 27 29 1
  • 30.
    Average Active Sessionsby Wait Class − U Only Values >= 95th Percentile 1200 1000 Other 800 600 400 200 132.6 131.12 25.99 G G 17.74 0 G G 1200 1000 795.65 Cluster 800 G 600 400 200 34.89 72.79 G 37.91 G G 0 1200 Configuration 1000 800 600 400 214.79 200 G 20.36 0 G 1200 1000 Commit 800 600 400 200 18.65 22.5 25.8 0 G G G 1200 1096.84 Concurrency G 1000 800 600 400 200 20.49 92.7 G 0 G 1200 1000 User I/O 800 600 400 250.64 200 79.29 60.86 77.33 51.57 G 134.34 76.81 62.79 G G G G G G G 0 1200 1000 800 CPU 600 400 200 55.9 17.73 43.37 41.23 G G G 0 G 780 785 790 795 800 805 810 815 820 825 830 835 840 845 850 855 860 865 870 875 880 885 890 895 900 905 910 915 920 925 930 935 940 945 950 955 960 965 970 975 980 985 Sa Su Mo Tu We Th Fri Sa t, F n, n, e, d u, ,M t, M eb Fe Fe Fe ,F Ma ar ar 25 b b b 28 eb r0 02 03 26 27 29 1
  • 31.
    a OS CPUMax a OS CPU Avg variable G G 1 2 3 4 5 6 03 5 5 5 5 5 5 98 98 98 98 98 98 ar t, M G 2 0 0 0 0 0 0 Sa 98 98 98 98 98 98 G G 1 1 5 5 5 5 5 5 97 97 97 97 97 97 G G G 1 4 0 0 0 0 0 0 36 14 97 97 97 97 97 97 G 5 5 5 5 5 5 96 96 96 96 96 96 G G 42 10 02 0 0 0 0 0 0 96 96 96 96 96 96 ar ,M 5 5 5 5 5 5 95 95 95 95 95 95 Fri 0 0 0 0 0 0 95 95 95 95 95 95 5 5 5 5 5 5 94 94 94 94 94 94 G 0 0 0 0 0 0 94 94 94 94 94 94 12 5 5 5 5 5 5 93 93 93 93 93 93 1 r0 0 0 0 0 0 0 93 93 93 93 93 93 Ma G G G G G u, 5 5 5 5 5 5 92 92 92 92 92 92 Th 88 11 99 13 100 0 0 0 0 0 0 92 92 92 92 92 92 G CPU Avg and Max by Instance for U 42 5 5 5 5 5 5 91 91 91 91 91 91 0 0 0 0 0 0 91 91 91 91 91 91 G G G G G G 9 14 99 7 29 100 100 5 5 5 5 5 5 90 90 90 90 90 90 eb ,F G G 0 0 0 0 0 0 90 90 90 90 90 90 d 2 1 We G 1 5 5 5 5 5 5 89 89 89 89 89 89 G 0 0 0 0 0 0 89 89 89 89 89 89 1G G G G G 15 G 16 35 10 16 G G G 5 5 5 5 5 5 62 3 88 88 88 88 88 88 31 58 28 0 0 0 0 0 0 88 88 88 88 88 88 b Fe 5 5 5 5 5 5 e, 87 87 87 87 87 87 Tu G G 1 15 0 0 0 0 0 0 87 87 87 87 87 87 5 5 5 5 5 5 86 86 86 86 86 86 G G G G G G 11 G 0 0 0 0 0 0 86 86 86 86 86 86 G G G 95 16 14 10 G G 100 17 3 27 100 100 5 5 5 5 5 5 100 100 85 85 85 85 85 85 b Fe n, 0 0 0 0 0 0 85 85 85 85 85 85 Mo 5 5 5 5 5 5 84 84 84 84 84 84 0 0 0 0 0 0 84 84 84 84 84 84 5 5 5 5 5 5 83 83 83 83 83 83 15 G 26 G G 26 G G 0 0 0 0 0 0 b 2 83 83 83 83 83 83 Fe 2 2 n, G 5 5 5 5 5 5 Su 3 82 82 82 82 82 82 G GG G 1 1 11 0 0 0 0 0 0 82 82 82 82 82 82 15 5 5 5 5 5 5 81 81 81 81 81 81 0 0 0 0 0 0 81 81 81 81 81 81 G G G 2G G G 25 3 5 1 3 14 eb 5 5 5 5 5 5 80 80 80 80 80 80 t, F G Sa G 0 0 0 0 0 0 6 80 80 80 80 80 80 G 3 G G 3 7 6 5 5 5 5 5 5 79 79 79 79 79 79 G G G G G G G G 3 2 2 6 3 17 26 0 0 0 0 0 0 13 79 79 79 79 79 79 G 5 5 5 5 5 5 78 78 78 78 78 78 28 24 0 0 0 0 0 0 78 78 78 78 78 78 eb ,F Fri 100 80 60 40 20 0 100 80 60 40 20 0 100 80 60 40 20 0 100 80 60 40 20 0 100 80 60 40 20 0 100 80 60 40 20 0 CPU Percent
  • 32.
    IO Avg andMax by IO Type for U 173,631 G 150,000 119,131 G Read IOPs 100,000 93,419 G 69,417 G 50,000 40,069 G 24,320 G 19,520 G 18,010 G 12,316 G 9,638 G 11,934 G 4,626 G 4,545 G 5,444 G 7,052 G 0 116 G 397 G 78 78 79 79 80 80 81 81 82 82 83 83 84 84 85 85 86 86 87 87 88 88 89 89 90 90 91 91 92 92 93 93 94 94 95 95 96 96 97 97 98 98 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 30,000 30,244 G 28,104 G 26,743 G 25,000 20,000 Read MB/s 17,358 G 15,000 13,453 G 10,000 10,272 G 5,000 4,932 G 5,306 G 1,457 G 0 799 G 70G 2 1,048 G 510 G 651 G 488 G 9G stat 78 78 79 79 80 80 81 81 82 82 83 83 84 84 85 85 86 86 87 87 88 88 89 89 90 90 91 91 92 92 93 93 94 94 95 95 96 96 97 97 98 98 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 a G Avg 150,000 152,961 G a G Max Write IOPs 100,000 68,470 G 59,267 G 50,000 46,756 G 41,199 G 40,340 G 42,254 G 37,348 G 32,274 G 28,900 G 30,827 G 27,653 G 19,494 G 9,854 G 3,027 G 0 1,413G 206 G 632 G 78 78 79 79 80 80 81 81 82 82 83 83 84 84 85 85 86 86 87 87 88 88 89 89 90 90 91 91 92 92 93 93 94 94 95 95 96 96 97 97 98 98 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 4,131 G 4,000 3,609 G 3,000 Write MB/s 2,606 G 2,608 G 2,402 G 2,479 G 2,000 1,905 G 1,738 G 1,000 466 G 464 G 551 G 370 G 388 G 284 G 250 G 105 G 0 35G 7 78 78 79 79 80 80 81 81 82 82 83 83 84 84 85 85 86 86 87 87 88 88 89 89 90 90 91 91 92 92 93 93 94 94 95 95 96 96 97 97 98 98 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 Fri Sa Su Mo Tu We Th Fri Sa ,F t, F n, n, e, d u, ,M t, M eb eb Fe Fe Fe ,F Ma ar ar 24 25 b b b 28 eb r0 02 03 26 27 29 1
  • 33.
    Main Activity Variablesfor U 3,000 2,500 AAS 2,000 1,500 1,000 500 0 3,000 AAS Max 2,000 1,000 0 4 Commits/s 3 2 1 0 8,000 Execs/s 6,000 4,000 2,000 0 12 Hard Parses/s Logons Total 10 8 6 4 2 0 3,000 2,000 1,000 0 500 Logons/s 400 300 200 100 0 SQL Resp (cs) 3,000 2,000 1,000 0 Fri Sa Tu Th Fri Sa 780 785 790 795 800 805 810 815 820 825 Su 830 835 840 845 850 855 860 865 870 875 880 885 890 895 900 905 910 915 920 925 930 935 940 945 950 955 960 965 970 975 980 985 Mo We ,F t, F n, n, e, d u, ,M t, M eb eb Fe Fe Fe ,F Ma ar ar 24 25 b b b 28 eb r0 02 03 26 27 29 1
  • 34.
    Data Types Matter RAW Varchar2 Table 8.6 GB 14.1 GB Index 20.1 GB 29.6 GB
  • 35.
    Compression Your data will compress at least Example of highly synthetic data: 2012-03-02 22.21.27 1330726911 101692495337.00 9d5e39e286dc18df0ec0c006f5065872 0 10 DBCS 36912 2012-03-02 22.21.28 1330726911 101816821802.00 5cf9a8fd3645e670f0a0bc1eeaa74a64 0 10 APPS 62988