If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > swap requirements for DB2 on Linux

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-16-10, 22:00
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
swap requirements for DB2 on Linux

How much swap space do you allocate on Linux?

"IBM InfoSphere Balanced Warehouse D5100: Design and Implementation Guide", if I'm reading it correctly, still suggests 1:1 (32GB of swap for 32GB of RAM). In addition, the following is recommended:

" The file-system cache-related configuration parameters can be found in
the /proc/sys/vm file. The recommended values for the file-system caching
parameters are as follows:
v swappiness: 0
v dirty_ratio: 10
v dirty_background_ratio: 5 "

Last edited by db2girl; 11-16-10 at 22:04.
Reply With Quote
  #2 (permalink)  
Old 11-17-10, 03:45
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Hi Bella,

we usally don't use a 1:1. Mostly we use 1:8 on Linux. Mostly we have 2 - 4 GB Swap per Server. Even on Systems with 64 GB RAM and we never ran into issues.

Windows requires at least a 1:1 ratio for Pagefile.
Reply With Quote
  #3 (permalink)  
Old 11-17-10, 05:45
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I agree with nvk@vhv. The 1:1 was required a long time ago for AIX systems (and maybe Linux) when max system memory was typcially much smaller.

We also have used these with sucesss on all our OLTP systems:

- swappiness: 0
- dirty_ratio: 10
- dirty_background_ratio: 5

Linux tends to do too much swapping for file system cache without these.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On