I would like to tell myself: Ok, so, in 1second, my computer can access 2.000 memory cells (relatively, because there is the "inc" instruction time spent, for counting).<br><br>I'm using a AMD Athlon 64 X2 L310 (1.2ghz).<div>
<br></div><div>It would not be a easy task (for me) to develop, because I'm not a Assembly profissional programmer, and I'm not a young man who have</div><div>much time to develop all utils those I would like to create.</div>
<div><br></div><div>It would not be easy, too, because it will be necessary (I think/believe) to set paging (x86) mechanism, enabling long mode, ... ...Well, if not, it will be easier.</div><div><br></div><div>I'm imaginating a very simple program!! But if someone wants to create (doesn't want to wait me), ... my tip is: "So my Friend: Let's go! Do it!"!</div>
<div><br></div><div>Regards.</div><div>Peace out.</div><div><br></div><div><div class="gmail_quote">2012/12/11 Lukáš Oliva <span dir="ltr"><<a href="mailto:olivalukas@gmail.com" target="_blank">olivalukas@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Just for my curiosity, how do you plan to use the results? Also,<br>
which processors do you intend to test (NUMA too)?<br>
<br>
Lukas<br>
<br>
2012/12/10 Gustavo da Silva <<a href="mailto:gustavodasilva@gmail.com">gustavodasilva@gmail.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> Very interesting!! Both the link and the movntq instruction. I'll read and<br>
> study.<br>
><br>
> Thanks Tobias!!<br>
><br>
> 2012/12/8 Tobias Boege <<a href="mailto:tobias@gambas-buch.de">tobias@gambas-buch.de</a>><br>
>><br>
>> On Sat, 08 Dec 2012, Gustavo da Silva wrote:<br>
>> > Hello Kernel Brothers!! How are you???<br>
>> ><br>
>> > So, I would like test the performance of my notebook, developing one or<br>
>> > two<br>
>> > utilities, and have a better<br>
>> > mensurement about the speed.<br>
>> ><br>
>> > But it can help all of us.<br>
>> ><br>
>> > 1st: I would like mensure the speed making a counter (exacly bogomips?<br>
>> > may<br>
>> > be). Loop+counter during 1 tickrate.<br>
>> > 2nd: The most interesting: How many memory cells in ram can we<br>
>> > access during 1tickrate? How could we develop this?!<br>
>> ><br>
>> > Both utils may run in long mode (64bits). Well, in real mode too; so, we<br>
>> > can compare the speed in the two modes!<br>
>> ><br>
>> > Some one knows how to develop a very small program/routine about that?!<br>
>> ><br>
>> > For the 2nd situation, a simple idea wrote in codesnipet form (consider<br>
>> > the<br>
>> > intention, not the sintax! there are bugs! I know. Intel syntax.)<br>
>><br>
>> Obviously! ;-)<br>
>><br>
>> ><br>
>> > dw the_counter_cell 0<br>
>> > lea bx, the_counter_cell<br>
>> > xor bx,bx<br>
>> > label:<br>
>> > inc [bx] # Could not be so simple like this, because the address<br>
>> > can<br>
>> > be cached. Right?<br>
>> > loop label # breaked by an interruption. Just to express the<br>
>> > intention.<br>
>> ><br>
>> > How could we create a small code for the 2nd situation, tring to force<br>
>> > the<br>
>> > processor to not use the cache?<br>
>><br>
>> As Drepper says[0], use the movntq instruction on x86_64 to bypass the<br>
>> cache.<br>
>><br>
>> Regards,<br>
>> Tobi<br>
>><br>
>> [0] <a href="http://www.akkadia.org/drepper/cpumemory.pdf" target="_blank">http://www.akkadia.org/drepper/cpumemory.pdf</a> p. 47ff.<br>
>><br>
>><br>
>> _______________________________________________<br>
>> Kernelnewbies mailing list<br>
>> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
>> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Atenciosamente,<br>
><br>
> Gustavo da Silva<br>
> <a href="mailto:gustavodasilva@gmail.com">gustavodasilva@gmail.com</a><br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Atenciosamente, <br><br>Gustavo da Silva<br><a href="mailto:gustavodasilva@gmail.com">gustavodasilva@gmail.com</a><br>
</div>