From owner-freebsd-current@FreeBSD.ORG Sun Oct 7 04:03:42 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B32216A420 for ; Sun, 7 Oct 2007 04:03:42 +0000 (UTC) (envelope-from csjp@sub.vaned.net) Received: from sub.vaned.net (sub.vaned.net [205.200.235.40]) by mx1.freebsd.org (Postfix) with ESMTP id E891F13C458 for ; Sun, 7 Oct 2007 04:03:41 +0000 (UTC) (envelope-from csjp@sub.vaned.net) Received: by sub.vaned.net (Postfix, from userid 1001) id A396F17395; Sat, 6 Oct 2007 23:01:03 -0500 (CDT) Date: Sat, 6 Oct 2007 23:01:03 -0500 From: "Christian S.J. Peron" To: Katsuji Ishikawa Message-ID: <20071007040103.GA58108@sub.vaned.net> References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-current@freebsd.org Subject: Re: heavy network load X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Oct 2007 04:03:42 -0000 --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The original author of the scheduler has come up with this patch which should fix the issue. Please test the attached patch. On Sat, Oct 06, 2007 at 02:49:01PM +0900, Katsuji Ishikawa wrote: > Hi . > I use -CURRENT on Parallels Desktop(Mac OS X). It works very fine. > But today I csup'ed and installed these. After that, I encountered > network problem.. > > > Details: > > Host: Parallels Desktop (Mac OS X) , 192.168.0.3 > Guest: FreeBSD-CURRENT , 192.168.0.6 > > before (Old current) > katsuji@hexley% ping 192.168.0.6 > PING 192.168.0.6 (192.168.0.6): 56 data bytes > 64 bytes from 192.168.0.6: icmp_seq=0 ttl=64 time=0.462 ms > 64 bytes from 192.168.0.6: icmp_seq=1 ttl=64 time=0.623 ms > 64 bytes from 192.168.0.6: icmp_seq=2 ttl=64 time=0.497 ms > 64 bytes from 192.168.0.6: icmp_seq=3 ttl=64 time=0.571 ms > 64 bytes from 192.168.0.6: icmp_seq=4 ttl=64 time=0.610 ms > 64 bytes from 192.168.0.6: icmp_seq=5 ttl=64 time=0.510 ms > ^C > --- 192.168.0.6 ping statistics --- > 6 packets transmitted, 6 packets received, 0% packet loss > round-trip min/avg/max/stddev = 0.462/0.545/0.623/0.060 ms > > > after (csuped today, occured packet loss...) > katsuji@hexley% ping 192.168.0.6 > PING 192.168.0.6 (192.168.0.6): 56 data bytes > 64 bytes from 192.168.0.6: icmp_seq=0 ttl=64 time=4397.146 ms > 64 bytes from 192.168.0.6: icmp_seq=1 ttl=64 time=3397.082 ms > 64 bytes from 192.168.0.6: icmp_seq=2 ttl=64 time=2397.021 ms > 64 bytes from 192.168.0.6: icmp_seq=3 ttl=64 time=1395.493 ms > 64 bytes from 192.168.0.6: icmp_seq=4 ttl=64 time=393.692 ms > ^C > --- 192.168.0.6 ping statistics --- > 11 packets transmitted, 5 packets received, 54% packet loss > round-trip min/avg/max/stddev = 393.692/2396.087/4397.146/1415.415 ms > > > kernel configuration: > > katsuji@seven% cat ULE3 [/sys/i386/conf] > include GENERIC > ident ULE3 > > nooptions SCHED_4BSD > options SCHED_ULE > > > Have you any good ideas? > > Regards, > > -- > Katsuji ISHIKAWA > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- Christian S.J. Peron csjp@FreeBSD.ORG FreeBSD Committer --T4sUOijqQbZv57TR Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="sched_ule.c.diff" ? change.diff ? d ? kern_lockf.1182548846.diff ? lockf.diff ? lockf_restrict.1183833125.diff ? sched_smp.c ? sched_ule.c.diff Index: sched_ule.c =================================================================== RCS file: /home/ncvs/src/sys/kern/sched_ule.c,v retrieving revision 1.212 diff -u -r1.212 sched_ule.c --- sched_ule.c 2 Oct 2007 01:30:18 -0000 1.212 +++ sched_ule.c 7 Oct 2007 04:01:20 -0000 @@ -743,6 +743,9 @@ int load; int cpu; + if (!smp_started) + return (1); + KASSERT(steal_thresh != 0, ("steal_thresh == 0")); /* We don't want to be preempted while we're iterating over tdqs */ spinlock_enter(); tdg = tdq->tdq_group; --T4sUOijqQbZv57TR--