Skip site navigation (1)Skip section navigation (2)
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:   kern/103498: momentary system "pauses" when switching VTYs
Message-ID:  <200609221924.k8MJOKFs067303@www.freebsd.org>
Resent-Message-ID: <200609221930.k8MJUL0l023144@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609221924.k8MJOKFs067303>