Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site picuxa.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!whuxcc!lcuxlm!whuxl!whuxp!picuxa!warren From: warren@picuxa.UUCP (Warren Burstein) Newsgroups: net.unix-wizards Subject: size of text/data space of running process Message-ID: <149@picuxa.UUCP> Date: Wed, 6-Aug-86 16:58:52 EDT Article-I.D.: picuxa.149 Posted: Wed Aug 6 16:58:52 1986 Date-Received: Sat, 9-Aug-86 02:11:00 EDT Distribution: net Organization: AT&T Information Systems, Parsippany N.J. Lines: 24 Keywords: SYS V How can one determine the amount of space taken up by a process, broken up into text and data? What is really wanted is the total amount of core that will be taken up by many copies of a shared-text process. If you just add up the SZ's from "ps" you count the text n times. I read the SYS V source to ps, it seems it used to get this info from the u structure on the pdp11 but no more, alas. One suggestion is to get the text size from the "size" command and assume that the rest of SZ is data (accounting for page size). Does this work? thanks in advance warren -- _ __ __ |/ \/ \ |___|___|/ | | | /