home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!agate!linus!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.sys.sun.misc
- Subject: Re: Too much memory
- Date: 27 Aug 1992 16:07:37 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 17
- Message-ID: <17iuk9INNi8s@early-bird.think.com>
- References: <1992Aug26.165257.5891@xilinx.com>
- NNTP-Posting-Host: telecaster.think.com
-
- In article <1992Aug26.165257.5891@xilinx.com> holen@xilinx.com (Victor A. Holen ) writes:
- >Lets say I have 32Mb in my sparc-2 sun, but I would like to test the
- >performance of a program in a 16 Mb configuration. Any [reasonable]
- >sugestions ? Thanks.
-
- Write a program that mallocs 16Mb, calls plock(2) to lock its data segment
- into physical memory memory, and then goes to sleep. That 16mb will be
- unavailable to any other process, so you will effectively have reduced the
- physical memory of the system.
-
- Naturally, this program needs to run as root.
-
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-