From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,bc60e23583aad462 X-Google-Attributes: gid1164f8,public From: ron@topaz.sensor.com (Ron Natalie) Subject: Re: OMAGIC vs. NMAGIC formats Date: 1995/07/18 Message-ID: <3ugluv$e1m@topaz.sensor.com>#1/1 X-Deja-AN: 106428595 references: <3ugho6$ov3@senator-bedfellow.MIT.EDU> organization: Sensor Systems newsgroups: comp.sys.dec Jonathan Litt (littlitt@ATHENA.MIT.EDU) wrote: : Hello, : The man page for the Ultrix provided ld(1) discusses the difference : between OMAGIC binaries (with writable, non-sharable text sections) : and NMAGIC binaries (with read-only, sharable text sections). It also : discusses ZMAGIC files, which it doesn't really explain. I have a : few questions concerning these options: : * Which is the default? : * If an OMAGIC binary forks in Ultrix 4.2A, are the text pages shared : with parent process? Are the pages copy-on-write? ZMAGIC I would suspect is the default. (demand loaded text segments) the O and N modes are left over from the old PDP-11 days and never much used on machines with paging. The text pages in the read only versions (N and O) were always shared. In the OMAGIC cases they were never shared. : I'd like to know which format to choose that would save me the most : memory in a fork-on-connect network deamon. Thanks for any info. Machines with smarter paging architectures and kernel developers do fork of data segments with copy on write. I know for sure that the VAX's never did this and I doubt that spim boxes did either. You may want to look up the "vfork" routine which was the kludge to get around copying large data segments when doing forks followed by exec's. -Ron