![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I know that beginning 9.5, file system caching is turned off by default. Our software-app platform is at db2 9.1 windows 2003 due to installed app requirement. My question is: is FILE SYSTEM CACHING ever good ? I found I have near instant response when I run full table scan the 2nd time if I leave file system caching on. And it even survives instance bounce. So in effect, OS file cache acts as a secondary memory disk. So I can leave bufferpool size moderate or even small and let OS cache feeds me the data. We have 32 G of RAM and we bounce the app twice a week to killed the websphere connections thereby releasing the memory holds. In a typical week, db2 will start out with 27 GB free (out 32 GB) after fresh websphere restart, and drips down to 14-15 GB free. Each day it begins with like 19 GB and regains it to 21 GB, but next day it begins at 17 GB, and regains to 20 GB, so the watermark is lowered over time, but an application restart after 3 or days restore the starting point back up to 27GB. So we are (cross fingers) not memory constrained. This question also leads into even more technical discussion,like OS caching and Read,write caching enablement on the SAN controller. Any insight will be appreciated. Thank you in Advance. |
#3
| |||
| |||
|
|
I know that beginning 9.5, file system caching is turned off by default. Our software-app platform is at db2 9.1 windows 2003 due to installed app requirement. My question is: is FILE SYSTEM CACHING ever good ? |
|
I found I have near instant response when I run full table scan the 2nd time if I leave file system caching on. And it even survives instance bounce. So in effect, OS file cache acts as a secondary memory disk. So I can leave bufferpool size moderate or even small and let OS cache feeds me the data. |
|
We have 32 G of RAM and we bounce the app twice a week to killed the websphere connections thereby releasing the memory holds. In a typical week, db2 will start out with 27 GB free (out 32 GB) after fresh websphere restart, and drips down to 14-15 GB free. Each day it begins with like 19 GB and regains it to 21 GB, but next day it begins at 17 GB, and regains to 20 GB, so the watermark is lowered over time, but an application restart after 3 or days restore the starting point back up to 27GB. |
#4
| |||
| |||
|
|
File system caching should be kept on for SMS tablespaces. |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Back to FILE SYSTEM CACHING. *Why wouldn't I use OS memory ( of which I have whopping 27 GB free after initial app connects) as a memory disk by leaving File system Caching ON ? Sure it incurs double cpu cycles when it pulls it from SAN disks, or writes double to disk, but I am getting repeated payoffs when the application re-reads the same info, which happens multiple times and shares among multiple read requests. Will someone convince me this is a bad thing ? |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Back to FILE SYSTEM CACHING. Why wouldn't I use OS memory ( of which I have whopping 27 GB free after initial app connects) as a memory disk by leaving File system Caching ON ? Sure it incurs double cpu cycles when it pulls it from SAN disks, or writes double to disk, but I am getting repeated payoffs when the application re-reads the same info, which happens multiple times and shares among multiple read requests. Will someone convince me this is a bad thing ? Thank you in advance for more advice. |
#9
| |||
| |||
|
|
File system caching should be kept on for SMS tablespaces. I don't agree -- what is your reasoning behind this? |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |