From: | "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | SHM_LOCK under Linux ... do we use this? |
Date: | 2005-08-17 20:26:34 |
Message-ID: | 20050817172052.U1002@ganymede.hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Under FreeBSD, we have an option (kern.ipc.shm_use_phys=1) that doesn't
allow shared memory to be swap'd ... under Linux, there is apparently an
application level option that can be used for this purpose:
A privileged user can prevent or allow swapping of a shared memory
segment with the following cmds:
SHM_LOCK prevents swapping of a shared memory segment. The user
must fault in any pages that are required to be present
after ...
I've done a grep through the code, to see if its something that we do use, and
it doesn't seem to come back with anything ... I believe its considered
common knowledge that 'swapping' for a database is evil, so am wondering
if there is some way that we can make use of this to help reduce/eliminate
that from happening?
The "A privileged user can..." part makes me think no, but figured I'd ask
...
----
Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
Email: scrappy(at)hub(dot)org Yahoo!: yscrappy ICQ: 7615664
From | Date | Subject | |
---|---|---|---|
Next Message | Hannu Krosing | 2005-08-17 20:37:36 | Re: Missing CONCURRENT VACUUM (Was: Release notes for |
Previous Message | Jim C. Nasby | 2005-08-17 20:15:52 | Re: pthread stack on FreeBSD WAS: HEAD doesn't cope with libraries |