Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!dptechno!dptechno.uucp From: dave@dptechno.uucp (Dave Lee) Newsgroups: comp.sys.hp Subject: The Real Scoop with Shared/Demand Load -- HELP !!! Keywords: shared demand-load Message-ID: <543@dptechno.UUCP> Date: 24 Jul 90 18:21:25 GMT Sender: dave@dptechno.UUCP Organization: D.P. Technology Corp. Camarillo California Lines: 42 System Info: HP-UX 7.0 -- HP9000/300 series (340,345,350,360) After reading the manual several times, under cc(1) , ld(1) , chatr(1) and others, I am very confused about the distinction of Shared and Demand Load. The chatr(1) man page implies that Shared and Demand load are mutually exclusive, ie. you can go from Shared to Demand load and back, but you cant turn on or off Shared and Demand load independantly. The cc(1) and ld(1) have different options for Shared (-n and -N) and Demand load (-q and -Q). This gets even more confusing when adding the sticky bit. My own limited performance analasis has proved inconclusive. My questions are: 1) If I want shared text among multiple processes running the same a.out file can I use "Demand Load" model ? 2) Does the sticky bit do anything for "Demand Load" executables ? I have a large X program (size= 1785024 + 58636 + 415476 = 2259136). This program may be running multiple coppies on the same system. However only about 10% of the program is used at any one time. I would like to have it Demand Load AND Shared. Startup is atleast 3 times as fast with demand load then shared. However, if I make the program shared and sticky, the startup time approaches demand load time for the 2nd startup. However, I would prefer not to use the sticky bit. Is Demand load AND Shared possible? I cannot find any diffinitive answer either way. Would anyone who knows what's going on here Please let me know. Email or post. Thanks a lot -- Dave Lee uunet!dptechno!dave