From owner-freebsd-threads@FreeBSD.ORG Sun Nov 30 15:14:42 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A872516A4CE; Sun, 30 Nov 2003 15:14:42 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5C4443F85; Sun, 30 Nov 2003 15:14:41 -0800 (PST) (envelope-from davidxu@freebsd.org) Received: from freebsd.org (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id hAUNEeFY090085; Sun, 30 Nov 2003 15:14:41 -0800 (PST) (envelope-from davidxu@freebsd.org) Message-ID: <3FCA7C86.6000800@freebsd.org> Date: Mon, 01 Dec 2003 07:25:58 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031025 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Christopher M. Sedore" References: <32A8B2CB12BFC84D8D11D872C787AA9A515DB1@EXCHANGE.forest.maxwell.syr.edu> In-Reply-To: <32A8B2CB12BFC84D8D11D872C787AA9A515DB1@EXCHANGE.forest.maxwell.syr.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: deischen@freebsd.org cc: threads@freebsd.org Subject: Re: KSE system scope vs non system scope threads X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2003 23:14:42 -0000 Christopher M. Sedore wrote: >I'm using blocking connects. Degradation is I should be moving ~5-7MB/sec (and I do if I don't try to connect to any hosts that are down). Once I do, I see fluctuations from ~15-20KB/sec (note: KB) to 3-5MB/sec, somewhat associated with when the connects happen. Running libthr, I move 6-7MB/sec consistently (until everything hangs up showing sigwait as the status in top, anyway). System scope threads turn in numbers from 5-6MB/sec. (Note I don't have any hang problems under KSE, only libthr.) > >On Monday I'm going to try David Xu's suggestion of trying v1.18 of thr_spinlock.c to see if that helps. > > > I don't know if you hit a hard limit in kernel. The hard limit is sysctl kern.threads.max_threads_per_proc, default is 150, it means system only allows 150 threads to be blocked in kernel, if you hit the limits, then performance will be degraded. David Xu >-Chris >_______________________________________________ >freebsd-threads@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-threads >To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" > > >