Re: SHM_LOCK under Linux ... do we use this?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: SHM_LOCK under Linux ... do we use this?
Date: 2005-08-17 22:20:43
Message-ID: 20087.1124317243@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Marc G. Fournier" <scrappy(at)postgresql(dot)org> writes:
> 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 ...

No, we don't. "privileged user" means root, so it's not possible for us
to set that.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2005-08-17 22:27:31 Re: gettime() - a timeofday() alternative
Previous Message Tom Lane 2005-08-17 22:17:50 Re: gettime() - a timeofday() alternative