Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Apr 2015 13:31:14 +0300 (MSK)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        freebsd-stable@FreeBSD.org
Subject:   protecting some processes from out-of-swap killer
Message-ID:  <alpine.BSF.2.00.1504251316020.43520@woozle.rinet.ru>

next in thread | raw e-mail | index | archive | help
Hi there colleagues,

I have stable/10 on a rather big machine (2*8*2 e5 Xeon, 64G RAM, SAS+SSD ZFS 
raid10+ZIL+L2ARC) acting as a PostgreSQL server. 

To use such a big resource pool that is mostly idle, I'd deployed poudriere 
there (using tmpfs) too.

Most times this combination works like a charm: LA could be 60+ and no visual 
latency increase on SQL queries.

However, sometimes postgres processes got killed by 'out of swap space'.  
I suppose the source of problem could be that VSZ size of postgres processes 
(8-9 G) is bigger than swap congigured (4G).

Is there any way to prevent this, besides reallocating space for swap?

Quick googling does not help, at least I could not find answers relevant 
enough.

Thanks!


-- 
Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck@FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1504251316020.43520>