on 05-11-2009 3:47 PM
Hello,
we have upgraded a lot of databases to 9.5.2. I have some questions regarding CIO and DIO.
It seems, that there a two ways of activating this feature. I can turn off Filesystem caching on tablespace level and then the database is using CIO or DIO in dependency of the filesystem.
Alternative I can change the mount points on unix level and mount using DIO or CIO.
Is this so far correct?
We have for some databases deactivated the filesystem caching on tablespace level with alter tablespace.... for all DMS. What about SMS? In one documentation I have read for 8.2.2 that for SMS/DMS temporary tablespaces the filesystem caching shouldn't been deactivated. Is this still valid for 9.5.2?
Regards,
Alexander
here is a link that details db2 and cio
Also, on AIX using jfs2 you can mount your log_dir as CIO as well.
Regards,
Dan Pamintuan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Alexander,
enabling CIO/DIO with NO FILE SYSTEM CACHING is the recommended method.
Starting with DB2 9.5 CIO/DIO is the default for all DMS tablespaces, because you can expect better performance.
On SMS tablespaces, which are only used for TEMPSPACEs in SAP, CIO/DIO has not helped.
On SAP BW systems DMS tablespaces for TEMPSPACEs has shown good results.
On 9.5 FP1 you can use the registry variable DB2_LOGGER_NON_BUFFERED_IO to enable DIO on logging operations.
Please be aware of the following problems:
- backups can take longer especially if your tablespaces are configured with a small extent size. The extent size should be a mulitple of the physical stripe set. Often this is 64K. The SAP default 16K page size with extent size 2 is typically too small.
- LONG/LOB read operations have worse performance with CIO/DIO enabled, because the file system cache cannot help to buffer the values.
Best regards,
Jens
Dear colleagues,
thank you all for your answers. We will deactivate File System Caching on db level, but we are still not sure, if we further should mount with specail options to deactivate file system caching on os level. Have anyone done some tests? Does it further improves the speed, it we deactivate also on os level? Any experiences?
regards,
alexander
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Derek,
we are running on AIX 5.3.8.4
Regards,
Alexander
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexander,
You'll need to both turn off file system caching at the tablespace level, and also remount the filesystem using the CIO/DIO option, to get DIO to work. Which UNIX are you using?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.