We can do it from user space too I think.. Just have 2 processes and make them send signals to each other, we can use SIGUSR1 for this purpose. Do this finite number of times and then measure the time required. I think this might not be very accurate since functions like gettime etc will introduce their own latency. On 1/10/07, sandeep lahane <sandeep.lahane@xxxxxxxxx> wrote:
Hi Can I write a user space program or a kernel module to measure the context switch latency? I dont think this is possible from user space, was just curious whether there is any simple way of measuring this latency. If not then how this context switch latency is measured while benchmarking the real time kernels? -- Regards, Sandeep.
-- Regards, Sandeep. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/