On 07/17/2013 11:34 AM, Graydon Hoare wrote:
On 13-07-17 10:37 AM, Brian Anderson wrote:

Uh, that math was wrong. num_cpus * 2 * num_cpus * 4 * 2 = 256 :)

I'm a bit confused here. Is the arithmetic based on the notion of "num_cpus * 4" test-tasks running at once (let's say 32 tasks, on an 8-way machine) all doing MT-scheduler testing at the same time, thus making "num_cpus * 2 * 2" (i.e. 32) fds?

There are num_cpus * 4 test tasks created by extra::test. Then each of the scheduler tests in stdtest creates num_cpus * 2 scheduler threads. Resulting in possibly (num_cpus * 4) * (num_cpus * 2) threads, times 2 fds per thread.


I would also point out that the testsuite runs subprocesses on pipes and thus chews up 3 more fds per subprocess. They get recycled but only when the subprocess is dropped.

That does not apply to stdtest, where the scheduler tests are located, but only to the tests run by the compiletest driver.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to