From owner-freebsd-questions Tue Jan 23 8:49:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 8F6FC37B698 for ; Tue, 23 Jan 2001 08:49:23 -0800 (PST) Received: (qmail 2374 invoked by uid 100); 23 Jan 2001 16:49:22 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14957.46610.789678.790962@guru.mired.org> Date: Tue, 23 Jan 2001 10:49:22 -0600 (CST) To: simakin Cc: questions@freebsd.org Subject: Re: Re[2]: dual CPU under FreeBSD - does it really good thing? In-Reply-To: <17817.010123@rw.ru> References: <14957.43395.737236.75894@guru.mired.org> <17817.010123@rw.ru> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG RW types: > Thank you, Mike! > > I try to explain my question - can I tell to process (apache, for > example) to work only on first (or second) CPU? > Does it possible to execute something like > /usr/local/sbin/snmpd &2 # using second CPU > or like this > cpu_manager cpu=2 process=/usr/local/sbin/snmpd > May be stupid example, but in NT we can point to services on which cpu > they must run. Nope, you can't do that. Given that the two processors are treated symmetrically (that's what the S in SMP is for), why would you want to run it on anything other than the first available CPU? >> Can I separate tasks between different CPUs? > MM> I'm not sure what you're asking. You can't specify which CPU a task > MM> winds up on, or which tasks wind up on different CPUs. You can break > MM> your computing job up into tasks however you want to, but the system > MM> will decide which tasks run on which CPU. > > > -- Mike Meyer http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message