From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 22 19:30:32 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCB2A16A407 for ; Fri, 22 Sep 2006 19:30:32 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E321E43D60 for ; Fri, 22 Sep 2006 19:30:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8MJULdZ023145 for ; Fri, 22 Sep 2006 19:30:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8MJUL0l023144; Fri, 22 Sep 2006 19:30:21 GMT (envelope-from gnats) Resent-Date: Fri, 22 Sep 2006 19:30:21 GMT Resent-Message-Id: <200609221930.k8MJUL0l023144@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Rick C. Petty" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B2F416A492 for ; Fri, 22 Sep 2006 19:24:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDFE143D45 for ; Fri, 22 Sep 2006 19:24:20 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k8MJOKBs067304 for ; Fri, 22 Sep 2006 19:24:20 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k8MJOKFs067303; Fri, 22 Sep 2006 19:24:20 GMT (envelope-from nobody) Message-Id: <200609221924.k8MJOKFs067303@www.freebsd.org> Date: Fri, 22 Sep 2006 19:24:20 GMT From: "Rick C. Petty" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/103498: momentary system "pauses" when switching VTYs X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2006 19:30:32 -0000 >Number: 103498 >Category: kern >Synopsis: momentary system "pauses" when switching VTYs >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 22 19:30:21 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Rick C. Petty >Release: 6.2-PRERELEASE >Organization: >Environment: FreeBSD hostname.hidden 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Fri Sep 22 14:13:49 UTC 2006 root@hostname.hidden:/usr/obj/usr/src/sys/GENERIC i386 >Description: >From the stock install of a 6.1-RELEASE DVD, I noticed that whenever I switched the virtual console to a different screen (e.g. alt-F4 for the shell during install), it would take almost 2 whole seconds before switching. I tried the same thing with various RELENG_6 sups including 6.2-PRERELEASE as of today. The only difference with 6.2-PRE was the pause is down to about 250ms. During these pauses, it seems the entire kernel blocks during the switching operation, then resumes as if nothing went wrong. This was noticed because during the install, the ATA light would turn off the instant I hit the keys to switch and would come back on immediately as the console switches. This behavior was more obvious when the delay was two seconds but it still happens for a quarter of a second with 6.2-PRE. This behavior is 100% repeatable for me. The same machines, running 5.1-R or 5.4-R, don't experience this delay-- the console switch is instantaneous. Nothing suspicious is showing in "systat -vms" or top. Nothing out of the ordinary appeared in any logs or dmesg. Strangely, this problem doesn't exist on all my systems, just a few. I tried both GENERIC and SMP kernels. A dmesg output can be provided if necessary. One thing which may be affecting this is all my systems which experience this behavior, I'm using kbdmux with no PS/2 keyboard attached. I suspect this problem appeared about the time kbdmux was added. However, I use the same USB keyboards (w/o PS/2) on other systems which work just fine. >How-To-Repeat: 1). Be unfortunate enough to have hardware similar to some of my machines (amd32 asus nforce2 boards, or p4 dell boards). 2). Connect a USB keyboard, disconnect any PS/2 keyboards. 3). Throw in a stock 6.1-RELEASE iso (or upgrade to 6.2-PRERELEASE). 4). When available, try switching the virtual console to another screen (e.g. alt-F2 for debug). 5). Observe 0.25 to 2.0 second delay. >Fix: >Release-Note: >Audit-Trail: >Unformatted: