From nobody@FreeBSD.ORG Fri Jul 16 07:51:14 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id DE12E14C02; Fri, 16 Jul 1999 07:51:11 -0700 (PDT)
Message-Id: <19990716145111.DE12E14C02@hub.freebsd.org>
Date: Fri, 16 Jul 1999 07:51:11 -0700 (PDT)
From: you@cc.sakuramail.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: The kernel clock goes slow with PLIP device (lp0)
X-Send-Pr-Version: www-1.0

>Number:         12668
>Category:       kern
>Synopsis:       The kernel clock goes slow with PLIP device (lp0)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 16 08:00:01 PDT 1999
>Closed-Date:    Wed May 23 14:11:45 PDT 2001
>Last-Modified:  Wed May 23 14:12:00 PDT 2001
>Originator:     Norio Suzuki
>Release:        3.2-RELEASE
>Organization:
>Environment:
FreeBSD moz.***.******.co.jp 3.2-RELEASE FreeBSD 3.2-RELEASE #1: Fri Jul 16 21:27:58 JST 1999     you@moz.***.******.co.jp:/usr/src/sys/compile/LIB50APM  i386
>Description:
 While transferring large amount of data via PLIP device (lp0),
the kernel clock goes very slow. I'm using Libretto 50,
transferring a couple of 10MB file causes that the kenel clock goes 
slow a couple of 10 seconds.

>How-To-Repeat:
1. Prepare two FreeBSD machines, and connect 2 machines with PLIP cable.
2. Configure lp0 device by using /stand/sysinstall, or manually using ifconfig.
3. Make large file. I make such a file by tar'ing home directories.
4. Transfer the file by FTP. The receiver's kernel clock goes slow while transferring.
(I didn't make sure the sender's clock goes slow or not,
 I'm writing this report at home, with the receiver host, sorry.)
>Fix:


>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: freebsd-gnats-submit@FreeBSD.ORG, you@cc.sakuramail.com
Cc:  
Subject: Re: kern/12668: The kernel clock goes slow with PLIP device (lp0)
Date: Sat, 17 Jul 1999 02:23:04 +1000

 >>Description:
 > While transferring large amount of data via PLIP device (lp0),
 >the kernel clock goes very slow. I'm using Libretto 50,
 >transferring a couple of 10MB file causes that the kenel clock goes 
 >slow a couple of 10 seconds.
 
 Try this quick fix.  It is not the default since it may cause lp0
 interface errors on the same slow machines that not having it
 causes interrupt latency problems.
 
 Bruce
 
 diff -c2 if_plip.c~ if_plip.c
 *** if_plip.c~	Wed Jul  7 22:47:03 1999
 --- if_plip.c	Sat Jul 17 02:20:05 1999
 ***************
 *** 476,480 ****
   	struct mbuf *top;
   
 ! 	s = splhigh();
   
   	if (sc->sc_if.if_flags & IFF_LINK0) {
 --- 476,481 ----
   	struct mbuf *top;
   
 ! 	s = splimp();
 ! 	(void)spltty();
   
   	if (sc->sc_if.if_flags & IFF_LINK0) {
 ***************
 *** 643,647 ****
       err = 1;			/* assume we're aborting because of an error */
   
 !     s = splhigh();
   
       /* Suspend (on laptops) or receive-errors might have taken us offline */
 --- 644,649 ----
       err = 1;			/* assume we're aborting because of an error */
   
 !     s = splimp();
 !     (void)spltty();
   
       /* Suspend (on laptops) or receive-errors might have taken us offline */
 
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Wed May 23 14:11:45 PDT 2001 
State-Changed-Why:  
Overtaken by events. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=12668 
>Unformatted:
