home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / misc / 3968 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.0 KB

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