Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
Timing Measurements for a Context Switch
- 12-11-2005
- vivekian
December 11, 2005, 1:55 pm

I am making a simulator for which i need to do some performance
analysis . The measurements i need to take are :
1. The time a context switch takes for execution. Does this vary
greatly depending on the machine arch. ?
2. There is a block with if statements within a for loop . Is there a
way to measure them to a finer resolution so that the time obtained is
in some comparison to the context switch ?
Actually doing a comparison between a tradeoff between 1 and 2. Are
there any built in linux system calls for this ? Do i have to use a
tool ? Have heard of a tool called lmbench, but not used it .
Thanks,
vivekian
analysis . The measurements i need to take are :
1. The time a context switch takes for execution. Does this vary
greatly depending on the machine arch. ?
2. There is a block with if statements within a for loop . Is there a
way to measure them to a finer resolution so that the time obtained is
in some comparison to the context switch ?
Actually doing a comparison between a tradeoff between 1 and 2. Are
there any built in linux system calls for this ? Do i have to use a
tool ? Have heard of a tool called lmbench, but not used it .
Thanks,
vivekian
Site Timeline
- » Substitution for Windows.h
- — Next thread in » Embedded Linux
-
- » Systems to run small modified Linux versions
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » PhotorĂ©sistance ?
- — The site's Newest Thread. Posted in » Electronics (French)
-