From: kanoj@google.engr.sgi.com (Kanoj Sarcar)
To: Christoph Rohland <hans-christoph.rohland@sap.com>
Cc: "Stephen C. Tweedie" <sct@redhat.com>,
Linus Torvalds <torvalds@transmeta.com>,
linux-mm@kvack.org, Ingo Molnar <mingo@chiara.csoma.elte.hu>
Subject: Re: [RFC] [RFT] Shared /dev/zero mmaping feature
Date: Wed, 8 Mar 2000 10:57:28 -0800 (PST) [thread overview]
Message-ID: <200003081857.KAA74251@google.engr.sgi.com> (raw)
In-Reply-To: <qwwya7tnwcz.fsf@sap.com> from "Christoph Rohland" at Mar 08, 2000 07:35:24 PM
>
> kanoj@google.engr.sgi.com (Kanoj Sarcar) writes:
>
> > I am not sure why you think the /dev/zero code is a workaround on
> > top of shm. A lot of code and mechanisms are easily sharable between
> > shm and /dev/zero, since they are, as I pointed out, anonymous
> > shared pages. The only differences are when the data structures are
> > torn down, and which processes may attach to the segments.
>
> Because I think the current shm code should be redone in a way that
> shared anonymous pages live in the swap cache. You could say the shm
> code is a workaround :-)
>
No arguments there :-) But it seems a little ambitious to me to
implement shmfs, dev-zero and rework the swapcache at the same time.
We are probably on the right track, having done /dev/zero, getting
done with shmfs. Then, if we want to take the risk, we can improve
the core shm/swapcache interactions in 2.3/2.4/2.5.
> > Btw, implementing /dev/zero using shm code mostly is _quite_ easy,
> > that's how the code has been since 2.3.48. Even integrating with
> > shmfs has been pretty easy, as you have seen in the patches I have
> > CCed you on. The harder part is to look towards the future and do
> > what Linus suggested, namely associate each mapping with an inode so
> > in the future the inodecache might possibly be used to manage the
> > shm pages. As you know, I sent out a patch for that yesterday.
>
> In my opinion this is one of two orthogonal steps. shm fs targets the
> better integration in the file system semantics.
>
> > Its completely okay by me to take in a dev-zero/shmfs integration
> > patch that is not perfect wrt /dev/zero, as I have indicated to
> > you and Linus, just so that the shmfs work gets in. I can fix
> > minor problems with the /dev/zero code as they come up.
> >
> > What sct suggests is quite involved, as he himself mentions. Just
> > implementing /dev/zero is probably not a good reason to undertake
> > it.
>
> But IMHO reworking shm based on the /dev/zero stuff would be a good
> reason to do the /dev/zero stuff right. That's all I wanted to say in
> my last mail.
>
> Perhaps I am a little bit too opposed to these changes because I have
> seen too many patches thrown on the shm code during the 2.3 cycle
> which were plain buggy and nobody cared. Most of my kernel work since
> some time is doing quite stupid tests on the shm code.
>
> BTW: I am just running these tests on your patch and it seems to work
> quite well. (I will let it run over night) If it survives that I will
> also throw some quite complicated /dev/zero tests on it later.
Great! Is there a way to capture tests written by individual developers
and testers and have them be shared, so everyone can use them (when there
are no licensing/copyright issues)? I would definitely like to get your
test programs and throw them at the kernel myself. Lets talk offline if you
are willing to share your tests.
Kanoj
>
> Greetings
> Christoph
> --
> 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/
>
--
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/
next prev parent reply other threads:[~2000-03-08 18:57 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-25 23:08 [RFC] [RFT] Shared /dev/zero mmaping feature Kanoj Sarcar
2000-02-26 16:38 ` Linus Torvalds
2000-02-26 21:47 ` Kanoj Sarcar
2000-02-29 10:54 ` Christoph Rohland
2000-02-29 18:30 ` Kanoj Sarcar
2000-03-01 12:08 ` Christoph Rohland
2000-03-01 17:34 ` Kanoj Sarcar
2000-03-01 17:55 ` Christoph Rohland
2000-03-01 18:18 ` Kanoj Sarcar
2000-03-01 19:42 ` Christoph Rohland
2000-03-01 20:09 ` Kanoj Sarcar
2000-03-06 22:43 ` Stephen C. Tweedie
2000-03-06 23:01 ` Kanoj Sarcar
2000-03-08 12:02 ` Christoph Rohland
2000-03-08 17:51 ` Kanoj Sarcar
2000-03-08 18:35 ` Christoph Rohland
2000-03-08 18:48 ` Linus Torvalds
2000-03-08 18:57 ` Kanoj Sarcar [this message]
2000-03-09 18:15 ` Christoph Rohland
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=200003081857.KAA74251@google.engr.sgi.com \
--to=kanoj@google.engr.sgi.com \
--cc=hans-christoph.rohland@sap.com \
--cc=linux-mm@kvack.org \
--cc=mingo@chiara.csoma.elte.hu \
--cc=sct@redhat.com \
--cc=torvalds@transmeta.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 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.