Re: Shared Memory: How to use SYSV rather than MMAP ? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Shared Memory: How to use SYSV rather than MMAP ?
Date
Msg-id 8c5f76e4-3541-c7f9-82d3-fd2863817598@2ndquadrant.com
Whole thread Raw
In response to Re: Shared Memory: How to use SYSV rather than MMAP ?  (Thomas Munro <thomas.munro@enterprisedb.com>)
List pgsql-hackers
On 27/12/2018 00:53, Thomas Munro wrote:
> mmap and sysv were the same, but there
> did seem to be a measurable speed-up available at high client counts
> with kern.ipc.shm_use_phys=1 and thus for sysv only, for people
> prepared to set 3 sysctls and this proposed new GUC.  Maybe the effect
> would be greater with bigger shared_buffers or smaller pages (this
> test ran on super pages)?  More work required to figure that out.

Could you get a similar effect for mmap by using mlock() to prevent the
pages from being swapped?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: commit fest app: Authors
Next
From: Alexander Korotkov
Date:
Subject: Re: Making all nbtree entries unique by having heap TIDs participatein comparisons