473,395 Members | 1,931 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

db2_mmap vs create tablespace no file system cache option (concurrent i/o)

Hi,

I've read everything I can get my hands on and am still very
confused about the similarities and differences between
db2_mmap_read/write and concurrent i/o. It seems to me at this point
that they are virtually identical except that db2_mmap_read/write
applies at an instance level and concurrent i/o can be aplied at a
tablespace level. It seems that they both bypass the AIX file cache
and eliminate i-node locking. Is this correct?

Thanks.

Lew

Sep 8 '06 #1
5 4451
se*****@yahoo.com wrote:
Hi,

I've read everything I can get my hands on and am still very
confused about the similarities and differences between
db2_mmap_read/write and concurrent i/o. It seems to me at this point
that they are virtually identical except that db2_mmap_read/write
applies at an instance level and concurrent i/o can be aplied at a
tablespace level. It seems that they both bypass the AIX file cache
and eliminate i-node locking. Is this correct?

Thanks.

Lew
Hi Lew,

Both these forms of I/O bypass the i-node locking. However,
db2_mmap_read/write does not bypass the file cache, so you could get
double buffering of data (one copy in DB2's buffer pools, one in the
file cache). Concurrent I/O bypasses the file cache.

Cheers,
Liam.

Sep 11 '06 #2
Ian
Liam Finnie wrote:
se*****@yahoo.com wrote:
>Hi,

I've read everything I can get my hands on and am still very
confused about the similarities and differences between
db2_mmap_read/write and concurrent i/o. It seems to me at this point
that they are virtually identical except that db2_mmap_read/write
applies at an instance level and concurrent i/o can be aplied at a
tablespace level. It seems that they both bypass the AIX file cache
and eliminate i-node locking. Is this correct?

Thanks.

Lew

Hi Lew,

Both these forms of I/O bypass the i-node locking. However,
db2_mmap_read/write does not bypass the file cache, so you could get
double buffering of data (one copy in DB2's buffer pools, one in the
file cache). Concurrent I/O bypasses the file cache.
Furthermore: If you are using "no file system caching" at the DB2
level, and have a 32 bit instance, turning MMAP read/write off will
free up an extra shared memory segment that you can use for other,
more useful consumers.

Right, Liam?
Sep 11 '06 #3
Furthermore: If you are using "no file system caching" at the DB2
level, and have a 32 bit instance, turning MMAP read/write off will
free up an extra shared memory segment that you can use for other,
more useful consumers.

Right, Liam?
You got it. Of course, if you're worried about being able to squeeze
out one extra 256MB segment, then you should move up to a 64-bit
instance anyways :-)

Cheers,
Liam.

Sep 11 '06 #4
Hi Liam,

Thanks for your response. I too thought that db2_mmap_read/write
didn't bypass the file system cache until I read this about
db2_mmap_read in the V8 performance tuning guide:

This variable is used in conjunction with DB2_MMAP_WRITE to allow DB2
UDB to use mmap as an alternate method of I/O. In most environments,
mmap should be used to avoid operating system locks when multiple
processes are writing to different sections of the same file.

When these variables are set to ON, data that is read to and written
from the DB2 buffer pools bypasses the AIX memory cache. If you have a
relatively small DB2 buffer pool, and you cannot or choose not to
increase the size of this buffer pool, you should take advantage of AIX
memory caching by setting DB2_MMAP_READ and DB2_MMAP_WRITE to OFF.

Lew

Liam Finnie wrote:
se*****@yahoo.com wrote:
Hi,

I've read everything I can get my hands on and am still very
confused about the similarities and differences between
db2_mmap_read/write and concurrent i/o. It seems to me at this point
that they are virtually identical except that db2_mmap_read/write
applies at an instance level and concurrent i/o can be aplied at a
tablespace level. It seems that they both bypass the AIX file cache
and eliminate i-node locking. Is this correct?

Thanks.

Lew

Hi Lew,

Both these forms of I/O bypass the i-node locking. However,
db2_mmap_read/write does not bypass the file cache, so you could get
double buffering of data (one copy in DB2's buffer pools, one in the
file cache). Concurrent I/O bypasses the file cache.

Cheers,
Liam.
Sep 11 '06 #5

se*****@yahoo.com wrote:
Hi Liam,

Thanks for your response. I too thought that db2_mmap_read/write
didn't bypass the file system cache until I read this about
db2_mmap_read in the V8 performance tuning guide:

This variable is used in conjunction with DB2_MMAP_WRITE to allow DB2
UDB to use mmap as an alternate method of I/O. In most environments,
mmap should be used to avoid operating system locks when multiple
processes are writing to different sections of the same file.

When these variables are set to ON, data that is read to and written
from the DB2 buffer pools bypasses the AIX memory cache. If you have a
relatively small DB2 buffer pool, and you cannot or choose not to
increase the size of this buffer pool, you should take advantage of AIX
memory caching by setting DB2_MMAP_READ and DB2_MMAP_WRITE to OFF.

Lew
Hi Lew,

That second paragraph is incorrect. DB2_MMAP_READ/DB2_MMAP_WRITE will
hit the AIX file cache - the only thing it does is avoid i-node
locking. To avoid the AIX file cache, you need to enable Concurrent
I/O, either through mount options, or by using the 'NO FILE SYSTEM
CACHING' clause when creating/altering your tablespaces.

Cheers,
Liam.

Sep 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: gecho | last post by:
New to oracle, but I'm coming from the sybase side. I took over one of our oracle production databases (1.5 Tb) while the regular dba is out. I got errors (unable to extend temp segment) for two...
13
by: Jean-Marc Blaise | last post by:
Hi there, I would like to know the meaning of direct_writes in a tablespace snapshot on a tablespace that is: * SMS (db2empfa ON) * Only 1 table is accessed in INSERT - Z locked (Not logged...
4
by: UDBDBA | last post by:
All: I see that that DMS tablespaces using raw devices have "File System cache" enabled by *default*. My understanding is that file system cache is applicable only for SMS. Here is the...
3
by: Madhu | last post by:
All, New to DB2 environment. Can someone share a script that can be used to a create a DB2 UDB database manually. I am trying to create a database on Linux, single partition. Thanks Madhu
5
by: Raj | last post by:
What is the purpose of file system caching while creating a tablespace? Memory on the test server gets used up pretty quickly after a user executes a complex query(database is already activated),...
6
by: Troels Arvin | last post by:
Hello, Running DB2 on AIX. I've read http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0408lee/ DMS tablespaces on concurrent I/O file systems (with the AUTORESIZE YES...
6
by: goraya | last post by:
This is design level discussion about web applications. How I design application that support 1 million concurrent requests??
1
by: ni3b007 | last post by:
I m having oracle 10g while creating database its giving me error database not mounted this is my p file; ########################################### # Cache and I/O...
1
by: sanjupommen | last post by:
I am in the process of exploring the possibility of providing our products on databases other than Oracle.I am able to migrate the data, procedures etc without too much effort (latest version of DB2...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.