{"id":1216936,"date":"2025-02-19T15:17:25","date_gmt":"2025-02-19T20:17:25","guid":{"rendered":"https:\/\/www.prime-wow.com\/?p=1216936"},"modified":"2025-02-19T15:17:25","modified_gmt":"2025-02-19T20:17:25","slug":"extending-time-slices-for-user-space-locks","status":"publish","type":"post","link":"https:\/\/www.prime-wow.com\/?p=1216936","title":{"rendered":"[$] Extending time slices for user-space locks"},"content":{"rendered":"<div>\n<p>\nSteven Rostedt recently posted<br \/>\n<a href=\"https:\/\/lwn.net\/ml\/all\/20250131225837.972218232@goodmis.org\/\"><br \/>\na patch set<\/a> that could help improve the performance of certain user-space<br \/>\napplications by giving the scheduler more context about when they are safe to<br \/>\ninterrupt. The patch set lets programs request a small grace window<br \/>\nbefore they can be interrupted so that they can relinquish any locks, decreasing the<br \/>\namount of time that other threads have to spend waiting. Rostedt shared<br \/>\nperformance numbers suggesting that the patch might cut the amount of time spent<br \/>\nacquiring locks in half for some programs \u2014 although, since his test was<br \/>\nspecifically tuned for this case, real-world projects should expect a somewhat<br \/>\nless dramatic improvement. The change received some pushback from scheduler<br \/>\nmaintainer Peter Zijlstra, who objected to the patch set&#8217;s approach.\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Steven Rostedt recently posted a patch set that could help improve the performance of certain user-space applications by giving the scheduler more context about when they are safe to interrupt. The patch set lets programs request a small grace window &hellip; <a href=\"https:\/\/www.prime-wow.com\/?p=1216936\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72,116],"tags":[],"class_list":["post-1216936","post","type-post","status-publish","format-standard","hentry","category-linux","category-lwn-net"],"_links":{"self":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/1216936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1216936"}],"version-history":[{"count":0,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/1216936\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1216936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1216936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1216936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}