All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] hidraw: Improve subsytem throughput
@ 2021-11-30 13:29 André Almeida
  2021-11-30 13:29 ` [PATCH 1/1] HID: hidraw: Replace hidraw device table mutex with a rwsem André Almeida
  0 siblings, 1 reply; 3+ messages in thread
From: André Almeida @ 2021-11-30 13:29 UTC (permalink / raw)
  To: Benjamin Tissoires, Jiri Kosina, linux-input, linux-kernel, kernel
  Cc: André Almeida

Hi,

In a discussion about SteamVR for Linux[0], users found out that
modifying hidraw code would lead to more stable frame per seconds. This
patch aims to fix a bottleneck at hidraw subsystem to increase the
system throughput when using a lot of HIDs at same time.

I created an artificial benchmark tool[1] to test this. It issues a lot of
ioctls in parallel for 5 HID devices. While the original kernel took
around 1570 nsecs to complete all the calls, after applying this patch
it took around 412 nsecs, almost 4x faster.

Thanks,
	André

[0] https://github.com/ValveSoftware/SteamVR-for-Linux/issues/21
[1] https://gist.github.com/andrealmeid/b495999b8efce3c741e14a709a21e49b

André Almeida (1):
  HID: hidraw: Replace hidraw device table mutex with a rwsem

 drivers/hid/hidraw.c | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2021-12-14 12:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30 13:29 [PATCH 0/1] hidraw: Improve subsytem throughput André Almeida
2021-11-30 13:29 ` [PATCH 1/1] HID: hidraw: Replace hidraw device table mutex with a rwsem André Almeida
2021-12-14 12:31   ` Benjamin Tissoires

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.