Not ideal. What I really want is a system whereby all the idle CPU time on
CPU #0 goes to SETI #0, and likewise CPU #1 and SETI #1 - i.e. just
prevent both SETIs trying to run on the same CPU at once.
If there is ANYTHING running on the system which could use that CPU time,
it's not idle - so SETI shouldn't get run in the first place.
> Of course this doesn't have to happen, but to be honest I think
> that the alternative is worse. Suppose that the seti on the
> "busy" cpu doesn't get run, and another process in the system
> needs a kernel lock that that seti happens to hold ... system
> activity will stall for quite a while until the calculation is
> over and the seti@home is able to proceed and release the lock.
> Which could take a long time ...
SETI should never be holding any locks across calculations etc. anyway,
though, surely?
Perhaps the best solution would be to add a scheduler policy of
SCHED_IDLE? Anyway, this is a little unlikely to make it into 2.4 any time
soon, so I'll take it off-list for now.
James.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/