From amagai@nue.org  Sat Feb  5 19:00:42 2000
Return-Path: <amagai@nue.org>
Received: from may.nue.org (may.nue.org [163.138.156.31])
	by builder.freebsd.org (Postfix) with ESMTP id AE73A46CA
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  5 Feb 2000 19:00:40 -0800 (PST)
Received: by may.nue.org (8.9.3/nue.mxn1); Sun, 6 Feb 2000 12:01:10 +0900 (JST) <200002060301.MAA12968@may.nue.org> from 
Message-Id: <200002060301.MAA12968@may.nue.org>
Date: Sun, 6 Feb 2000 12:01:10 +0900 (JST)
From: amagai@nue.org
Reply-To: amagai@nue.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: User processes locked on SMP box while burst packet receiving and tcpdumping
X-Send-Pr-Version: 3.2

>Number:         16510
>Category:       kern
>Synopsis:       User processes locked on SMP box while burst packet receiving and tcpdumping
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb  5 19:10:01 PST 2000
>Closed-Date:    Wed Sep 26 12:35:08 PDT 2001
>Last-Modified:  Wed Sep 26 12:36:08 PDT 2001
>Originator:     Y.Amagai
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
New Unified Environment Research Project
>Environment:
Host S; PenIII 618M , ASUS P2BF
        NIC PLANEX ENW9501 (DEC 21140-A?) 100Base/TX full duplex
        single CPU, FreeBSD 2.2.8-Stable

Host D; PenIII 618M * 2 , MB TYAN S1832DL Tiger100
        PLANEX ENW9501 (DEC 21140-A?) 100Base/TX full duplex
        dual CPU, FreeBSD 3.4-Stable, SMP configured

Host S => 3Com Switch 3300 => Host D
>Description:
on HostS;  ping -f -l 5000000 -s 1 hostD >/dev/null
on HostD;  tcpdump >/dev/null

  No tcpdump running on hostD;
hostD reciving packets about 60000 Packets per Second (pps),
hostS sending  packets about 60000 pps
hostD CPU interrupt about 46 %  (by /usr/bin/top)

  while tcpdump running on hostD;
on HostD, user processes (netstat, top ...) are locked (or are eager for 
CPU time silce) .
hostS sending about 80000 pps!!
Kill the ping process on hostS, netstat resume, and reports many input packtes
received.

  So, while tcpdump (or packet duplicate in BPF routine), all CPU time 
slice may consume in interrupt routines.

  Without SMP configuration on hostD, user processes are not locked.

  No tcpdump running on hostD;
hostD reciving packets about 46000 pps
hostS sending  packets about 46000 pps
hostD CPU interrupt about 60 %

  while tcpdump running on hostD;
hostD reciving packets about 44000 pps
hostS sending  packets about 44000 pps
hostD CPU interrupt about 60 %
>How-To-Repeat:
as above.
>Fix:
Sorry, I don't know.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Mon Aug 27 13:39:27 PDT 2001 
State-Changed-Why:  

Can you reproduce this problem with newer releases? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=16510 

From: amagai@nue.org
To: freebsd-gnats-submit@FreeBSD.org, iedowse@FreeBSD.org,
	freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: kern/16510: User processes locked on SMP box while burst packet receiving and tcpdumping
Date: Tue, 28 Aug 2001 12:37:32 +0900 (JST)

 > Can you reproduce this problem with newer releases?
 > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=16510
 
 Hi, I update Host D to FreeBSD 4.4-RC.
 The problem is not occur on the releases.
 
 Please close the PR. 
 Thank you.
 
 AMAGAI Yoshiji
 NUE
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Wed Sep 26 12:35:08 PDT 2001 
State-Changed-Why:  

Submitter says that this problem is not reproducable with 4.4-RC. 

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