The following tweaks were tested on 64-bit Red Hat Enterprise Linux 5 and 6 only. Although untested and unsupported, it may be possible to achieve similar benefits on other supported platforms when the system has at least 8 GB of total memory.
Making the changes below, on a server with less than 8 GB of memory, can cause a decrease in system performance.
By increasing the number of revision processing threads and the amount of shared memory available to the database, it is possible to improve the device configuration revision processing rate and the overall database performance.
To increase the number of revision processing threads and the amount of shared memory available to the database, follow these steps:
If you have installed NCM in a distributed environment,
– perform Step 1 – Step 10 on the Database server and
– perform Step 11 – Step 13 on Application server..
Step |
Action |
---|---|
1 |
Log into the Application server as the root user. |
2 |
Stop the Network Configuration Manager services using the following command: systemctl stop vcmaster |
3 |
Open the [Product directory]/db/controldb/data/postgresql.conf file for editing. |
4 |
Locate the line shared_buffers = 32MB. Replace the above line with shared_buffers = 512MB. |
5 |
Save, and then Exit the [Product directory]/db/controldb/data/postgresql.conf file. |
6 |
Set the shared memory max for Linux to 600MB using the following command: echo 600000000 > /proc/sys/kernel/shmmax |
7 |
Open the /etc/sysctl.conf file for editing. |
8 |
Locate the line kernel.shmmax = 100000000. Replace the above line with kernel.shmmax = 600000000. |
9 |
Save, and then Exit the /etc/sysctl.conf file. |
10 |
Open the [Product directory]/cm/daemon/conf/cdaemon-config.properties file for editing. |
11 |
Locate the line devsvc.daemon.deviceupdate.max_notif_threads=2. Replace the above line with devsvc.daemon.deviceupdate.max_notif_threads=8. |
12 |
Save, and then Exit the [Product directory]/cm/daemon/conf/cdaemon-config.properties file. |
13 |
Start the Network Configuration Manager services using the following command: systemctl start vcmaster |