Re: [HACKERS] SHM_LOCK under Linux ... do we use this?

2005-09-20 Thread Jan Wieck
On 8/18/2005 5:14 AM, Qingqing Zhou wrote: ""Marc G. Fournier"" <[EMAIL PROTECTED]> writes 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

Re: [HACKERS] SHM_LOCK under Linux ... do we use this?

2005-08-18 Thread Qingqing Zhou
""Marc G. Fournier"" <[EMAIL PROTECTED]> writes > > 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

Re: [HACKERS] SHM_LOCK under Linux ... do we use this?

2005-08-17 Thread Marc G. Fournier
On Wed, 17 Aug 2005, Tom Lane wrote: "Marc G. Fournier" <[EMAIL PROTECTED]> writes: A privileged user can prevent or allow swapping of a shared memory segment with the following cmds: SHM_LOCKprevents swapping of a shared memory segment. The user must f

Re: [HACKERS] SHM_LOCK under Linux ... do we use this?

2005-08-17 Thread Tom Lane
"Marc G. Fournier" <[EMAIL PROTECTED]> writes: > A privileged user can prevent or allow swapping of a shared memory > segment with the following cmds: > SHM_LOCKprevents swapping of a shared memory segment. The user > must fault in any pages that are requir

[HACKERS] SHM_LOCK under Linux ... do we use this?

2005-08-17 Thread Marc G. Fournier
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