From owner-freebsd-threads@FreeBSD.ORG Sun Nov 30 17:17:57 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 578CA16A4CE; Sun, 30 Nov 2003 17:17:57 -0800 (PST) Received: from maxwell.syr.edu (maxwell.syr.edu [128.230.129.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id E66EF43FDD; Sun, 30 Nov 2003 17:17:55 -0800 (PST) (envelope-from cmsedore@maxwell.syr.edu) Received: from exchange.maxwell.syr.edu (excluster2.maxwell.syr.edu [128.230.129.231]) by maxwell.syr.edu (8.12.10/8.9.1) with ESMTP id hB11Hro2027549; Sun, 30 Nov 2003 20:17:53 -0500 (EST) X-MIMEOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Sun, 30 Nov 2003 20:17:22 -0500 Message-ID: <32A8B2CB12BFC84D8D11D872C787AA9A02B1F790@EXCHANGE.forest.maxwell.syr.edu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: KSE system scope vs non system scope threads Thread-Index: AcO3l9jqSQ61H2U/SEeUZ/pS/iRNgQAEQYyi From: "Christopher M. Sedore" To: "David Xu" 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: Mon, 01 Dec 2003 01:17:57 -0000 I don't presently have more than 20-30 threads running at any one time. =20 -Chris ________________________________ From: David Xu [mailto:davidxu@freebsd.org] Sent: Sun 11/30/2003 6:25 PM To: Christopher M. Sedore Cc: deischen@freebsd.org; threads@freebsd.org Subject: Re: KSE system scope vs non system scope threads 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. > >=20 > 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" > >=20 >