473,405 Members | 2,294 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,405 software developers and data experts.

db2_awe and more than 4GB memory on Windows

Hi!

This may seems to be a stupid question but I can't figure out how
configuration of more than 4 GB memory on Windows works.

dbset db2_awe=1,<number of physical pages>, <number of address windows>
The first parameter is bufferpool id.

I have 15 databases in my instance each with a bufferpool with id = 1

Since this parameter is set on the instance level my question is:

Will all bufferpools with id 1 benefit from this?

If not - which database will be affected?

I can't see any improvments anywhere

Nov 12 '05 #1
9 3473
thomasb wrote:
Hi!

This may seems to be a stupid question but I can't figure out how
configuration of more than 4 GB memory on Windows works.

dbset db2_awe=1,<number of physical pages>, <number of address windows>
The first parameter is bufferpool id.

I have 15 databases in my instance each with a bufferpool with id = 1

Since this parameter is set on the instance level my question is:

Will all bufferpools with id 1 benefit from this?

If not - which database will be affected?

I can't see any improvments anywhere

Thomas,

I think got that one right.

Personally I'm not a fan of AWE. IMHO AWE is a kludge in Windows to
begin with....

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2
thomasb wrote:
Hi!

This may seems to be a stupid question but I can't figure out how
configuration of more than 4 GB memory on Windows works.


afaik windows doesn't support > 4GB mem. Or is it a 64bit windows
version? (Don't know about that).

-R-
Nov 12 '05 #3
Jurgen Haan wrote:
thomasb wrote:
Hi!

This may seems to be a stupid question but I can't figure out how
configuration of more than 4 GB memory on Windows works.


afaik windows doesn't support > 4GB mem. Or is it a 64bit windows
version? (Don't know about that).

-R-

Not quite, you can go to up to 64 GB on Windows 2003 Data Center.
Haven't tried it though.
--
Anton Versteeg
IBM Netherlands
Nov 12 '05 #4
Anton Versteeg wrote:
Not quite, you can go to up to 64 GB on Windows 2003 Data Center.
Haven't tried it though.


Provided you run it on a ia64 I assume?
x86 does not allow adressing > 4GB mem... Or does windows use a trick to
bypass buswidth?

-R-
Nov 12 '05 #5
Jurgen Haan wrote:
Anton Versteeg wrote:
Not quite, you can go to up to 64 GB on Windows 2003 Data Center.
Haven't tried it though.

Provided you run it on a ia64 I assume?
x86 does not allow adressing > 4GB mem... Or does windows use a trick to
bypass buswidth?

-R-

No, that's on 32-bit hardware and yes Windows does some tricks.
If I am correct you loose about 1GB of the memory under 4GB.
And for the average 32-bit application it won't be easy to address the
storage over 4GB.

--
Anton Versteeg
IBM Netherlands
Nov 12 '05 #6
Anton Versteeg wrote:
No, that's on 32-bit hardware and yes Windows does some tricks.
If I am correct you loose about 1GB of the memory under 4GB.
And for the average 32-bit application it won't be easy to address the
storage over 4GB.


LOL.. Didn't know that.. Thanks :)

-R-
Nov 12 '05 #7
Finally found out how to activate memory above 4 GB on a Windows 2003
AdSrv box but run into another strange (for me) problem.

db2_awe=2,2000000,250000

I want to lock 8GB of memory through a 1GB window for bufferpooll #2
(The parameter is set at instance level)

Create bufferpool bigbp

CREATE BUFFERPOOL BIGBP IMMEDIATE SIZE 1000000 PAGESIZE 4 K ;

Stop and start the dabase manager

Around 700 MB of memory is used

Connect to the database with bufferpool BIGBP

8,7 GB of memory is allocated

OK I have a 4 GB big BP and have wasted 8 GB of memory

hmmm!!!

DROP BUFFERPOOL BIGBP;

CREATE BUFFERPOOL BIGBP IMMEDIATE SIZE 2000000 PAGESIZE 4 K ;

Error!!!!!!

[IBM][CLI Driver][DB2/NT] SQL0644N Invalid value specified for
keyword "SIZE" in statement "BUFFERPOOL". SQLSTATE=42615

So I can allocate the memory but don't use it! Strange!

Can't find any information in the administrator's manual about an
upper limit for the SIZE parameter.

I'm confused!

Any input in this matter is appreciated

Nov 12 '05 #8
Ian
thomasb wrote:
Finally found out how to activate memory above 4 GB on a Windows 2003
AdSrv box but run into another strange (for me) problem.

db2_awe=2,2000000,250000


When you use DB2_AWE, the registry variable sets the size of the
bufferpool with the ID you specified. Using DB2_AWE _overrides_ the
size of the bufferpool that is defined in the catalog.

So assuming that the bufferpool with bufferpoolid = 2 has 4K page
size, the bufferpool will have a size of 7.6 Gb , accessed through
an AWE window of ~976 Mb (regardless of the value of npages in
syscat.bufferpools).

Nov 12 '05 #9
Ian skrev:
When you use DB2_AWE, the registry variable sets the size of the
bufferpool with the ID you specified. Using DB2_AWE _overrides_ the
size of the bufferpool that is defined in the catalog.

So assuming that the bufferpool with bufferpoolid = 2 has 4K page
size, the bufferpool will have a size of 7.6 Gb , accessed through
an AWE window of ~976 Mb (regardless of the value of npages in
syscat.bufferpools).


Aha!!

Thanks Ian!

I thought it was kind of a two step process. First allocate memory and
then define the bufferpool inside that memory container

Nov 12 '05 #10

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

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
6
by: shailesh kumar | last post by:
Hi, I need to design data interfaces for accessing files of very large sizes efficiently. The data will be accessed in chunks of fixed size ... My data interface should be able to do a random...
11
by: jong | last post by:
I have a problem with an C# application. The application is a 24x7 low volume message processing server. The server has a single thread of processing, running in a continuous loop, for each...
7
by: fremenusul | last post by:
I know I have been asking LOTS of xml questions and I really apprecaite all the help. Here is my XML file <?xml version="1.0" encoding="utf-8" ?> <products> <!-- Repeat the structure below...
11
by: Bob Karaban | last post by:
We ran into a problem using VirtualAllocEx and were wondering if anybody has a way around this. We have an executable that stores a hash table in a remote process. The VirtualAllocEx function...
10
by: Jason Gyetko | last post by:
I'm running DB2 v8.1 FP5 on a Server with 2 physical processors (4 virtual) and am wondering if there is a way to configure DB2 to use more processor. Right now I'm running a delete query to delete...
2
by: Ilkka | last post by:
I have created an C++ application with Windows Forms, ADO and SQL server 2005. Now I need to change something and started debugging the code. Then suddenly I receive an error. "An unhandled...
11
by: richi | last post by:
Hi everyone, I am sorry, my english is not good! I found a problem about memory. In a function I malloced more memory than before that is 4.5625Kb in theory. Then I watched the memory size of...
2
by: ravishi | last post by:
Well, this is my first topic at this forum and I'm a newbie on C programming too. I'm coding a little program and I've used some "dynamic arrays" on it. Compiling and running the program on Linux...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.