From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,18e024cf577f2c8f,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-05-26 10:42:43 PST Newsgroups: comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!demon!uknet!dcs.gla.ac.uk!mattson From: mattson@dcs.gla.ac.uk (Jim Mattson) Subject: Major OSF/1 V2.0 performance problems (vm?) Message-ID: Organization: Computing Science Dept., Glasgow University, Glasgow, Scotland Date: Thu, 26 May 1994 12:47:16 GMT We just recently acquired a couple of DEC alphas which are now running OSF1 V2.0. We tend to do a lot of development work on a rather large compiler with rather large heap requirements. Immediately after recompilation, the wall clock time for running the compiler is atrocious, especially for larger heap sizes. The machines have 128Mb of physical memory and around 350Mb of swap space. With very little running, typical times for a brand new 23Mb executable (13Mb real size, 10Mb symbol table) are: 48Mb heap: 19 seconds (17 user, 1 system) 64Mb heap: 64 seconds (16 user, 9 system) 96Mb heap: 153 seconds (15 user, 11 system) Running the same program again, within a short time interval: 48Mb heap: 19 seconds (17 user, 1 system) 64Mb heap: 17 seconds (16 user, 1 system) 96Mb heap: 17 seconds (15 user, 2 system) What could it possibly be doing on the first run? I know it's not waiting for the disk; it only takes .8 seconds to copy the executable from disk to disk (.2 seconds to copy it to /dev/null). The only real difference I can see in vmstat is that the number of interrupts peaks at 2K/sec in the slow cases, whereas it peaks at around 300/sec in the fast cases. Ps shows: F S UID PID PPID %CPU PRI NI RSS WCHAN 80808001 U 104 15483 15481 6.0 38 0 66M 5db160 Apparently, judging from the flags: SPAGV 0x00008000 Init data space on demand, from vnode Presumably, this is _initialized_ data from the executable, and not dynamically allocated heap...why would the larger heap sizes cause the process to spend more time in this state? Even if this did include the heap, we're spending 136 seconds to initialize roughly 100Mb of data space in the worst case. That's less than a megabyte a second. C'mon! Any ideas? --jim -- Jim Mattson Department of Computing Science, Glasgow University 17 Lilybank Gardens, Glasgow G12 8QQ Scotland +44 (41) 330-4984