From owner-freebsd-current Thu Jan 7 03:46:59 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA09574 for freebsd-current-outgoing; Thu, 7 Jan 1999 03:46:59 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from hda.hda.com (hda-bicnet.bicnet.net [209.244.238.132] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA09569 for ; Thu, 7 Jan 1999 03:46:55 -0800 (PST) (envelope-from dufault@hda.hda.com) Received: (from dufault@localhost) by hda.hda.com (8.8.5/8.8.5) id GAA02126; Thu, 7 Jan 1999 06:42:35 -0500 (EST) From: Peter Dufault Message-Id: <199901071142.GAA02126@hda.hda.com> Subject: Re: Problem with -current, SMP and multiple 'nice' processes? In-Reply-To: <3694895D.37DEEE92@tdx.co.uk> from Karl Pielorz at "Jan 7, 99 10:15:57 am" To: kpielorz@tdx.co.uk (Karl Pielorz) Date: Thu, 7 Jan 1999 06:42:35 -0500 (EST) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > If I run the client again {as per RC5's instructions for SMP FreeBSD machines} > the load average goes up to 2.0 (as I'd guess you'd expect), and the machine > performs like a dog... I think "maybe_resched()" doesn't work for SMP. It is called by wakeup(). It is checking curproc directly. For now it probably needs to do an unconditional need_resched() in the SMP case. Note that there is a revised version on ftp.freebsd.org in pub/FreeBSD/development/misc/PATCHES.sched. It doesn't fix this problem, but if someone is going to trace through things I'd appreciate them working through that. Peter -- Peter Dufault (dufault@hda.com) Realtime development, Machine control, HD Associates, Inc. Safety critical systems, Agency approval To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message