Nicio parere oficiala apropo de chestia asta?<br><br><div class="gmail_quote">On Jan 6, 2008 7:00 PM, Silviu-Ionut Ganceanu <<a href="mailto:silviug@gmail.com">silviug@gmail.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;">
Plusand, cred ca ce vream check_ram0 de fapt este:<br><br>static void check_ram0 (size_t ppages)<br>{<br>....<br> for (i = 0; i < ppages * p_sz / 4; i++) {<br> read (ram_fd, &read_val, 4);<br> if (read_val !=
<span style="color: rgb(255, 0, 0);">SWAP</span>_POISON) {<br> check = 0;<br> break;<br> }<br> }<br><br> test ("ram_clean", check);<div><div></div><div class="Wj3C7c"><br>}<br>
<br><br><div class="gmail_quote">On Jan 6, 2008 6:49 PM, Andrei Deftu <
<a href="mailto:andreideftu@yahoo.com" target="_blank">andreideftu@yahoo.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;">
Nu, are dreptate Silviu ca se bat cap in cap testele.
<br>Daca ar fi sa scrii toate paginile in RAM pe care le<br>aduci din swap, asta ar insemna sa pice ram_clean. De<br>ce? Se acceseaza niste pagini care nu sunt in RAM. Ce<br>se intampla cand se acceseaza pagini care nu sunt in
<br>RAM: swapin from swap. Deci in RAM file ar trebui sa<br>apara poisonul din swap file.<br><br>--- Catalina Caloian <<a href="mailto:catalina.caloian@gmail.com" target="_blank">catalina.caloian@gmail.com</a>><br>
wrote:<br><div><div>
</div><div><br>> Buna.<br>><br>> La 'ram_sync' ar trebui scrise in fisierul care<br>> simuleaza RAM-ul si paginile<br>> care au fost aduse din SWAP, indiferent de modul in<br>> care au fost accesate
<br>> ulterior.<br>><br>> Catalina<br>><br>><br>><br>> _______________________________________________<br>> so mailing list<br>> <a href="mailto:so@cursuri.cs.pub.ro" target="_blank">so@cursuri.cs.pub.ro
</a><br>
> <a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>><br><br><br><br></div></div><div> ____________________________________________________________________________________
<br>Never miss a thing. Make Yahoo your home page.<br><a href="http://www.yahoo.com/r/hs" target="_blank">http://www.yahoo.com/r/hs</a><br></div><div><div></div><div>_______________________________________________
<br>so mailing list<br><a href="mailto:so@cursuri.cs.pub.ro" target="_blank">so@cursuri.cs.pub.ro</a><br><a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
</a>
<br></div></div></blockquote></div><br>
</div></div></blockquote></div><br>