[comp.sys.sgi] Gnu Emacs using shared memory -- request

russell@ccu1.aukuni.ac.nz (Russell J Fulton;ccc032u) (03/04/91)

Does anybody have a version of Gnu emacs for a 4D that uses shared memory.

Or more to the point a makefile to build such a beast!

My understanding of how shared memory works on the SGI (or any SYS V) system
is some what shaky. From what I gather from the manual you have to divide up
the virtual memory space among your applications that use shared memory. We
had to do this on our IBM VM system so I am familiar with this.(The catch
with VM was that you only have 16MB of virtual memory, try mapping the 
operating system, SAS and several compilers into that and still leave some
for users to run programs in :-() 

Any way you always have to fiddle 
installation of programs to make certain that the addresses allocated don't
conflict with anything you have already defined.

I didn't do this when I installed gnu emacs so I assume that it does *not*
use shared memory by default. If I have this all wrong somebody please 
enlighten me.

Thanks, Russell.

-- 
Russell Fulton, Computer Center, University of Auckland, New Zealand.
<rj_fulton@aukuni.ac.nz>

russell@ccu1.aukuni.ac.nz (Russell J Fulton;ccc032u) (03/04/91)

Oops... In my previous article I used the term 'shared memory' in a incorrect
sense. What I meant was shared libraries. I had forgotten that SYS V has an
IPC mechanism called shared memory. 

What I want is a mechanism by which many users of a program (Emacs) use a
single copy of the code in memory and have separate data segments.

Cheers, Russell.

-- 
Russell Fulton, Computer Center, University of Auckland, New Zealand.
<rj_fulton@aukuni.ac.nz>

rpw3@rigden.wpd.sgi.com (Rob Warnock) (03/04/91)

In article <1991Mar4.022153.26544@ccu1.aukuni.ac.nz>
russell@ccu1.aukuni.ac.nz (Russell J Fulton;ccc032u) writes:
+---------------
| Oops... In my previous article I used the term 'shared memory' in a incorrect
| sense. What I meant was shared libraries. I had forgotten that SYS V has an
| IPC mechanism called shared memory. 
| 
| What I want is a mechanism by which many users of a program (Emacs) use a
| single copy of the code in memory and have separate data segments.
+---------------

This is the automatic default. From "man ld":

     -z   Arrange that the process pages are loaded on demand from the
          resulting executable file (0413, or ZMAGIC, format) rather than
          preloaded, and the text pages shared among all users. This is the
          default.

-Rob

-----
Rob Warnock, MS-1L/515		rpw3@sgi.com		rpw3@pei.com
Silicon Graphics, Inc.		(415)335-1673		Protocol Engines, Inc.
2011 N. Shoreline Blvd.
Mountain View, CA  94039-7311