From: | "Jim C(dot) Nasby" <jim(at)nasby(dot)net> |
---|---|
To: | Doug McNaught <doug(at)mcnaught(dot)org> |
Cc: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>, Martin Foster <martin(at)ethereal-realms(dot)org>, PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: PostgreSQL Performance on OpenBSD |
Date: | 2003-05-21 19:22:34 |
Message-ID: | 20030521192234.GO40542@flake.decibel.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, May 19, 2003 at 08:50:31PM -0400, Doug McNaught wrote:
> "Jim C. Nasby" <jim(at)nasby(dot)net> writes:
>
> > Hmm... this could explain some of the memory alloc errors people have
> > been posting about. It would be very useful if pgsql could limit the
> > amount of memory used by a connection, or better yet, used across all
> > connections. This way you could ensure that you never start swapping.
>
> Per-connection is easy: 'man ulimit'
>
> Across all connections is possible if your system supports per-user
> limits (in addition to per-process) but otherwise all the bookkeeping
> would have to be done in the server, kept in shared memory and managed
> with a semaphore. Somehow I doubt you'd get that patch accepted. :)
Where would you do the ulimit? In the pgsql ~/.profile?
More importantly, what happens when this limit is hit? I'm guessing the
engine would fail, which isn't very helpful. If the server tracked
resource usage on it's own, it would be able to throttle back things
like sort memory when things started getting tight.
--
Jim C. Nasby (aka Decibel!) jim(at)nasby(dot)net
Member: Triangle Fraternity, Sports Car Club of America
Give your computer some brain candy! www.distributed.net Team #1828
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"
From | Date | Subject | |
---|---|---|---|
Next Message | Bruno Wolff III | 2003-05-21 19:32:46 | Re: SELECT DISTINCT ON bug? |
Previous Message | Jim C. Nasby | 2003-05-21 19:17:48 | Re: ERROR: Memory exhausted in AllocSetAlloc(188) |