home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / sci / math / numanal / 2531 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.8 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!ds2.uh.cwru.edu!muzic
  2. From: muzic@ds2.uh.cwru.edu (Ray Muzic)
  3. Newsgroups: sci.math.num-analysis
  4. Subject: MATLAB memory problems
  5. Message-ID: <muzic.714762125@ds2.uh.cwru.edu>
  6. Date: 25 Aug 92 17:02:05 GMT
  7. Article-I.D.: ds2.muzic.714762125
  8. Sender: news@usenet.ins.cwru.edu
  9. Organization: Case Western Reserve University, Cleveland, Ohio, (USA)
  10. Lines: 34
  11. Nntp-Posting-Host: ds2.uh.cwru.edu
  12.  
  13.  
  14. We have noticed a very undesirable behavior of MATLAB with respect to
  15. memory managment.  This occurs on both Ultrix MATLAB (Ultrix 4.2, MATLAB
  16. 3.5f) and VAX/VMS MATLAB (VMS 5.4-3, MATLAB 3.5f).
  17.  
  18. AS we understand it, for each MATLAB assignment and for every expression or
  19. subexpression, MATLAB allocates memory in which to store the results.
  20. MATLAB, however, does not return the memory to the system until one exits
  21. MATLAB. This in itself is not all that bad as it could conceiveably be done
  22. in the interest of efficiency.  What is unforgivable, however, is that MATLAB
  23. does not re-use this memory!
  24.  
  25. To see this for yourself, define a 512 by 512 matrix and save it to disk.
  26. Then load the matrix into memory several times.  Between successive loads,
  27. show memory (Ultrix: 'ps -au' or 'vmstat', VMS: 'show memory') allocation
  28. and you will probabaly see it increase with each successive load.
  29.  
  30. Does anyone else observe this behavior on other platforms?
  31.  
  32.  
  33. Ray Muzic
  34. Ed Ellert
  35. Don Johann
  36. Gary Muswick
  37.  
  38.  
  39.  
  40.  
  41. -- 
  42. * Ray Muzic, Jr., Ph.D. | "I try not to think, it slows the progress." - rfm2 *
  43. * muzic@ds2.uh.cwru.edu | Biomedical Engr, CWRU & Image Analysis Ctr, UH  __o *
  44. * Voice: (216)-844-3543 | Div Nuclear Radiology, Univ Hosp of Cleveland  -\<, *
  45. * Fax: (216)-844-3106   | 2074 Abington Rd, Cleveland, OH, 44106, USA....O/ O *
  46.