Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!homxb!mhuxt!mhuxm!mhuxo!ulysses!allegra!mit-eddie!husc6!hao!ames!oliveb!sun!gorodish!guy From: guy@gorodish.UUCP Newsgroups: comp.unix.wizards Subject: Re: Sun Unix `time' command Keywords: 3.2 vs. 3.4, memory usage Message-ID: <39812@sun.uucp> Date: 23 Jan 88 23:16:34 GMT References: <171@telesoft.UUCP> Sender: news@sun.uucp Lines: 30 > In summary, it appears that the memory usage reported by the 3.4 version > of `time' is much larger that the amount reported by the 3.2 version for > execution of the same program under similar conditions. ... > 3.2: 0.7u 4.1s 0:06 76% 6+9k 20+1io 0pf+0w > 3.4: 0.9u 1.6s 0:04 58% 48+72k 35+3io 0pf+0w > Assuming the method of stat calculation in csh has remained the same between > releases, I suspect you'll get many, many mail messages containing completely incorrect explanations (this *is* USENET, after all), so here's the official scoop: The method of stat calculation *didn't* remain the same between releases. From the SCCS log of "/usr/src/bin/csh/sh.time.c", for a delta applied after the 3.2 release: ...Also fixed bug in amounts printed when time is set -- now takes system page size into account. You'll note that the numbers in 3.4 are 8 times bigger than the numbers in 3.2. Note also that the (software) page size on a VAX is 1KB, while the page size on a Sun-3 is 8KB. The 3.2 "csh" used the straight 4.3BSD code, which "knew" that "pages" and "Kbytes" were the same thing; the 3.4 "csh" had this bug fixed. Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com