[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPNVh5dsN0LPHg6TJ_MO2XKtpTEe0n4Y6+HjwERJPSrb2J0cbg@mail.gmail.com>
Date: Fri, 10 Sep 2021 08:18:10 -0700
From: Peter Oskolkov <posk@...gle.com>
To: Prakash Sangappa <prakash.sangappa@...cle.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-api <linux-api@...r.kernel.org>
Cc: Ingo Molnar <mingo@...hat.com>, Paul Turner <pjt@...gle.com>,
Jann Horn <jannh@...gle.com>, Peter Oskolkov <posk@...k.io>
Subject: Fwd: [RESEND RFC PATCH 0/3] Provide fast access to thread specific data
On Wed, Sep 8, 2021 at 5:16 PM Prakash Sangappa
<prakash.sangappa@...cle.com> wrote:
>
> Including liunx-kernel..
>
> Resending RFC. This patchset is not final. I am looking for feedback on
> this proposal to share thread specific data for us in latency sensitive
> codepath.
Hi Prakash,
I'd like to add here that Jann and I have been discussing a similar
feature for my UMCG patchset:
https://lore.kernel.org/lkml/CAG48ez0mgCXpXnqAUsa0TcFBPjrid-74Gj=xG8HZqj2n+OPoKw@mail.gmail.com/
In short, due to the need to read/write to the userspace from
non-sleepable contexts in the kernel it seems that we need to have some
form of per task/thread kernel/userspace shared memory that is pinned,
similar to what your sys_task_getshared does.
Do you think your sys_task_getshared can be tweaked to return an
arbitrarily-sized block of memory (subject to overall constraints)
rather than a fixed number of "options"?
On a more general note, we have a kernel extension internally at
Google, named "kuchannel", that is similar to what you propose here:
per task/thread shared memory with counters and other stat fields that
the kernel populates and the userspace reads (and some additional
functionality that is not too relevant to the discussion).
Thanks,
Peter
[...]
Powered by blists - more mailing lists