INF: Optimization Techniques for OS/2 SQL ServerID: Q69329
|
This article describes optimization techniques and configuration options for SQL Server version 4.2 for OS/2.
REM diskcache
Server Type Amount of RAM
----------- --------------
Dedicated server 80 percent of RAM
Nondedicated server 50-60 percent of RAM
Memory is allocated to SQL Server in 2K units. (Note: SAF
specifies memory in kilobytes.) The following is a formula that
illustrates how much memory should be allocated for a dedicated
SQL Server with 8 MB of RAM:
(8192K * .8)/2 = 3276 2K pages, which leaves about 1.5 MB to
be used by OS/2 and LAN Manager
Note: Memory allocated to SQL Server should never exceed 90
percent of available system memory because this will cause
swapping and will defeat "in memory" access.
1 Connection for Console Program
+ # Max Number of Simultaneous Logins
# Max Number of Connections
The following illustrates how to calculate the memory required
for 40 simultaneous logins:
(((Number of Simultaneous Logins * Average Number of
Connections Per Application)
+ Connection Required for Console Utility)
* Memory Required Per Connection)
Total Amount of Memory Required
for 40 Simultaneous Logins
-or-
(((40 * 4) + 1) * 42K) = 6762K
NOTE: The average number of user connections required per
application is calculated by adding up all dbopen()s in the
applications and dividing the sum by the total number of
applications. For example:
3 dbopen()s for Application 1
3 dbopen()s for Application 2
+ 6 dbopen()s for Application 3
12 Total of All dbopen()s
/ 3 Total Number of Applications
4 Average Number of Connections Required Per Application
Percentage Explanation
---------- -----------
100% Indexes are completely filled. This is optimal for
quick retrieval purposes but is not optimal for
updates because of page overflows (page splits).
50-60% This is preferred for tables that are updated
because of a lower occurrence of page splits
and/or shrinks, but it makes for slower retrieval
time.
Keywords : kbenv kbother SSrvServer
Version : 4.2
Platform : OS/2
Issue type :
Last Reviewed: March 10, 1999