All of lore.kernel.org
 help / color / mirror / Atom feed
* need help for avoiding system calls while using URCU (Userspace RCU)
@ 2025-03-04  8:09 方锴 via lttng-dev
  2025-03-06 16:17 ` Kienan Stewart via lttng-dev
  0 siblings, 1 reply; 5+ messages in thread
From: 方锴 via lttng-dev @ 2025-03-04  8:09 UTC (permalink / raw)
  To: lttng-dev

[-- Attachment #1: Type: text/plain, Size: 528 bytes --]

Dear 

I have referenced your project, URCU (Userspace RCU), on GitHub, which is based on the QSBR model. However, I noticed that when using it in user mode, it makes system calls to enter the kernel. Could you please provide guidance on how to address this issue? I aim to achieve a pure user-mode implementation. Specifically, I would appreciate any insights or suggestions on avoiding system calls while still maintaining the functionality of the QSBR model in user space. Thank you very much for your time and assistance.



[-- Attachment #2: Type: text/html, Size: 1138 bytes --]

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

* Re: need help for avoiding system calls while using URCU (Userspace RCU)
  2025-03-04  8:09 need help for avoiding system calls while using URCU (Userspace RCU) 方锴 via lttng-dev
@ 2025-03-06 16:17 ` Kienan Stewart via lttng-dev
  2025-03-06 16:58   ` Mathieu Desnoyers via lttng-dev
  2025-03-08  9:16   ` 方锴 via lttng-dev
  0 siblings, 2 replies; 5+ messages in thread
From: Kienan Stewart via lttng-dev @ 2025-03-06 16:17 UTC (permalink / raw)
  To: 方锴, lttng-dev

Hi 方锴,

On 3/4/25 3:09 AM, 方锴 via lttng-dev wrote:

> I have referenced your project, URCU (Userspace RCU), on GitHub, which is based on the QSBR model. However, I 
noticed that when using it in user mode, it makes system calls to enter 
the kernel. Could you please provide guidance on how to address this issue?

Are there specific parts of the API that you need to be user-space only?

 > I aim to achieve a pure user-mode implementation. Specifically, I 
would appreciate any insights or suggestions on avoiding system calls 
while still maintaining the functionality of the QSBR model in user 
space. Thank you very much for your time and assistance.

Currently the locking is done using futexs, which are system calls. 
Those could potentially be replaced with a poll/retry system either in a 
different flavour of URCU or at build-time.

thanks,
kienan

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

* Re: need help for avoiding system calls while using URCU (Userspace RCU)
  2025-03-06 16:17 ` Kienan Stewart via lttng-dev
@ 2025-03-06 16:58   ` Mathieu Desnoyers via lttng-dev
  2025-03-08  9:18     ` 方锴 via lttng-dev
  2025-03-08  9:16   ` 方锴 via lttng-dev
  1 sibling, 1 reply; 5+ messages in thread
From: Mathieu Desnoyers via lttng-dev @ 2025-03-06 16:58 UTC (permalink / raw)
  To: Kienan Stewart, 方锴, lttng-dev

On 2025-03-06 11:17, Kienan Stewart via lttng-dev wrote:
> Hi 方锴,
> 
> On 3/4/25 3:09 AM, 方锴 via lttng-dev wrote:
> 
>> I have referenced your project, URCU (Userspace RCU), on GitHub, which 
>> is based on the QSBR model. However, I 
> noticed that when using it in user mode, it makes system calls to enter 
> the kernel. Could you please provide guidance on how to address this issue?
> 
> Are there specific parts of the API that you need to be user-space only?
> 
>  > I aim to achieve a pure user-mode implementation. Specifically, I 
> would appreciate any insights or suggestions on avoiding system calls 
> while still maintaining the functionality of the QSBR model in user 
> space. Thank you very much for your time and assistance.
> 
> Currently the locking is done using futexs, which are system calls. 

Clarification: the wait/wakeup between read-side and synchronize is done
using the futex system call. There is no locking on the read-side
per-se.

Thanks,

Mathieu

> Those could potentially be replaced with a poll/retry system either in a 
> different flavour of URCU or at build-time.
> 
> thanks,
> kienan


