On Fri, Dec 02, 2005 at 03:53:20PM -0800, Tyler MacDonald wrote: > Will Glynn <wglynn@xxxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxx> 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:
pgpcNaMV0YXR5.pgp
Description: PGP signature