Re: memory leak under heavy load? - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: memory leak under heavy load?
Date
Msg-id 20051203200354.GA22901@svana.org
Whole thread Raw
In response to Re: memory leak under heavy load?  (Tyler MacDonald <tylerm@ActiveState.com>)
Responses Re: memory leak under heavy load?
List pgsql-general
On Fri, Dec 02, 2005 at 03:53:20PM -0800, Tyler MacDonald wrote:
> Will Glynn <wglynn@freedomhealthcare.org> wrote:
> > Postgres completely for a few seconds didn't lower the number. It wasn't
> > taken by any process, which leads me to believe that it's a kernel bug.
>
>     If it was a shared memory segment allocated a particular way (I
> *think* it's "shm_open", I'm not 100% sure), it's not erronious for the
> kernel to leave it behind after all processes are gone... see
> http://lists.debian.org/debian-apache/2004/06/msg00188.html .

But this shouldn't be an issue here. If you set the IPC_RMID flag then
the kernel should remove the segment when all users go away. This is
standard IPC behaviour and is documentated in the manpage...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: news.postgresql.org slow
Next
From: Tom Lane
Date:
Subject: Re: 8.03 versus 8.04