From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 9 Jun 2008 17:08:06 -0700 From: Roman Shaposhnik In-reply-to: <2edb273d56588f8ab999de6f6bd75bac@terzarima.net> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-id: <1213056486.4280.1408.camel@work.sfbay.sun.com> MIME-version: 1.0 Content-type: text/plain Content-transfer-encoding: 7BIT References: <2edb273d56588f8ab999de6f6bd75bac@terzarima.net> Cc: digbyt@acm.org Subject: Re: [9fans] Laptop advice Topicbox-Message-UUID: b856b2f8-ead3-11e9-9d60-3106f5b1d025 On Mon, 2008-06-09 at 16:45 +0100, Charles Forsyth wrote: > > than a Cray, but Linux isn't *that* demanding is it? > > last week i added 1gb RAM to my previously 512mbyte lenovo (3000 N100) to stop > the linux system from thrashing. all i run directly is firefox and drawterm. > the system was fine at 512mbyte until a few weeks ago (when more updates > arrived). > > i could probably have got by with `only' 256mbyte or 512mbyte more but the > bigger memory card was hardly more expensive. Since we're on the subject of memory hogs: does anybody know a way for querying Linux or Solaris (or any OS for that matter) of what the *physical* pages correspond to and how many virtual pages (and in which processes) they map into. The only utility that comes close is memstat: http://www.fifi.org/cgi-bin/man2html/usr/share/man/man1/memstat.1.gz but I don't quite believe its output, since it relies on the second hand information available from /proc/*/map and a really awkward mapping process. Thanks, Roman.