Top
Symfoware Server V12.1.0  Installation and Setup Guide for Server
FUJITSU Software

J.1 Symfoware Server Memory Requirements

This section describes the formulas for estimating Symfoware Server memory requirements.

Use the following formula to obtain a rough estimate of memory required for Symfoware Server:

symfowareServerRequiredMemory = sharedMemoryAmount + localMemoryAmount

Shared memory amount

Refer to "Table: PostgreSQL Shared Memory Usage" in "Shared Memory and Semaphores" under "Server Administration" in the PostgreSQL Documentation for information on shared memory.

However, note that if instances have been created using WebAdmin, the parameters below will be configured automatically when the instances are created. Take this into account when calculating the shared memory size.

Parameter name

Set value

shared_buffers

30 percent of the internal memory of the machine.

max_connections

100

max_prepared_transactions

100

Local memory amount

localMemoryAmount = processStackArea
                  + memoryUsedInDbSessionsThatUseTempTables
                  + memoryUsedInDbSessionsThatPerformSortAndHashTableOperations 
                  + memoryUsedInMaintenanceOperations
                  + baseMemoryUsedInEachProcess
                  + memoryUsedPreparingForDataAccess

Process stack area
processStackArea
  = max_stack_depth x (max_connections + autovacuum_max_workers + 9)

This formula evaluates to the maximum value.
Actually it is used according to the growth of the stack.
In the formula above, 9 is the number of processes that perform roles specific to servers.

Memory used in database sessions that use temporary tables
memoryUsedInDbSessionsThatUseTempTables
  = temp_buffers x max_connections

This formula evaluates to the maximum value.
Memory is gradually used as temporary buffers are used, and is released when the session ends.

Memory used in database sessions that perform sort and hash table operations
memoryUsedInDbSessionsThatPerformSortAndHashTableOperations
  = work_mem x max_connections

This formula evaluates to the maximum value.
Memory is gradually used as operations such as sort are performed, and is released when the query ends.

Memory used in maintenance operations
memoryUsedInMaintenanceOperations
  = maintenance_work_mem x (numOfSessionsPerformingMaintenance + autovacuum_max_workers)

Note that 'maintenance operations' are operations such as VACUUM, CREATE INDEX, and ALTER TABLE ADD FOREIGN KEY.

Base memory used in each process
baseMemoryUsedInEachProcess
  = 3MB x (max_connections + autovacuum_max_workers + 9)

This formula evaluates to the memory used when server processes are running.
In the formula above, 9 is the number of processes that perform roles specific to servers.

Memory used preparing for data access
memoryUsedPreparingForDataAccess
 = variationAmount x (max_connections + autovacuum_max_workers + 4)

  where variationAmount = shared_buffers / 8KB x 4 bytes
      (note that 8KB is the page length, and 4 bytes is the size of page management data)

This formula evaluates to the memory required to access the database cache in the shared memory.
In the formula above, among the processes that perform roles specific to servers, 4 is the number of processes that access the database.