<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">There's a decent explanation
of it here: <a class="moz-txt-link-freetext" href="http://www.linuxjournal.com/article/6799">http://www.linuxjournal.com/article/6799</a><br>
<br>
It is complex but I think if can have worthwhile performance impacts as
without affinity the cache memory gets invalidated as processes move
from core to core. Avoiding that has got to have an effect. I haven't
seen any real benchmarks though.<br>
Chris :)<br>
</font><br>
zoltarx wrote:
<blockquote
cite="mid:30b1e9d0809060308m5aa9f93cvaa32427fc053c0b8@mail.gmail.com"
type="cite">
<div dir="ltr">IMHO: Affinity is just a flag which tells kernel on
what CPUs can run the code of specified process (even thread) - in
other words you could set affinity for first process to CPU0 and second
to CPU1 and they should be working on different CPU's I don't know if
Linux kernel supports that, but windows should honour this setting. I
don't think that this kind of separation would make big difference in
performance.
<div><br>
</div>
<div>Greetings,</div>
<div>zoltarx</div>
<div><br>
<div class="gmail_quote">2008/9/5 Robert Gabriel <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>></span><br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Sorry,
for some reason I have a lot of "grammar" mistakes :)<br>
<div>
<div class="Wj3C7c">--<br>
Posted via <a moz-do-not-send="true" href="http://www.ruby-forum.com/"
target="_blank">http://www.ruby-forum.com/</a>.<br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
______________________________<br>
<br>
Filip Golewski<br>
e-mail: <a moz-do-not-send="true" href="mailto:f.golewski@gmail.com">f.golewski@gmail.com</a><br>
e-mail: <a class="moz-txt-link-abbreviated" href="mailto:zoltarx@o2.pl">zoltarx@o2.pl</a><br>
</div>
</div>
</blockquote>
</body>
</html>