home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8302 < prev    next >
Encoding:
Text File  |  1992-08-14  |  1.4 KB  |  36 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!munnari.oz.au!uniwa!oreillym
  3. From: oreillym@tartarus.uwa.edu.au (Michael O'Reilly)
  4. Subject: Re: Shrinking buffer sizes...
  5. Message-ID: <1992Aug15.044301.27813@uniwa.uwa.edu.au>
  6. Sender: news@uniwa.uwa.edu.au (USENET News System)
  7. Nntp-Posting-Host: tartarus.uwa.edu.au
  8. Organization: University of Western Australia
  9. References: <16099@ucdavis.ucdavis.edu>
  10. Date: Sat, 15 Aug 1992 04:43:01 GMT
  11. Lines: 23
  12.  
  13. mayfield@saffron.cs.ucdavis.edu (Doug Mayfield) writes:
  14. : Howdy LINUXers,
  15. :     I have what may be a simple question:  In the file 
  16. : /usr/src/linux/fs/buffer.c there is a procedure called shrink_buffers
  17. : but I can not find the place where this function is invoked.  Is this
  18. : a function that was left in for some other purpose.  I was trying to
  19. : find a way to make the kernel stop using so many buffers and found
  20. : this function but no place where it is called.  
  21. :     Is there some reason for this or am I just not looking hard
  22. : enough???  Thanks in advance for any suggestions.
  23.  
  24. It is called from mm/swap.c. I don't think you actually want to be
  25. reducing the number of buffers. The number of buffers gets reduced
  26. automatically when the system runs out of memory. It then starts
  27. swapping and re-useing buffers as user memory.
  28.  
  29. The relevent routine is mm/swap.c::get_free_page(int priority);
  30.  
  31.  
  32. : ------------------------------------------------------------
  33. : Douglas B. Mayfield
  34.