All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Redelings I <bredelin@ucla.edu>
To: linux-mm@kvack.org
Subject: Re: [PATCH][RFC] appling preasure to icache and dcache
Date: Tue, 03 Apr 2001 08:03:12 -0700	[thread overview]
Message-ID: <3AC9E630.58A4542D@ucla.edu> (raw)

Hi, I'm glad somebody is working on this!  VM-time seems like a pretty
useful concept.

	I think you have a bug in your patch here: 

+       if (base > pages)       /* If the cache shrunk reset base,  The
cache
+               base = pages;    * growing applies preasure as does
expanding
+       if (free > old)          * free space - even if later shrinks */
+               base -= (base>free-old) ? free-old : base;

It looks like you unintentionally commented out two lines of code?

	I have been successfully running your patch.  But I think it needs
benchmarks.  At the very least, compile the kernel twice w/o and twice
w/ your patch and see how it changes the times.  I do not think I will
have time to do it myself anytime soon unfortunately.
	I have a 64Mb RAM machine, and the patch makes the system feel a little
bit slower when hitting the disk.  BUt that is subjective...

-BenRI
-- 
"...assisted of course by pride, for we teach them to describe the
 Creeping Death, as Good Sense, or Maturity, or Experience." 
- "The Screwtape Letters"
Benjamin Redelings I      <><     http://www.bol.ucla.edu/~bredelin/
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

             reply	other threads:[~2001-04-03 16:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-03 15:03 Benjamin Redelings I [this message]
2001-04-03 20:38 ` [PATCH][RFC] appling preasure to icache and dcache Ed Tomlinson
  -- strict thread matches above, loose matches on Subject: below --
2001-04-02 12:42 Ed Tomlinson
2001-04-02 12:42 ` Ed Tomlinson
2001-04-02 12:58 ` Ed Tomlinson
2001-04-02 12:58   ` Ed Tomlinson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3AC9E630.58A4542D@ucla.edu \
    --to=bredelin@ucla.edu \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.