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

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 19 04:31:00 PDT 2019


krytarowski added a comment.

> We have observed regressions in UI responsiveness on Linux and Windows when clangd is doing background indexing at normal priority.

I'm not refreshed with the Linux status but there are options for scheduling policies for UI responsiveness. Solaris used 'Interactive (IA)' scheduler designed for these purposes.

On NetBSD this trick is not allowed to manually set the priority level, as POSIX does not mandate this option to be supported; thus all the scheduling of SCHED_OTHER goes through automatic adapting of prioritizes by the kernel scheduler.

If there are issues on Linux and Windows, I would specify it explicitly that this is the reason why to implement it for these OSs (and not expected to be added for all OSs).


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