Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2001 10:49:22 -0600 (CST)
From:      Mike Meyer <mwm@mired.org>
To:        simakin <simakin@rw.ru>
Cc:        questions@freebsd.org
Subject:   Re: Re[2]: dual CPU under FreeBSD - does it really good thing?
Message-ID:  <14957.46610.789678.790962@guru.mired.org>
In-Reply-To: <17817.010123@rw.ru>
References:  <14957.43395.737236.75894@guru.mired.org> <17817.010123@rw.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
RW <simakin@rw.ru> 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?

	<mike

> >>  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 <mwm@mired.org>			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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14957.46610.789678.790962>