From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] python and lua From: okamoto@granite.cias.osakafu-u.ac.jp MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-xyqctivywayzivpvttzqbbwssf" Message-Id: <20010108052708.3551D19A04@mail.cse.psu.edu> Date: Mon, 8 Jan 2001 14:26:53 +0900 Topicbox-Message-UUID: 47967184-eac9-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-xyqctivywayzivpvttzqbbwssf Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit >Try running a few instances of the following program > > for(i in `{seq 10}) > memeat -x 10000000 I tried this on our dual pentium(133MHz) without local disk jus now. swap area (/n/gabbroother/swap/trachyte) grew up to 40MB, and I stopped the program at that point. Nothing bad happened. I'll not try it on my notebook with local disk, because I know what happenes. :-) Kenji --upas-xyqctivywayzivpvttzqbbwssf Content-Type: message/rfc822 Content-Disposition: inline Received: from granite.cias.osakafu-u.ac.jp ([192.168.1.3]) by granite.cias.osakafu-u.ac.jp; Mon Jan 8 13:04:09 JST 2001 Received: from elmo.cias.osakafu-u.ac.jp (elmo.cias.osakafu-u.ac.jp [157.16.103.2]) by granite.cias.osakafu-u.ac.jp (8.9.3/8.9.3) with ESMTP id NAA11997; Mon, 8 Jan 2001 13:14:02 +0900 Received: from mail.cse.psu.edu (postfix@psuvax1.cse.psu.edu [130.203.4.6]) by elmo.cias.osakafu-u.ac.jp (8.9.3/3.7W-00112717) with ESMTP id NAA02760; Mon, 8 Jan 2001 13:14:28 +0900 (JST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.20.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 6337D19A00; Sun, 7 Jan 2001 23:14:09 -0500 (EST) Received: from plan9.cs.bell-labs.com (plan9.bell-labs.com [204.178.31.2]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id 3BCC3199D7 for <9fans@cse.psu.edu>; Sun, 7 Jan 2001 23:13:08 -0500 (EST) From: "Russ Cox" To: 9fans@cse.psu.edu Subject: Re: [9fans] python and lua MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010108041308.3BCC3199D7@mail.cse.psu.edu> Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Sun, 7 Jan 2001 23:12:50 -0500 > What kind of situations? > I asked this because I've never seen it. Usually a terminal booted from local disk can't sustain more than a few minutes of local disk swapping before the window system or kfs swaps in a bogus page and dies. Try running a few instances of the following program for(i in `{seq 10}) memeat -x 10000000 and sit back. This doesn't seem to happen when swapping to a network file server. Perhaps the timing is different. I suspect something in the x86 memory management code, although presotto says the carreras had similar problems. I spent a day this summer trying to find anything, but like everyone else came up empty handed. Instead, I moved more memory in from another machine and turned off swapping. On a laptop, of course, this is less of an option, but I don't run my laptop with swapping enabled either. I'd much rather see "no physical memory" and type ^t^t k. Russ g% cat memeat.c #include #include void main(int argc, char **argv) { int xflag=0; int i, n; char *p; ARGBEGIN{ case 'x': xflag=1; }ARGEND; n = atoi(argv[0]); p = malloc(n); memset(p, 0, n); i=0; for(;;) { sleep(1000+1000*(rand()%8)); if(xflag) memset(p, i++, n); } } g% --upas-xyqctivywayzivpvttzqbbwssf--