diff --git a/Userland/Applications/SystemMonitor/main.cpp b/Userland/Applications/SystemMonitor/main.cpp index 827edbf454..9bc205c790 100644 --- a/Userland/Applications/SystemMonitor/main.cpp +++ b/Userland/Applications/SystemMonitor/main.cpp @@ -93,6 +93,16 @@ static bool can_access_pid(pid_t pid) int main(int argc, char** argv) { + { + // Before we do anything else, boost our process priority to the maximum allowed. + // It's very frustrating when the system is bogged down under load and you just want + // System Monitor to work. + sched_param param { + .sched_priority = THREAD_PRIORITY_MAX, + }; + sched_setparam(0, ¶m); + } + if (pledge("stdio proc recvfd sendfd accept rpath exec unix cpath fattr", nullptr) < 0) { perror("pledge"); return 1;