From nobody@FreeBSD.org  Fri Sep 22 19:24:21 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1B2F416A492
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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" <rick-freebsd@kiwi-computer.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: momentary system "pauses" when switching VTYs
X-Send-Pr-Version: www-2.3

>Number:         103498
>Category:       kern
>Synopsis:       [keyboard] [atkbdc] momentary system "pauses" when switching VTYs [regression]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 22 19:30:21 GMT 2006
>Closed-Date:    Fri Aug 27 11:51:00 UTC 2010
>Last-Modified:  Fri Aug 27 12:06:14 UTC 2010
>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:
State-Changed-From-To: open->closed 
State-Changed-By: arundel 
State-Changed-When: Fri Aug 27 11:50:13 UTC 2010 
State-Changed-Why:  
Duplicate of 99538. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103498 
>Unformatted:
