Re: Memory Leak executing small queries without closing the connection - FreeBSD

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gerhard Wiesinger <lists(at)wiesinger(dot)com>
Cc: Bill Moran <wmoran(at)potentialtech(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Memory Leak executing small queries without closing the connection - FreeBSD
Date: 2015-12-13 17:17:35
Message-ID: 25390.1450027055@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gerhard Wiesinger <lists(at)wiesinger(dot)com> writes:
>> Mem: 7814M Active, 20G Inact, 2982M Wired, 232M Cache, 1661M Buf, 30M Free
>> Swap: 512M Total, 506M Used, 6620K Free, 98% Inuse

> OK, but why do we then get: kernel: swap_pager_getswapspace(4): failed?

Just judging from the name of the function, I would bet this is a direct
result of having only 512M of swap configured. As Bill already pointed
out, that's a pretty useless choice on a system with 32G of RAM. As soon
as the kernel tries to push out any significant amount of idle processes,
it's gonna be out of swap space. The numbers you show above prove that
it is almost out of free swap already.

Also, while that 20G of "inactive" pages may be candidates for reuse,
they probably can't actually be reused without swapping them out ...
and there's noplace for that data to go.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gerhard Wiesinger 2015-12-13 19:09:04 Re: Memory Leak executing small queries without closing the connection - FreeBSD
Previous Message Bill Moran 2015-12-13 15:59:18 Re: Memory Leak executing small queries without closing the connection - FreeBSD