linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] O13.1int
@ 2003-08-05  0:17 Con Kolivas
  2003-08-05  7:31 ` Felipe Alfaro Solana
  0 siblings, 1 reply; 2+ messages in thread
From: Con Kolivas @ 2003-08-05  0:17 UTC (permalink / raw)
  To: linux kernel mailing list; +Cc: Andrew Morton

A heck of a lot fairer on disk only tasks; lets them earn sleep avg up to just 
interactive state so they stay on the active array.

Con

--- linux-2.6.0-test2-mm4-O13/kernel/sched.c	2003-08-05 10:08:15.000000000 +1000
+++ linux-2.6.0-test2-mm4-O13.1/kernel/sched.c	2003-08-05 09:58:55.000000000 +1000
@@ -584,13 +584,16 @@ repeat_lock_task:
 				goto repeat_lock_task;
 			}
 			if (old_state == TASK_UNINTERRUPTIBLE){
+				rq->nr_uninterruptible--;
 				/*
 				 * Tasks on involuntary sleep don't earn
-				 * sleep_avg
+				 * sleep_avg beyond just interactive state.
 				 */
-				rq->nr_uninterruptible--;
-				p->timestamp = sched_clock();
-				p->activated = -1;
+				if (NS_TO_JIFFIES(p->sleep_avg) >=
+					JUST_INTERACTIVE_SLEEP(p)){
+						p->timestamp = sched_clock();
+						p->activated = -1;
+				}
 			}
 			if (sync)
 				__activate_task(p, rq);


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] O13.1int
  2003-08-05  0:17 [PATCH] O13.1int Con Kolivas
@ 2003-08-05  7:31 ` Felipe Alfaro Solana
  0 siblings, 0 replies; 2+ messages in thread
From: Felipe Alfaro Solana @ 2003-08-05  7:31 UTC (permalink / raw)
  To: Con Kolivas; +Cc: linux kernel mailing list, Andrew Morton

On Tue, 2003-08-05 at 02:17, Con Kolivas wrote:
> A heck of a lot fairer on disk only tasks; lets them earn sleep avg up to just 
> interactive state so they stay on the active array.

This one is more "jumpy" (i.e., not as smooth as) than just the previous
release. I have had to renice X back to -20 in order to get smooth
window movements involving heavyweight CPU programs like Evolution.

Also, with X at -20, XMMS skips are still present, but they are a little
bit shorter than with previous iterations.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-05  7:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-05  0:17 [PATCH] O13.1int Con Kolivas
2003-08-05  7:31 ` Felipe Alfaro Solana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).