Yanni,<br><br>As I posted in the bug, I believe that you are observing the entries on the avahi cache expiring.<br><br>So, your first scenario would happen when the suspend time is longer than the time it takes for all entries to expire.<br>
The second scenario would happen when the suspend time is not long enough to make all cached entries to go away.<br>And the third scenario seems related to previous reports you've made on the Xmas tree effect, so not related to suspend/resume.<br>
<br>What do you think?<br><br><div class="gmail_quote">On Feb 19, 2008 1:13 PM, Giannis Galanis <<a href="mailto:galanis@laptop.org">galanis@laptop.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote"><div><div></div><div class="Wj3C7c">On Feb 19, 2008 10:13 AM, Ricardo Carrano <<a href="mailto:carrano@ricardocarrano.com" target="_blank">carrano@ricardocarrano.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div class="gmail_quote"><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I was asking whether it would help to have the wireless module wake us<br>
on multicast packets instead of only unicast. Are you saying that it<br>would?</blockquote></div><div><br>It seems so, though it would, as John points out, make resumes far more constant. It seems we have to find a creative way out of this tough choice (automated suspend vs mesh) or face it.<br>
</div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><div><br> > Avahi entries will expire after some time. Suspend will prevent it<br>
> to update its cache.<br><br></div>Yani's bug report (#6467) suggests that Avahi entries often expire<br>immediately upon resume:<br><br> After the XO resumes (probably after beinng suspended for several<br>
minutes) all the icons in the mesh view vanish, except the mesh<br>
circles.</blockquote></div><div><br>I read this as the avahi-cache expiring its entries. Yanni can you put timeframes on this?<br>Could check how long does it take to expiry an entry (TO) and then check if:<br>Suspend time > TO -> all entries vanish<br>
Suspend time << TO -> no entries vanish<br>Supens time ~ TO -> some entries vanish</div></div></blockquote></div></div><div><br>There as 2 cases where icons vanish due to suspend.<br><br>1st: The moment you resume(it generally happens after long suspends), all icons vanish instantly(APs/XOs). This bug (#6467) suggests that sugar has a problem with suspend resume. <br>
The icons slowly reappear. I assume that if the avahi peer list is intact that all XOs return.<br><br>2nd: The avahi list smtimes looses some or all of the peers at resume. This is also under 6467, but it seems technicaly different. One possible explanation could be that during suspend th XO resumes several times, but i didnt notice it! And within this time frames it realized that the other suspended XOs are gone, so it cleared its cache. Now when I resumed it myself, I observed that the cache is clean!!<br>
<br>Now, regarding the timeouts of avahi. This is a 3rd thing:<br>When an XO leaves the channel we have 4 states:<br> mm:ss<br>1. 00:00 XO leave the channel(manually/or ti suspended)<br>2. 10:00 Avahi notices teh XO left, and reports it as "failed"<br>
3. 30:00 Icon dissappears in the mesh view<br>4. 60:00 Avahi cache is cleared<br>Additionally there is a bug(#5501) according to which, is a NEW XO arrives between states 2 and 3, then instantly ALL "failed" avahi peers are cleared and the corresponding icons vanish.<br>
<br>So, the 3rd case is the following:<br><br>Assume a mesh has e.g. 20 XOs, and I use my XO so it doesnt suspend, but the rest 19 of them are suspended.<br>If in >10mins a new XO arrives, then all the 19 XOs instantly vanish from the mesh.<br>
<br>So the TO time is between 10->30min... but closer to 10min if many XOs suspend/resume<br>So if resume time << 10min everything is fine!!<br><br><br><br>What i dont know is when an XO resumes if it sends any avahi packet no notify tis presence/return. Because if it doesnt, then the XO wont exist int he others cache list, so the others wont search for it.<br>
Sjoerd, can you answer this?<br><br>This would explain why after resume some XOs take tooo long to see each other again.<br>If you combine this with the "2nd" case, you will see that in the natural case that XOs will resume at random points in time by the user, they will all clear their cache, unless they resume concurrently.<br>
So in the end, all will have empty caches!!<br><br> <br><br></div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote">
<div><br></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div><div></div><div><br>Thanks,<br><br>- Chris.<br>--<br>Chris Ball <<a href="mailto:cjb@laptop.org" target="_blank">cjb@laptop.org</a>><br></div></div></blockquote></div></div><br>
</blockquote></div></div><br>
</blockquote></div><br>