Sygfault: overcommit_memory problem on database server
Hello,
After configuring new database (postgresql) server on Centos 6.3, we got a problem, database randomly stops with "Out of memory" error and such event are written in to the messages log: Code:
Aug 1 09:48:20 dbsrv kernel: postmaster[20474]: segfault at 7600000091 ip 00000000006e34a0 sp 00007fff896a8ca0 error 6 in postgres[400000+4e6000] Server kernel custom configuration: Code:
kernel.shmmax = 8363171840 Uname: Linux dbsrv 2.6.32-279.2.1.el6.x86_64 #1 SMP Fri Jul 20 01:55:29 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Postgres configuration: Code:
shared_memory 2GB In a such configuration database or running services craches randomly. After several hours of studying we discovered that runing RAM consumption applications increase a probability of a crash, tried vim a large file, or memtest 3000. In both cases server craches with segfault. After reconfiguring kernel to vm.overcommit_memory = 0, problem was solved and no crashed was detected from that moment at all. The question is, why this is happening? What we have misconfigured and why vm.overcommit_memory = 2 is not working? |
Hi,
can you post the output of uname -a plz ? |
I've inserted in in the first post =) :
Quote:
|
All times are GMT -5. The time now is 07:52 AM. |