Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tlug: Timing in Linux and 686 Cache



Hi!

I have two probably not easy to answer questions:

* Does anybody have an idea whether it is possible in Linux to time the
  execution of user-level code below a resolution of 10ms?  Using the function
  `getrusage', a resolution of 10ms is the best that I can get.  Is there
  anything better?

* Is there a OS function that lets me invalidate the data cache of the
  processor?  If not, does anybody know which `asm' section achieves this
  effect for a MMX Pentium Pro?

For the curious: We are trying to time some cache effects on a Pentium Pro
machine.  With a resolution of 10ms, we have to use a loop, repeating the test
to measure the accumulated runtime.  Without invalidating the cache at the
beginning of the loop, the results are probably distorted.

Thanks for any tips!

Manuel
--------------------------------------------------------------
Next Nomikai: 17 July, 19:30 Tengu TokyoEkiMae 03-3275-3691
Next Meeting: 8 August, Tokyo Station Yaesu central gate 12:30
featuring Linux on multiple platforms:
i386, Sparc, PA-Risc, Amiga, SGI, Alpha, PalmPilot, ...
--------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links