From owner-freebsd-smp Sun Dec 6 09:29:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA17379 for freebsd-smp-outgoing; Sun, 6 Dec 1998 09:29:28 -0800 (PST) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from gjp.erols.com (alex-va-n008c079.moon.jic.com [206.156.18.89]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA17373 for ; Sun, 6 Dec 1998 09:29:26 -0800 (PST) (envelope-from gjp@gjp.erols.com) Received: from gjp.erols.com (localhost.erols.com [127.0.0.1]) by gjp.erols.com (8.9.1/8.8.7) with ESMTP id MAA52129; Sun, 6 Dec 1998 12:29:01 -0500 (EST) (envelope-from gjp@gjp.erols.com) X-Mailer: exmh version 2.0.1 12/23/97 To: Michael Galassi cc: Marcel van Kervinck , smp@FreeBSD.ORG From: "Gary Palmer" Subject: Re: Pthreads and SMP In-reply-to: Your message of "Sun, 06 Dec 1998 09:19:45 PST." <199812061719.JAA51729@percy.xyz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 06 Dec 1998 12:29:01 -0500 Message-ID: <52125.912965341@gjp.erols.com> Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Michael Galassi wrote in message ID <199812061719.JAA51729@percy.xyz.com>: > Unless I'm wearing serious blinders I fail to see this as a real > problem. Unless you have only a tiny number of procs on the system it > would seem like keeping related threads together would be a good > thing. If you had multiple closely related threads on seperate procs > and they decided to acctually access their shared data I'm guessing > you would see a lot of cache thrashing. Then your threaded program is badly designed :) Seriously, there are advantages to thread migration and disadvantages. I believe Solaris only does thread migration when the CPU that the process is on is overcomitted. So unless you were totally CPU bound (in which case the process shouldn't have been threaded anyhow, as threads get their advantage from being I/O or network bound), there shouldn't really be a problem... Gary -- Gary Palmer FreeBSD Core Team Member FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message