From: ebiederm+eric@ccr.net (Eric W. Biederman)
To: Ingo Molnar <mingo@chiara.csoma.elte.hu>
Cc: "Eric W. Biederman" <ebiederm+eric@ccr.net>,
Christoph Rohland <hans-christoph.rohland@sap.com>,
"Stephen C. Tweedie" <sct@redhat.com>,
fxzhang@chpc.ict.ac.cn, "linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Re: Why don't we make mmap MAP_SHARED with /dev/zero possible?
Date: 03 Nov 1999 12:55:14 -0600 [thread overview]
Message-ID: <m1iu3jxv59.fsf@flinx.hidden> (raw)
In-Reply-To: Ingo Molnar's message of "Wed, 3 Nov 1999 17:46:59 +0100 (CET)"
Ingo Molnar <mingo@chiara.csoma.elte.hu> writes:
> On 3 Nov 1999, Eric W. Biederman wrote:
>
> > Not really. I played with the idea, and the only really tricky aspect I saw
> > was how to write a version of copy_to/from_user that would handle the bigmem
> > case. Because kmap ... copy .. kunmap isn't safe as you can sleep due
> > to a page fault.
>
> yes, i implemented a new 'kaddr = kmap_permanent(page)'
> 'kunmap_permanent(kaddr)' interface which is schedulable. This is now
> getting used in exec.c (argument pages can be significantly big) and the
> page cache.
Do you have a patch around that the rest of us can look at?
> that is a much more problematic issue, especially if you consider future
> 64-bit PCI DMAing. What i did was to change bh->b_data to bh->b_page,
> which b_page is a 32-bit value describing the physical address of the
> buffer, in 512-byte units. This also ment changing bazillion places where
> b_data was used (lowlevel fs, buffer-cache and block layer, device
> drivers) ... But it's working just fine on my box:
Click.
Which lets up access up to 2Terabytes of ram, on a 32 bit machine.
And you have to do something like that or you can't put buffers on
those high pages even temporarily. I missed that trick.
> > I'll probably get back to shmfs in a kernel version or two.
>
> looking forward to test it, i believe we could get some spectacular
> benchmark numbers with that thing and 2.4 ...
We'll see. I just want to get it functional first.
There are no binary compatibility constrainsts so after it works
any optimizations are easy :)
Eric
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
next prev parent reply other threads:[~1999-11-03 18:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <qwwzox6l3nh.fsf@sap.com>
1999-11-03 14:29 ` Why don't we make mmap MAP_SHARED with /dev/zero possible? Ingo Molnar
1999-11-03 14:50 ` Eric W. Biederman
1999-11-03 16:46 ` Ingo Molnar
1999-11-03 18:55 ` Eric W. Biederman [this message]
1999-11-03 19:16 ` Eric W. Biederman
1999-11-03 20:24 ` Ingo Molnar
1999-11-03 19:32 ` Benjamin C.R. LaHaise
1999-11-03 21:41 ` Ingo Molnar
1999-10-26 1:57 fxzhang
1999-10-26 7:35 ` Christoph Rohland
1999-10-26 12:05 ` Stephen C. Tweedie
1999-10-26 12:07 ` Stephen C. Tweedie
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=m1iu3jxv59.fsf@flinx.hidden \
--to=ebiederm+eric@ccr.net \
--cc=fxzhang@chpc.ict.ac.cn \
--cc=hans-christoph.rohland@sap.com \
--cc=linux-mm@kvack.org \
--cc=mingo@chiara.csoma.elte.hu \
--cc=sct@redhat.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.