Date: Mon, 1 Dec 1997 09:37:51 -0800 (PST) From: Tom <tom@uniserve.com> To: Andrzej Bialecki <abial@korin.warman.org.pl> Cc: freebsd-current@freebsd.org Subject: Re: SMP: binding process to CPU Message-ID: <Pine.BSF.3.96.971201093615.28657B-100000@shell.uniserve.com> In-Reply-To: <Pine.NEB.3.95.971201120020.8098D-100000@korin.warman.org.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 1 Dec 1997, Andrzej Bialecki wrote: > > Use rtprio on that process. If the priority is high enough, the process > > will pretty much hog a CPU. This can be dangerous, as other processes > > may not run at all, but on SMP there is at least one more CPU for other > > processes to run on. > > Well, yes... But I'm pretty sure that the same process gets scheduled on > BOTH processors (I don't know how actually the scheduler does it, > though). So I think that if I bounce rtprio high enough, the process in > question will monopolize BOTH CPU's. Am I right? Well, unless you have kernel threading working, and your process is multi-threaded, it will can only be running on one CPU at a time. > Andrzej Bialecki > > ---------------------+--------------------------------------------------------- > abial@warman.org.pl | if(halt_per_mth > 0) { fetch("http://www.freebsd.org") } > Research & Academic | "Be open-minded, but don't let your brains to fall out." > Network in Poland | All of the above (and more) is just my personal opinion. > ---------------------+--------------------------------------------------------- Tom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971201093615.28657B-100000>