linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: sct@redhat.com
Cc: sim@stormix.com, jgarzik@mandrakesoft.com, riel@nl.linux.org,
	andrea@suse.de, linux-mm@kvack.org, bcrl@redhat.com,
	linux-kernel@vger.rutgers.edu
Subject: Re: [PATCH] 2.3.99-pre6-3+  VM rebalancing
Date: Wed, 26 Apr 2000 08:25:59 -0700	[thread overview]
Message-ID: <200004261525.IAA13973@pizda.ninka.net> (raw)
In-Reply-To: <20000426162353.O3792@redhat.com> (sct@redhat.com)

   > Instead of talk, I'll show some code :-)  The following is the
   > anon layer I implemented for 2.3.x in my hacks.

   OK --- I'm assuming you allow all of these address spaces to act as 
   swapper address spaces for the purpose of the swap cache? 

Essentially, this is how it works yes.

   This looks good, do you have the rest of the VM changes in a usable
   (testable) state?

No, this is why I haven't posted the complete patch for general
consumption.  It's in an "almost works" state, very dangerous,
and I don't even try leaving single user mode when I'm testing
it :-)))

   On fork(), I assume you just leave multiple vmas attached to the
   same address space?  With things like mprotect, you'll still have a
   list of vmas to search for in this design, I'd think.

At fork, the code which copies the address space just calls
"anon_dup()" for non-NULL vma->vm_anon, to clone the anon_area in the
child's VMA.  anon_dup adds a new VMA to the mapping->i_mmap list and
bumps the anon_area reference count.

Actually, come to think of it, the anon_area reference count is
superfluous, because anon->mapping.i_mmap being NULL is equivalent to
the count going to zero.  Superb, I can just kill that special
anon_area structure and use "struct address_space *vm_anon;" in the
vm_area_struct.

I'll try to clean up and stabilize my changes and post a patch
in the next few days.

Later,
David S. Miller
davem@redhat.com
--
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:[~2000-04-26 15:25 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-23  2:08 Rik van Riel
2000-04-25  1:25 ` Simon Kirby
2000-04-25 15:09   ` Rik van Riel
2000-04-25 15:59     ` Andrea Arcangeli
2000-04-25 17:20       ` Rik van Riel
2000-04-25 18:36         ` Simon Kirby
2000-04-25 18:59           ` Jeff Garzik
2000-04-25 19:06             ` Simon Kirby
2000-04-25 19:34               ` Rik van Riel
2000-04-26 11:01               ` Stephen C. Tweedie
2000-04-26 11:15                 ` Rik van Riel
2000-04-26 12:29                   ` Stephen C. Tweedie
2000-04-26 12:45                     ` David S. Miller
2000-04-26 11:25                 ` David S. Miller
2000-04-26 13:00                   ` Stephen C. Tweedie
2000-04-26 13:11                     ` David S. Miller
2000-04-26 15:23                       ` Stephen C. Tweedie
2000-04-26 15:25                         ` David S. Miller [this message]
2000-04-26 16:09                           ` Stephen C. Tweedie
2000-04-27 20:28                           ` Simon Kirby
2000-04-27 22:32                           ` Jamie Lokier
2000-04-26 13:46                   ` Rik van Riel
2000-04-26 14:33                     ` David S. Miller
2000-04-26 16:31                       ` Andi Kleen
2000-04-26 15:28                         ` David S. Miller
2000-04-26 15:41                           ` Andi Kleen

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=200004261525.IAA13973@pizda.ninka.net \
    --to=davem@redhat.com \
    --cc=andrea@suse.de \
    --cc=bcrl@redhat.com \
    --cc=jgarzik@mandrakesoft.com \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=linux-mm@kvack.org \
    --cc=riel@nl.linux.org \
    --cc=sct@redhat.com \
    --cc=sim@stormix.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