Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 8 Jan 2002 16:17:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 8 Jan 2002 16:16:56 -0500 Received: from zero.tech9.net ([209.61.188.187]:37384 "EHLO zero.tech9.net") by vger.kernel.org with ESMTP id ; Tue, 8 Jan 2002 16:16:41 -0500 Subject: Re: [2.4.17/18pre] VM and swap - it's really unusable From: Robert Love To: Daniel Phillips Cc: Andrew Morton , Anton Blanchard , Andrea Arcangeli , Luigi Genoni , Dieter N?tzel , Marcelo Tosatti , Rik van Riel , Linux Kernel List In-Reply-To: In-Reply-To: <20020108030420Z287595-13997+1799@vger.kernel.org> <3C3B4CB7.FEAAF5FC@zip.com.au> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.0.99+cvs.2001.12.18.08.57 (Preview Release) Date: 08 Jan 2002 16:17:32 -0500 Message-Id: <1010524653.3225.109.camel@phantasy> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2002-01-08 at 15:59, Daniel Phillips wrote: > And while I'm enumerating differences, the preemptable kernel (in this > incarnation) has a slight per-spinlock cost, while the non-preemptable kernel > has the fixed cost of checking for rescheduling, at intervals throughout all > 'interesting' kernel code, essentially all long-running loops. But by clever > coding it's possible to finesse away almost all the overhead of those loop > checks, so in the end, the non-preemptible low-latency patch has a slight > efficiency advantage here, with emphasis on 'slight'. True (re spinlock weight in preemptible kernel) but how is that not comparable to explicit scheduling points? Worse, the preempt-kernel typically does its preemption on a branch on return to interrupt (similar to user space's preemption). What better time to check and reschedule if needed? Robert Love - 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/