linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: Manfred Spraul <manfred@colorfullife.com>
Cc: linux-mm@kvack.org
Subject: Re: [PATCH] modified memory_pressure calculation
Date: Mon, 28 May 2001 14:29:28 -0300 (BRT)	[thread overview]
Message-ID: <Pine.LNX.4.21.0105281425450.1204-100000@freak.distro.conectiva> (raw)
In-Reply-To: <3B10F351.6DDEC59@colorfullife.com>


On Sun, 27 May 2001, Manfred Spraul wrote:

> I think the current memory_pressure calculation is broken - at least
> memory_pressure does not contain the number of pages necessary in the
> inactive_clean_list to handle 1 second of allocations.
> 
> * if reclaim_page() finds a page that is Referenced, Dirty or Locked
> then it must increase memory_pressure.
> * I don't understand the purpose of the second ++ in alloc_pages().
> 
> What about the attached patch [vs. 2.4.5]? It's just an idea, untested.
> 
> If the behaviour is worse then we must figure out what memory_pressure
> actually is under the various workloads. AFAICS it has nothing to do
> with the number of memory allocations per second.

Pasting a part of your patch: 

@@ -363,6 +364,7 @@
                                (!page->buffers && page_count(page) >
1)) {
                        del_page_from_inactive_clean_list(page);
                        add_page_to_active_list(page);
+                       memory_pressure++;
                        continue;
                }
 
@@ -370,6 +372,7 @@
                if (page->buffers || PageDirty(page) || TryLockPage(page)) {
                        del_page_from_inactive_clean_list(page);
                        add_page_to_inactive_dirty_list(page);
+                       memory_pressure++;
                        continue;
                }
 


I disagree with the second hunk. 

memory_pressure is used to calculate the size of _both_ the inactive dirty
and clean lists. 

Since you're adding the page back to the inactive dirty list, you should
not increase memory_pressure.


--
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-mm.org/

  parent reply	other threads:[~2001-05-28 17:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-27 12:30 Manfred Spraul
2001-05-27 15:58 ` Rik van Riel
2001-05-27 17:44   ` Manfred Spraul
2001-05-27 17:51     ` Rik van Riel
2001-05-27 18:24       ` Manfred Spraul
2001-05-27 18:40         ` Rik van Riel
2001-05-28 17:29 ` Marcelo Tosatti [this message]
2001-05-28 19:20   ` Manfred Spraul
2001-05-28 18:07     ` Marcelo Tosatti

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=Pine.LNX.4.21.0105281425450.1204-100000@freak.distro.conectiva \
    --to=marcelo@conectiva.com.br \
    --cc=linux-mm@kvack.org \
    --cc=manfred@colorfullife.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox