public inbox for [email protected]
 help / color / mirror / Atom feed
* Multiple mmap/mprotect/munmap operations in a batch?
@ 2020-04-23  8:19 Josh Triplett
  2020-04-23 15:11 ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: Josh Triplett @ 2020-04-23  8:19 UTC (permalink / raw)
  To: io-uring

What would it take for io_uring to support mmap, mprotect, and munmap
operations?

What would it take to process a batch of such operations efficiently
without repeatedly poking mmap_sem and such?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Multiple mmap/mprotect/munmap operations in a batch?
  2020-04-23  8:19 Multiple mmap/mprotect/munmap operations in a batch? Josh Triplett
@ 2020-04-23 15:11 ` Jens Axboe
  2020-04-24 18:21   ` Ed Baunton
  0 siblings, 1 reply; 3+ messages in thread
From: Jens Axboe @ 2020-04-23 15:11 UTC (permalink / raw)
  To: Josh Triplett, io-uring

On 4/23/20 2:19 AM, Josh Triplett wrote:
> What would it take for io_uring to support mmap, mprotect, and munmap
> operations?

Not very much, wiring up something like madvise as an example:

https://git.kernel.dk/cgit/linux-block/commit/?id=c1ca757bd6f4632c510714631ddcc2d13030fe1e

> What would it take to process a batch of such operations efficiently
> without repeatedly poking mmap_sem and such?

Probably just a bit of refactoring, to enable calling the needed helpers
with the mmap_sem already held.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Multiple mmap/mprotect/munmap operations in a batch?
  2020-04-23 15:11 ` Jens Axboe
@ 2020-04-24 18:21   ` Ed Baunton
  0 siblings, 0 replies; 3+ messages in thread
From: Ed Baunton @ 2020-04-24 18:21 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Josh Triplett, io-uring

Is there any restriction as to what calls shouldn't be covered with
io_uring? I see the scope is growing over time. For example would
directory operations be appropriate?

Ed

On Thu, 23 Apr 2020 at 11:13, Jens Axboe <[email protected]> wrote:
>
> On 4/23/20 2:19 AM, Josh Triplett wrote:
> > What would it take for io_uring to support mmap, mprotect, and munmap
> > operations?
>
> Not very much, wiring up something like madvise as an example:
>
> https://git.kernel.dk/cgit/linux-block/commit/?id=c1ca757bd6f4632c510714631ddcc2d13030fe1e
>
> > What would it take to process a batch of such operations efficiently
> > without repeatedly poking mmap_sem and such?
>
> Probably just a bit of refactoring, to enable calling the needed helpers
> with the mmap_sem already held.
>
> --
> Jens Axboe
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-24 18:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-23  8:19 Multiple mmap/mprotect/munmap operations in a batch? Josh Triplett
2020-04-23 15:11 ` Jens Axboe
2020-04-24 18:21   ` Ed Baunton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox