From: Tejun Heo <tj@kernel.org>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: mszeredi@suse.cz, linux-kernel@vger.kernel.org,
fuse-devel@lists.sourceforge.net, polynomial-c@gentoo.org,
akpm@linux-foundation.org
Subject: Re: [fuse-devel] [PATCH] FUSE/CUSE: implement direct mmap support
Date: Fri, 12 Feb 2010 22:33:53 +0900 [thread overview]
Message-ID: <4B7558C1.2060405@kernel.org> (raw)
In-Reply-To: <E1NfsEw-0005AW-Nl@pomaz-ex.szeredi.hu>
Hello,
On 02/12/2010 06:55 PM, Miklos Szeredi wrote:
> On Fri, 12 Feb 2010, Tejun Heo wrote:
>> The offset problem can't be fixed. If you allow offsets to be
>> adjusted in any way, SHMLBA requirement is gonna be there and for CUSE
>> I think having the ability to adjust offset would be useful even if
>> multiple files are used. It can of course be hidden behind a
>> highlevel library API tho.
>
> Yes, offset issues can be fixed:
>
> 1) don't change vma->vm_pgoff
vma->vm_pgoff is peripheral unless you mean not adjusting offset at
all.
> 2) in fuse_mmap_out, call it dev_offset, dev_mmap_offset or whatever
Okay.
> 3) on the low level API don't make it an offset pointer that is
> adjusted. It's not an offset to be either left alone or changed
> (that would be the case if we wanted to allow adjustment to
> vma->vm_pgoff itself). It's about calclulating a completely new
> offset for the server side mmap.
And now I'm completely lost. So, we'll assign new offset (no matter
how it is called) but it doesn't have to be aligned? It seems like
we've been having this disconnection from the beginning. Can you
please describe how this can avoid aliasing issues between clients
sharing the same page? So, in 2), whatever it is called, the server
specifies a value, how is that value used?
>> Well, for CUSE, it has been delayed for a long time already so I don't
>> think there would be much harm in waiting a bit more. Any estimates
>> on how long it would take?
>
> Well if there were no higher priority things then I think I could do
> that in a month.
Alright, we'll be missing the upcoming merge window anyway, so no
biggie.
> I don't think I want a swap backed solution. There is already a
> backing for these maps and that is the userspace filesystem.
Yeap, sure. This was what I was talking about in the other reply.
Named files would probably be much easier to work with for the server
implementations.
> In fact most of what is required is already there in the form of the
> page cache. What I think would be interesting to be able to
> load/save contents of page cache from the server side, and not
> necessarily using server side mmaps (server side mmap is also a
> possibility, but not an easy one if it has to cooperate with the
> page cache).
Device mmap use cases might not work very well if the server can't
mmap directly.
> Basically all we need to ensure, is that the mmap API doesn't conflict
> with the above usage. The problem is that the details for the above
> usage will only come out with a real implementation.
Alright, I'll ping you in a while.
Thanks.
--
tejun
next prev parent reply other threads:[~2010-02-12 13:27 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-09 6:08 [PATCH] FUSE/CUSE: implement direct mmap support Tejun Heo
2010-02-09 14:59 ` [fuse-devel] " Miklos Szeredi
2010-02-10 11:22 ` Tejun Heo
2010-02-10 11:29 ` Miklos Szeredi
2010-02-10 11:56 ` Tejun Heo
2010-02-10 12:15 ` Miklos Szeredi
2010-02-10 12:35 ` Tejun Heo
2010-02-10 15:02 ` Miklos Szeredi
2010-02-10 23:43 ` Tejun Heo
2010-02-11 9:31 ` Miklos Szeredi
2010-02-11 9:51 ` Miklos Szeredi
2010-02-11 11:54 ` Tejun Heo
2010-02-11 12:25 ` Miklos Szeredi
2010-02-11 12:49 ` Tejun Heo
2010-02-11 12:46 ` Miklos Szeredi
2010-02-11 13:05 ` Tejun Heo
2010-02-11 13:08 ` Miklos Szeredi
2010-02-11 13:40 ` Tejun Heo
2010-02-11 11:47 ` Tejun Heo
2010-02-11 12:34 ` Miklos Szeredi
2010-02-11 12:56 ` Tejun Heo
2010-02-11 13:01 ` Miklos Szeredi
2010-02-11 13:30 ` Tejun Heo
2010-02-11 13:40 ` Miklos Szeredi
2010-02-11 13:58 ` Tejun Heo
2010-02-11 14:40 ` Miklos Szeredi
2010-02-12 0:07 ` Tejun Heo
2010-02-12 0:25 ` Tejun Heo
2010-02-12 9:55 ` Miklos Szeredi
2010-02-12 13:33 ` Tejun Heo [this message]
2010-02-12 13:53 ` Miklos Szeredi
2010-02-12 17:56 ` Tejun Heo
2010-02-10 11:36 ` Tejun Heo
2010-02-10 8:24 ` Goswin von Brederlow
2010-02-10 8:40 ` Miklos Szeredi
2010-02-10 8:58 ` Paul Schutte
2010-02-10 10:02 ` Paul Schutte
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=4B7558C1.2060405@kernel.org \
--to=tj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=fuse-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=mszeredi@suse.cz \
--cc=polynomial-c@gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox