All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] replace ->get_poll_head with a waitqueue pointer in struct file
@ 2018-06-28 14:20 ` Christoph Hellwig
  0 siblings, 0 replies; 50+ messages in thread
From: Christoph Hellwig @ 2018-06-28 14:20 UTC (permalink / raw)
  To: Alexander Viro; +Cc: Linus Torvalds, linux-fsdevel, netdev, lkp

Introducing the new poll methods showed up a regression in the
will-it-scale ltp tests.  One reason for that is that indirect function
calls are very expensive now with the spectre mitigations.  I'm waiting
for better numbers, but this series has shown a 5% improvements in the
ops per second so far, while for the get_poll_head addition we had
regressions of 3.7% or 8.8% depending on the measurement.

This series removes the get_poll_head method again and instead stores an
optional wait_queue_head pointer in struct file, on which the poll_mask
method can be used if it is set.  The only complication is the networking
poll code which not only does some interesting gymnastics to get at the
wait queue pointer, but also has a mode to to hardware polling before
waiting for an even from poll or epoll.  Because of that this series has
a few net prep patches that need careful review.

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

end of thread, other threads:[~2018-06-29 13:41 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-28 14:20 [RFC] replace ->get_poll_head with a waitqueue pointer in struct file Christoph Hellwig
2018-06-28 14:20 ` Christoph Hellwig
2018-06-28 14:20 ` [PATCH 1/6] net: remove sock_poll_busy_flag Christoph Hellwig
2018-06-28 14:20   ` Christoph Hellwig
2018-06-28 14:20 ` [PATCH 2/6] net: remove bogus RCU annotations on socket.wq Christoph Hellwig
2018-06-28 14:20   ` Christoph Hellwig
2018-06-28 14:20 ` [PATCH 3/6] net: don't detour through struct to find the poll head Christoph Hellwig
2018-06-28 14:20   ` Christoph Hellwig
2018-06-28 14:20 ` [PATCH 4/6] net: remove busy polling from sock_get_poll_head Christoph Hellwig
2018-06-28 14:20   ` Christoph Hellwig
2018-06-28 14:20 ` [PATCH 5/6] net: remove sock_poll_busy_loop Christoph Hellwig
2018-06-28 14:20   ` Christoph Hellwig
2018-06-28 14:20 ` [PATCH 6/6] fs: replace f_ops->get_poll_head with a static ->f_poll_head pointer Christoph Hellwig
2018-06-28 14:20   ` Christoph Hellwig
2018-06-28 16:40   ` Linus Torvalds
2018-06-28 16:40     ` Linus Torvalds
2018-06-28 18:17     ` Al Viro
2018-06-28 18:17       ` Al Viro
2018-06-28 19:31       ` Linus Torvalds
2018-06-28 19:31         ` Linus Torvalds
2018-06-28 20:28         ` Al Viro
2018-06-28 20:28           ` Al Viro
2018-06-28 20:37           ` Al Viro
2018-06-28 20:37             ` Al Viro
2018-06-28 21:16             ` Linus Torvalds
2018-06-28 21:16               ` Linus Torvalds
2018-06-28 21:11           ` Linus Torvalds
2018-06-28 21:11             ` Linus Torvalds
2018-06-28 21:30             ` Al Viro
2018-06-28 21:30               ` Al Viro
2018-06-28 21:39               ` Linus Torvalds
2018-06-28 21:39                 ` Linus Torvalds
2018-06-28 22:20               ` Al Viro
2018-06-28 22:20                 ` Al Viro
2018-06-28 22:35                 ` Linus Torvalds
2018-06-28 22:35                   ` Linus Torvalds
2018-06-28 22:49                   ` Al Viro
2018-06-28 22:49                     ` Al Viro
2018-06-28 22:55                     ` Linus Torvalds
2018-06-28 22:55                       ` Linus Torvalds
2018-06-28 23:37                       ` Al Viro
2018-06-28 23:37                         ` Al Viro
2018-06-29  0:13                         ` Linus Torvalds
2018-06-29  0:13                           ` Linus Torvalds
2018-06-29 13:29               ` Christoph Hellwig
2018-06-29 13:29                 ` Christoph Hellwig
2018-06-29 13:40                 ` Linus Torvalds
2018-06-29 13:40                   ` Linus Torvalds
2018-06-29 13:28             ` Christoph Hellwig
2018-06-29 13:28               ` Christoph Hellwig

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.