Article View: comp.sys.sun
Article #8456getrusage gives inaccurate resident set size ?
From: Subhendu Ghatak
Date: Wed, 05 Jun 1991 14:17
Date: Wed, 05 Jun 1991 14:17
21 lines
1306 bytes
1306 bytes
Hello, I need to use getrusage() to measure the working set size of a program. The getrusage() man page says that "The way resident set size is calculated is an approximation, and could misrepresent the true resident set size" 1. How exactly is the resident set size calculated by getrusage() ? 2. Why might this be a misrepresentation of the true resident set size ? 3. If I take a number of readings and then take the mean, would that be a better approximation of the true resident set size ? Thanks for your interest. Could the answer, if one is forthcoming, please be e-mailed to ghatak@cs.utk.edu please ? That would be appreciated. But a post on this bulletin board is fine too. I will peek in here every now and then. With regards to all, Subhendu Ghatak ghatak@cs.utk.edu
Technical Details
Message-ID:
<3704@brchh104.bnr.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: ghatak@cs.utk.edu (Subhendu Ghatak) Newsgroups: comp.sys.sun Subject: getrusage gives inaccurate resident set size ? Keywords: No Digest Subjects in Unmoderated Mode Message-ID: <3704@brchh104.bnr.ca> Date: 5 Jun 91 14:17:00 GMT Sender: news@brchh104.bnr.ca Organization: Sunspots, Pseudo-Unmoderated Lines: 24 Approved: sun-spots@rice.edu X-Original-Date: Mon, 3 Jun 91 23:54:41 GMT