Skip to contentSkip to conversation

need help for avoiding system calls while using URCU (Userspace RCU)

DISCUSSION 方锴 via lttng-dev 1 participant 5 messages Mar 4, 2025 – Mar 10, 2025

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

Hi 方锴,

Quoted 1 line · 方锴 via lttng-dev

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?

Quoted 1 line

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

#2 lore raw
Quoted 5 lines · Kienan Stewart via lttng-dev

Hi 方锴,

Quoted 1 line · 方锴 via lttng-dev

I have referenced your project, URCU (Userspace RCU), on GitHub, which is based on the QSBR model. However, I

Quoted 8 lines

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?

Quoted 1 line

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

Quoted 4 lines

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

thanks,
kienan

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com
#3 lore raw

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

Quoted 38 lines · Mathieu Desnoyers
Quoted 9 lines · Kienan Stewart via lttng-dev

Hi 方锴,

Quoted 2 lines · 方锴 via lttng-dev

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?

Quoted 8 lines

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

Quoted 1 line

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

Quoted 5 lines

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

thanks,
kienan

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com
#4 lore raw
In reply to Kienan Stewart via 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

Quoted 21 lines · Kienan Stewart

Hi 方锴,

Quoted 1 line · 方锴 via lttng-dev

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?

Quoted 1 line

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