Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tlug: Timing in Linux and 686 Cache
- To: tlug@example.com
- Subject: Re: tlug: Timing in Linux and 686 Cache
- From: Jim Tittsler <jwt-tlug@example.com>
- Date: Sat, 18 Jul 1998 19:21:11 +0900
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <199807180930.SAA25615@example.com>; from Manuel Chakravarty on Sat, Jul 18, 1998 at 06:30:23PM +0900
- Organization: 7J1AJH/AI8A Tokyo
- References: <199807180930.SAA25615@example.com>
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
On Sat, Jul 18, 1998 at 06:30:23PM +0900, Manuel Chakravarty wrote: > * 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? On Pentiums and above, you can use the RDTSC instruction to get a 64bit count of the number of clock cycles the processor has seen. http://developer.intel.com/drg/pentiumII/appnotes/RDTSCPM1.HTM The app note has some suggestions with dealing with the out-of-order execution that happens on PentiumPro and PentiumII processors. (DJ Bernstein's clockspeed includes an example of reading this register. http://pobox.com/~djb/clockspeed.html) -- Jim Tittsler, Tokyo ICQ: 5981586 -------------------------------------------------------------- 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
- Follow-Ups:
- Re: tlug: Timing in Linux and 686 Cache
- From: "Manuel M. T. Chakravarty" <chak@example.com>
- References:
- tlug: Timing in Linux and 686 Cache
- From: Manuel Chakravarty <chak@example.com>
Home | Main Index | Thread Index
- Prev by Date: tlug: Timing in Linux and 686 Cache
- Next by Date: tlug: non-Linux memory question
- Prev by thread: tlug: Timing in Linux and 686 Cache
- Next by thread: Re: tlug: Timing in Linux and 686 Cache
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links