From: | Zeugswetter Andreas SARZ <Andreas(dot)Zeugswetter(at)telecom(dot)at> |
---|---|
To: | "'hackers(at)postgresql(dot)org'" <hackers(at)postgresql(dot)org> |
Subject: | Using mmap instead of shmem |
Date: | 1998-04-23 17:18:06 |
Message-ID: | 219F68D65015D011A8E000006F8590C6010A525C@sdexcsrv1.sd.spardat.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Hannu Krosing | 1998-04-23 17:28:39 | Re: [HACKERS] Re: [INTERFACES] retrieving varchar size |
Previous Message | Bruce Momjian | 1998-04-23 16:45:42 | Re: [HACKERS] Re: [INTERFACES] retrieving varchar size |