On Mon, 3 Jan 2000, Sandy Harris wrote:
> Machine is a dual Celeron 466, 256 megs. It is my server,
> I'd like to run one copy of the search code in such a way that it
> monopolises one CPU, in hopes it will succeed relatively quickly.
> Is there a way to do that?
Yes, but you don't want to do that (read on)...
> I'd also like to run a second copy at low priority, set up so it
> will not interfere with either the primary prime searcher or
> anything else I want to do with the machine.
Since all tasks the server gets will have to be done
anyway, it is better to run both prime searchers at
the lowest possible priority.
That way other tasks in the system get run as soon
as they need to run and get out of the way again
soon.
For a (very) long-running task like prime searcher,
you _don't care_ about latency, you just want it to
get all the CPU time that's not needed for other
tasks on the system.
For tasks like fetching webpages or files, OTOH,
latency is the most important thing. You don't want
to wait one second later for your web page just
because a prime searcher is busy... (and serving the
webpage a second later won't do any good to the prime
searcher because it's just interrupted one second
later)
regards,
Rik
--
The Internet is not a network of computers. It is a network
of people. That is its real strength.
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/dmentre/smp-howto/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]