<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Andrew,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> I’m running Barrelfish under QEMU. I’m running the emulation with 4 cores. Enclosed is a simple timer setup in main that I’m loading and running on the four cores:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><img width="887" height="572" id="Picture_x0020_1" src="cid:image001.png@01CF37AE.C0555A10"></span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">What I get on the output indicates cores 0 and 2 reporting the one second interval regularly. Core 1 chimes in now-and-then and nothing from core 3:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><img width="283" height="615" id="Picture_x0020_2" src="cid:image002.png@01CF37AF.2A43BAC0"></span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Can you guys try this and see what you get?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Mark Brown<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Huawei Technologies Inc.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">5340 Legacy Dr., Suite 175<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Plano, TX 75024<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Tel: 469-277-5700 x5870<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Email: m.brown@huawei.com<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Andrew Baumann [<a href="mailto:Andrew.Baumann@microsoft.com">mailto:Andrew.Baumann@microsoft.com</a>]
<br>
<b>Sent:</b> Friday, February 28, 2014 3:28 PM<br>
<b>To:</b> M Brown; <a href="mailto:barrelfish-users@lists.inf.ethz.ch">barrelfish-users@lists.inf.ethz.ch</a><br>
<b>Cc:</b> debashis bhattacharya<br>
<b>Subject:</b> RE: Deferred event problem...<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Hi Mark,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">This is not a known problem (at least not to me; someone else on the list might know more). Deferred events run off the same per-core timer used by the kernel for scheduling – on x86, this is the local APIC timer.
If they don’t work on other cores, then I would expect that a lot of scheduling code would also be broken. What platform are you running on? Does this reproduce on Qemu?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Andrew<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> M Brown [<a href="mailto:M.Brown@huawei.com">mailto:M.Brown@huawei.com</a>]
<br>
<b>Sent:</b> Thursday, 27 February 2014 18:15<br>
<b>To:</b> <a href="mailto:barrelfish-users@lists.inf.ethz.ch">barrelfish-users@lists.inf.ethz.ch</a><br>
<b>Cc:</b> debashis bhattacharya<br>
<b>Subject:</b> [Barrelfish-users] Deferred event problem...<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">All,<o:p></o:p></p>
<p class="MsoNormal"> I’m running into a problem with the deferred event support. I’m running a system with 4 cores. When I attach a periodic deferred event (timer) within core 0 all works well. When I attach one within core 3 it does not fire at all. All
deferred events are attached to their respective default waitsets and the “main”s running in each core are running an event loop on the core’s respective default waitset. Is there any known problem with this function?<o:p></o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Mark Brown<o:p></o:p></p>
<p class="MsoNormal">Huawei Technologies Inc.<o:p></o:p></p>
<p class="MsoNormal">5340 Legacy Dr., Suite 175<o:p></o:p></p>
<p class="MsoNormal">Plano, TX 75024<o:p></o:p></p>
<p class="MsoNormal">Tel: 469-277-5700 x5870<o:p></o:p></p>
<p class="MsoNormal">Email: <a href="mailto:m.brown@huawei.com">m.brown@huawei.com</a><o:p></o:p></p>
</div>
</body>
</html>