[PATCH] D59130: [llvm][Support] Provide interface to set thread priorities

Dmitri Gribenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 03:24:02 PDT 2019


gribozavr added a comment.

In D59130#1426579 <https://reviews.llvm.org/D59130#1426579>, @krytarowski wrote:

> I would port it to NetBSD... but I don't see use-case for it. I think kernel should be allowed to schedule priorities on its own without manual help.


For such scheduling decisions to be globally good, for example, to figure out that such and such thread should make progress to unblock something, to unblock something, to react to the user input, to draw something on the screen, the kernel needs a lot of smart behavior. 
 We have observed regressions in UI responsiveness on Linux and Windows when clangd is doing background indexing at normal priority.

I'd love for the kernel to figure it out automatically for us, but the experience tells us that we're not there yet.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59130/new/

https://reviews.llvm.org/D59130





More information about the llvm-commits mailing list