* Vectored syscalls Was: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster
@ 2020-07-08 15:16 René Rebe
2020-07-08 15:38 ` Greg Kroah-Hartman
0 siblings, 1 reply; 3+ messages in thread
From: René Rebe @ 2020-07-08 15:16 UTC (permalink / raw)
To: linux-kernel; +Cc: Greg Kroah-Hartman, viro
Hey there,
maybe instead of this rather specific, niche readfile syscall, would it not be beneficial
to allow issuing any group or bundle of several arbitrary system calls so this could also
be used to speed up other, more demanding high performance applications that need
a bit more than just readfile()?
An iImplementation could use some SYSCALLV syscall taking some io_uring like
structure with a list of flags, syscalls and arguments, so that this case could be submitted
as something like (illustration purposes only):
{
{ABORT_ON_ERROR, OPEN, …},
{RET_TO_ARG1, READ, …},
{0, CLOSE, …},
}
I hope that sounds useful,
René Rebe
--
ExactCODE GmbH, Lietzenburger Str. 42, DE-10789 Berlin, https://exactcode.com
https://exactscan.com | https://ocrkit.com | https://t2sde.org | https://rene.rebe.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Vectored syscalls Was: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster
2020-07-08 15:16 Vectored syscalls Was: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster René Rebe
@ 2020-07-08 15:38 ` Greg Kroah-Hartman
2020-07-08 15:45 ` René Rebe
0 siblings, 1 reply; 3+ messages in thread
From: Greg Kroah-Hartman @ 2020-07-08 15:38 UTC (permalink / raw)
To: René Rebe; +Cc: linux-kernel, viro
On Wed, Jul 08, 2020 at 05:16:41PM +0200, René Rebe wrote:
> Hey there,
>
> maybe instead of this rather specific, niche readfile syscall, would it not be beneficial
> to allow issuing any group or bundle of several arbitrary system calls so this could also
> be used to speed up other, more demanding high performance applications that need
> a bit more than just readfile()?
Why not just use io_uring for that for I/O calls, that's what it is
designed for.
More "generic" syscall batching always ends up falling down in
complexity anytime anyone tries it. Good luck!
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Vectored syscalls Was: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster
2020-07-08 15:38 ` Greg Kroah-Hartman
@ 2020-07-08 15:45 ` René Rebe
0 siblings, 0 replies; 3+ messages in thread
From: René Rebe @ 2020-07-08 15:45 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-kernel
Hey,
> On 8. Jul 2020, at 17:38, Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote:
>
> On Wed, Jul 08, 2020 at 05:16:41PM +0200, René Rebe wrote:
>> Hey there,
>>
>> maybe instead of this rather specific, niche readfile syscall, would it not be beneficial
>> to allow issuing any group or bundle of several arbitrary system calls so this could also
>> be used to speed up other, more demanding high performance applications that need
>> a bit more than just readfile()?
>
> Why not just use io_uring for that for I/O calls, that's what it is
> designed for.
Sure, but last time I check you can’t queue open, read, close like this ;-)
> More "generic" syscall batching always ends up falling down in
> complexity anytime anyone tries it. Good luck!
Well, given latest hardware security vulnerabilities it looks more useful
for real world applications than the very special case of just readfile(2) for
small to medium sized files, … any maybe more worth the effort of a new
system call.
René
--
ExactCODE GmbH, Lietzenburger Str. 42, DE-10789 Berlin, https://exactcode.com
https://exactscan.com | https://ocrkit.com | https://t2sde.org | https://rene.rebe.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-08 15:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-08 15:16 Vectored syscalls Was: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster René Rebe
2020-07-08 15:38 ` Greg Kroah-Hartman
2020-07-08 15:45 ` René Rebe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox