Using mmap instead of shmem - Mailing list pgsql-hackers

From Zeugswetter Andreas SARZ
Subject Using mmap instead of shmem
Date
Msg-id 219F68D65015D011A8E000006F8590C6010A525C@sdexcsrv1.sd.spardat.at
Whole thread Raw
List pgsql-hackers
The following can be read in the Samba cvs.log,
it makes me believe that shmem is faster than mmap.
Informix also uses shmem and not mmap.

****************************************************************
Date:   Wednesday October 29, 1997 @ 1:19
Author: tridge

Update of /data/cvs/samba/source
In directory samba:/tmp/cvs-serv8959

Modified Files:
        Makefile includes.h locking_shm.c proto.h shmem.c smb.h
Added Files:
        shmem_sysv.c
Log Message:
SYSV IPC implementation of fast share modes.

It will try sysv IPC first, then if that fails it will try mmap(),
then after that it will try share files.

I have defined USE_SYSV_IPC for Linux, Solaris and HPUX at the
moment. Probably a lot more could have it defined. In fact, the vast
majority of systems support it. Need autoconf again :-)

It should actually be faster than the mmap() version, and doesn't need
any lock files. This means the problem of the share mem file being on
a NFS drive will be gone.
****************************************************************************
***

Andreas

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] retrieving varchar size
Next
From: Hannu Krosing
Date:
Subject: Re: [HACKERS] Re: [INTERFACES] retrieving varchar size