From owner-freebsd-current Fri Jan 29 10:51:08 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA24611 for freebsd-current-outgoing; Fri, 29 Jan 1999 10:51:08 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from highwind.com (hurricane.highwind.com [209.61.45.50]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA24606 for ; Fri, 29 Jan 1999 10:51:06 -0800 (PST) (envelope-from info@highwind.com) Received: (from info@localhost) by highwind.com (8.8.6/8.8.6) id NAA20468; Fri, 29 Jan 1999 13:50:23 -0500 (EST) Date: Fri, 29 Jan 1999 13:50:23 -0500 (EST) Message-Id: <199901291850.NAA20468@highwind.com> From: HighWind Software Information To: dick@tar.com CC: dillon@apollo.backplane.com, current@FreeBSD.ORG In-reply-to: <19990129092202.T421@tar.com> (dick@tar.com) Subject: Re: Locked at 100% User CPU Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > This code looks pretty bad, all right. It looks like it is O(N^2) > in PS_SELECT_WAIT(), especially if descriptors get randomly strewn > amoungst the threads. It also looks like it is regenerating the FDS masks > on each call completely from scratch. It also looks like it is > scanning the entire thread list - both waiting and running threads, > to prioritize the next thread to run and then scanning it again > to select the thread priority, then scanning the whole list yet > again to find the one it wants to run. > > This is massively unscaleable code. Is anyone actively working on > it? I think if I knew exactly what this code was trying to do, I could rewrite it. However, it is quite complex. I'm tempted to look into Richard's stuff. However, this pthread stuff is quite stable. (at least with a few minor tweaks). If this part scaled a WHOLE LOT better, we'd probably be okay. Richard: How "checked" in is your stuff? What does one have to do to start using it? Kernel mods? -Rob To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message