Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263336AbTIGIKa (ORCPT ); Sun, 7 Sep 2003 04:10:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263337AbTIGIKa (ORCPT ); Sun, 7 Sep 2003 04:10:30 -0400 Received: from static-ctb-210-9-247-166.webone.com.au ([210.9.247.166]:28167 "EHLO chimp.local.net") by vger.kernel.org with ESMTP id S263336AbTIGIK3 (ORCPT ); Sun, 7 Sep 2003 04:10:29 -0400 Message-ID: <3F5AE7ED.7010501@cyberone.com.au> Date: Sun, 07 Sep 2003 18:10:21 +1000 From: Nick Piggin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030827 Debian/1.4-3 X-Accept-Language: en MIME-Version: 1.0 To: Johnny Yau CC: "'Robert Love'" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Minor scheduler fix to get rid of skipping in xmms References: <000201c374c8$1124ee20$f40a0a0a@Aria> <3F5ABE90.2040003@cyberone.com.au> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1141 Lines: 29 Johnny Yau wrote: >>Heh, your logic is entertaining. I don't know how you got from step 1 >>to step 3 ;) >> > >LOL...I got a bit scatterbrained. My basic argument is the fewer context >switches while maintaining interactivity the better because it's less >overhead and less cache thrashing. If we don't care about the overhead and >thrashing at all, then might as well be very aggressive with the scheduler >and use uniform 1 ms timeslices in a RR fashion. I've coded such a >scheduler in an embedded systems context; response time is awesome, but I >highly doubt it'd work for Linux workloads. > Even if context switches don't cost anything, you still want to have priorities so cpu hogs can be preempted by other tasks in order to quickly respond to IO events. You want interactive tasks to be able to sometimes get more cpu than cpu hogs, etc. Scheduling latency is only a part of it. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/