![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The following command to create a 14.6 GB tablespace took 19 minutes to run. This strikes me as very slow. What are your experiences? CREATE LARGE TABLESPACE "CREC_2011Q4_IDX" IN DATABASE PARTITION GROUP IBMDEFAULTGROUP PAGESIZE 8192 MANAGED BY DATABASE USING (FILE '<LUN>/ CREC_2011Q4_IDX.01' 1914624) EXTENTSIZE 24 PREFETCHSIZE AUTOMATIC BUFFERPOOL BP_IX_8K_CALL_REC AUTORESIZE YES INCREASESIZE 615168 K MAXSIZE NONE NO FILE SYSTEM CACHING DROPPED TABLE RECOVERY ON; The system is DB2 LUW 9.5 *FP7 on Red Hat ELS 5.5. The underlying disk storage is a NetApp filer. I thought I would then see how dd performs with a file of the same size being written to the same LUN using the command below: dd if=/dev/zero of=<LUN>/emptyfile bs=8k count=1914624 Performance was better than the CREATE TABLESPACE command but not great, taking an average of about 6 minutes over 3 runs. I think I may have answered my own question here. This iostat output was take during the dd command runs: Device: * * * * rrqm/s * wrqm/s * r/s * w/s * rsec/s * wsec/s avgrq-sz avgqu-sz * await *svctm *%util sdb * * * * * * * 0.00 18066.12 13.59 161.38 * 183.73 145819.98 834.43 * 148.21 *834.62 * 5.96 104.20 Device: * * * * rrqm/s * wrqm/s * r/s * w/s * rsec/s * wsec/s avgrq-sz avgqu-sz * await *svctm *%util sdb * * * * * * * 0.00 30114.54 18.07 239.10 * 224.75 243627.50 948.21 * 296.96 1133.86 * 7.64 196.48 Device: * * * * rrqm/s * wrqm/s * r/s * w/s * rsec/s * wsec/s avgrq-sz avgqu-sz * await *svctm *%util sdb * * * * * * * 0.00 20727.59 14.90 164.26 * 168.57 167606.98 936.45 * 168.60 *921.69 * 6.50 116.43 The await, svctm and %util values do not strike me as being great. Interestingly, I ran a very similar CREATE TABLESPACE command on a laptop running DB2 9.7 FP4 and Windows XP. The 14GB tablespace was created in less than a second. Can anyone shed any light on this? I welcome your comments. Thanks in advance. |
#3
| |||
| |||
|
|
The system is DB2 LUW 9.5 FP7 on Red Hat ELS 5.5. The underlying disk storage is a NetApp filer. Can anyone shed any light on this? I welcome your comments. Thanks in advance. |
#4
| |||
| |||
|
|
What type of filesystem are you using? ext3/ext4/xfs/jfs ? On 07.09.11 7:58 , Desmodromic wrote: The system is DB2 LUW 9.5 *FP7 on Red Hat ELS 5.5. The underlying disk storage is a NetApp filer. Can anyone shed any light on this? I welcome your comments. Thanks in advance. -- Helmut K. C. Tessarek DB2 Performance and Development IBM Toronto Lab |
#5
| |||
| |||
|
|
On Sep 7, 7:58*am, Desmodromic <davies... (AT) yahoo (DOT) com.au> wrote: The following command to create a 14.6 GB tablespace took 19 minutes to run. This strikes me as very slow. What are your experiences? CREATE LARGE TABLESPACE "CREC_2011Q4_IDX" IN DATABASE PARTITION GROUP IBMDEFAULTGROUP PAGESIZE 8192 MANAGED BY DATABASE USING (FILE '<LUN>/ CREC_2011Q4_IDX.01' 1914624) EXTENTSIZE 24 PREFETCHSIZE AUTOMATIC BUFFERPOOL BP_IX_8K_CALL_REC AUTORESIZE YES INCREASESIZE 615168 K MAXSIZE NONE NO FILE SYSTEM CACHING DROPPED TABLE RECOVERY ON; The system is DB2 LUW 9.5 *FP7 on Red Hat ELS 5.5. The underlying disk storage is a NetApp filer. I thought I would then see how dd performs with a file of the same size being written to the same LUN using the command below: dd if=/dev/zero of=<LUN>/emptyfile bs=8k count=1914624 Performance was better than the CREATE TABLESPACE command but not great, taking an average of about 6 minutes over 3 runs. I think I may have answered my own question here. This iostat output was take during the dd command runs: Device: * * * * rrqm/s * wrqm/s * r/s * w/s * rsec/s * wsec/s avgrq-sz avgqu-sz * await *svctm *%util sdb * * * * * * * 0.00 18066.12 13.59 161.38 * 183.73 145819.98 834.43 * 148.21 *834.62 * 5.96 104.20 Device: * * * * rrqm/s * wrqm/s * r/s * w/s * rsec/s * wsec/s avgrq-sz avgqu-sz * await *svctm *%util sdb * * * * * * * 0.00 30114.54 18.07 239.10 * 224.75 243627.50 948.21 * 296.96 1133.86 * 7.64 196.48 Device: * * * * rrqm/s * wrqm/s * r/s * w/s * rsec/s * wsec/s avgrq-sz avgqu-sz * await *svctm *%util sdb * * * * * * * 0.00 20727.59 14.90 164.26 * 168.57 167606.98 936.45 * 168.60 *921.69 * 6.50 116.43 The await, svctm and %util values do not strike me as being great. Interestingly, I ran a very similar CREATE TABLESPACE command on a laptop running DB2 9.7 FP4 and Windows XP. The 14GB tablespace was created in less than a second. Can anyone shed any light on this? I welcome your comments. Thanks in advance. Could you take out *"NO FILE SYSTEM CACHING" from the command, then take a try? Arthur |
#6
| |||
| |||
|
|
On Sep 7, 11:50*pm, Helmut Tessarek <tessa... (AT) evermeet (DOT) cx> wrote: What type of filesystem are you using? ext3/ext4/xfs/jfs ? On 07.09.11 7:58 , Desmodromic wrote: The system is DB2 LUW 9.5 *FP7 on Red Hat ELS 5.5. The underlying disk storage is a NetApp filer. Can anyone shed any light on this? I welcome your comments. Thanks in advance. -- Helmut K. C. Tessarek DB2 Performance and Development IBM Toronto Lab The filesystem is ext3. |
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Hi, since your dd command is also very slow I assume that there coulbd be a config problem between the Linux-box and the Netapp-Filer. Something like buffersizes for communication or so - I'm not a specialist for these things, but I would have a look at this: 1) CFG of linux for connection to NetApp 2) CFG for NetApp for conn. to linux 3) the equipment for the communication itself (FC? ethernet? firewall? switches?) "NONE NO FILE SYSTEM CACHING" is OK for me, we use it also - and the duration for TS creation is not significantly faster... Is this the first/only tablespace you use on this NetApp-Filer on this box? Do you have other boxes connected to NettApp having a much better speed? Good luck - Stefan |
#10
| |||
| |||
|
|
One thing I am not keen on is that all containers reside in a single 2TB LUN. |
|
The noatime option for this LUN is not set either. Does anyone know whether setting it will lead to a significant performance improvement? |
![]() |
| Thread Tools | |
| Display Modes | |
| |