-- 
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com

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

* Re:Re: need help for avoiding system calls while using URCU (Userspace RCU)
  2025-03-06 16:17 ` Kienan Stewart via lttng-dev
  2025-03-06 16:58   ` Mathieu Desnoyers via lttng-dev
@ 2025-03-08  9:16   ` 方锴 via lttng-dev
  1 sibling, 0 replies; 5+ messages in thread
From: 方锴 via lttng-dev @ 2025-03-08  9:16 UTC (permalink / raw)
  To: Kienan Stewart; +Cc: lttng-dev

dear kienan<br/>Thank you for your guidance, I've found DKDP's URCU successfully avoids system calls. Grateful for your support!<br/>Best regards,<br/>fangkai
At 2025-03-07 00:17:34, "Kienan Stewart" <kstewart@efficios.com> wrote:
>Hi 方锴,
>
>On 3/4/25 3:09 AM, 方锴 via lttng-dev wrote:
>
>> I have referenced your project, URCU (Userspace RCU), on GitHub, which is based on the QSBR model. However, I 
>noticed that when using it in user mode, it makes system calls to enter 
>the kernel. Could you please provide guidance on how to address this issue?
>
>Are there specific parts of the API that you need to be user-space only?
>
> > I aim to achieve a pure user-mode implementation. Specifically, I 
>would appreciate any insights or suggestions on avoiding system calls 
>while still maintaining the functionality of the QSBR model in user 
>space. Thank you very much for your time and assistance.
>
>Currently the locking is done using futexs, which are system calls. 
>Those could potentially be replaced with a poll/retry system either in a 
>different flavour of URCU or at build-time.
>
>thanks,
>kienan

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

* Re:Re: need help for avoiding system calls while using URCU (Userspace RCU)
  2025-03-06 16:58   ` Mathieu Desnoyers via lttng-dev
@ 2025-03-08  9:18     ` 方锴 via lttng-dev
  0 siblings, 0 replies; 5+ messages in thread
From: 方锴 via lttng-dev @ 2025-03-08  9:18 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: lttng-dev

dear Mathieu<br/>  Thank you for your guidance, I've found DKDP's URCU successfully avoids system calls. Grateful for your support!<br/>Best regards,<br/>fangkai
At 2025-03-07 00:58:21, "Mathieu Desnoyers" <mathieu.desnoyers@efficios.com> wrote:
>On 2025-03-06 11:17, Kienan Stewart via lttng-dev wrote:
>> Hi 方锴,
>> 
>> On 3/4/25 3:09 AM, 方锴 via lttng-dev wrote:
>> 
>>> I have referenced your project, URCU (Userspace RCU), on GitHub, which 
>>> is based on the QSBR model. However, I 
>> noticed that when using it in user mode, it makes system calls to enter 
>> the kernel. Could you please provide guidance on how to address this issue?
>> 
>> Are there specific parts of the API that you need to be user-space only?
>> 
>>  > I aim to achieve a pure user-mode implementation. Specifically, I 
>> would appreciate any insights or suggestions on avoiding system calls 
>> while still maintaining the functionality of the QSBR model in user 
>> space. Thank you very much for your time and assistance.
>> 
>> Currently the locking is done using futexs, which are system calls. 
>
>Clarification: the wait/wakeup between read-side and synchronize is done
>using the futex system call. There is no locking on the read-side
>per-se.
>
>Thanks,
>
>Mathieu
>
>> Those could potentially be replaced with a poll/retry system either in a 
>> different flavour of URCU or at build-time.
>> 
>> thanks,
>> kienan
>
>
>-- 
>Mathieu Desnoyers
>EfficiOS Inc.
>https://www.efficios.com

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

end of thread, other threads:[~2025-03-10 14:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-04  8:09 need help for avoiding system calls while using URCU (Userspace RCU) 方锴 via lttng-dev
2025-03-06 16:17 ` Kienan Stewart via lttng-dev
2025-03-06 16:58   ` Mathieu Desnoyers via lttng-dev
2025-03-08  9:18     ` 方锴 via lttng-dev
2025-03-08  9:16   ` 方锴 via lttng-dev

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.