<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - once-test fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=96638#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - once-test fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=96638">bug 96638</a>
from <span class="vcard"><a class="email" href="mailto:tanuk@iki.fi" title="Tanu Kaskinen <tanuk@iki.fi>"> <span class="fn">Tanu Kaskinen</span></a>
</span></b>
<pre>Sorry for late reply. The current code indeed does bad assumptions about the
availability of cpus. The fix doesn't seem quite right, however. Unless I'm
mistaken, your patch is equivalent to just removing the setaffinity call,
because you set the affinity to the same value that is already set for the
thread.
Note also that we have another fix applied for pa_ncpus():
<a href="https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=1df21e6ab6cd42e2f7601a6c5577c20b7e3d1046">https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=1df21e6ab6cd42e2f7601a6c5577c20b7e3d1046</a>
That changes things so that we don't try to use more cpus than what are online.
That might or might not fix the problem that you're seeing. The once-test code
still makes the assumption that the cpus that are online are numbered 0, 1, 2,
etc. which may be incorrect.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>