sched_userret priority adjustment patch for sched_4bsd
From: Stephan Uphoff (ups_at_tree.com)
Date: 09/25/04
- Previous message: Brooks Davis: "Re: AoE for 4.x"
- Next in thread: John Baldwin: "Re: sched_userret priority adjustment patch for sched_4bsd"
- Reply: John Baldwin: "Re: sched_userret priority adjustment patch for sched_4bsd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org> Date: Sat, 25 Sep 2004 13:29:14 -0400
When a thread is about to return to user space it resets its priority to
the user level priority.
However after lowering the permission its priority it needs to check if
its priority is still better than all other runable threads.
This is currently not implemented.
Without the check the thread can block kernel or user threads with
better priority until a switch is forced by by an interrupt.
The attached patch checks the relevant runqueues and threads without
slots in the same ksegrp and forces a thread switch if the currently
running thread is no longer the best thread to run after it changed its
priority.
The patch should improve interactive response under heavy load somewhat.
It needs a lot of testing.
Stephan
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- text/x-patch attachment: sched_userret_patch__charset_ASCII
- Previous message: Brooks Davis: "Re: AoE for 4.x"
- Next in thread: John Baldwin: "Re: sched_userret priority adjustment patch for sched_4bsd"
- Reply: John Baldwin: "Re: sched_userret priority adjustment patch for sched_4bsd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- [RFC PATCH -rt] RCU priority boosting that survives mild testing
... This patch allows transitive boosting (e.g., ... boosting its priority
for the duration of the ... level of recursion in face of nested preemptions (e.g., ...
(Linux-Kernel) - Format string bug in awhttpd (Re: [AP] awhttpd v2.2 local DoS)
... While testing a buffer overflow in you patch (tpbuf is only 210 bytes, ... classical
exploitable syslogformat string in this extremely secure ... Priority is 1-4, with
1 being the highest priority. ... (Bugtraq) - [RFC][PATCH 0/2] Swap token re-tuned
... PATCH 1: ... The idea is to guarantee that a high priority process gets
the token. ... This way, its a matter of simple comparison of task priorities, to ...
sys 0m0.940s ... (Linux-Kernel) - Re: NPTL mutex and the scheduling priority
... another one is to keep the queue sorted by priority (and adjust whenever ...
priority changes - one thread can be waiting on at most one futex at a ... I'll look at
the plist patch. ... With the plist patch, I can get desired behavior. ...
(Linux-Kernel) - Re: [PATCH] Changing RT priority in kernel 2.6 without CAP_SYS_NICE
... - this area of code changed since 2.6.8 so it needed merging. ... your patch
had all tabs as spaces. ... But it can also not decrease its RT priority (if scheduled
with policy ... (Linux-Kernel)