Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 2 Oct 2001 14:23:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 2 Oct 2001 14:23:04 -0400 Received: from vasquez.zip.com.au ([203.12.97.41]:37382 "EHLO vasquez.zip.com.au") by vger.kernel.org with ESMTP id ; Tue, 2 Oct 2001 14:22:12 -0400 Message-ID: <3BBA05E9.63162EB4@zip.com.au> Date: Tue, 02 Oct 2001 11:22:33 -0700 From: Andrew Morton X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.9-ac12 i686) X-Accept-Language: en MIME-Version: 1.0 To: Ricky Beam CC: Lorenzo Allegrucci , linux-kernel@vger.kernel.org Subject: Re: Huge console switching lags In-Reply-To: <3BB9F1F2.B6873DFD@zip.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Ricky Beam wrote: > > On Tue, 2 Oct 2001, Andrew Morton wrote: > >In 2.4.10, the console switching code moved from interrupt context > >into process context. So if your system is taking a long time to > >schedule processes (in this case, keventd) then yes, console > >switching will take a long time. > > And what's the brilliant reason for this? And don't give any BS about it > taking too long inside an interrupt context -- we're switching consoles not > start netscrape. > It takes too long in interrupt context :) Tens of milliseconds or more. More importantly, it sorts the locking out - you can't acquire a semaphore in interrupt context. - 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/