我对 Linux 内核中的调度程序做了一些简单的更改。 现在,我愿意
想看看这些变化如何影响系统的响应时间; 换句话说,
我想知道与原始调度程序相比,我的修改后上下文切换需要多长时间。 一个简单的方法是使用时间戳计数器,然后使用 printk 输出上下文切换所花费的时间; 显然,在这种情况下会打印出很多信息。 所以我想知道是否还有其他更好的方法来测量Linux调度程序响应时间?
谢谢
I have done some simple changes to the scheduler in the Linux Kernel. Now, I would
like to see how those changes affect the response time of the system; in other words,
I would like to know how long a context switch takes with my modifications compared to the original scheduler. A straightforward approach would be to use the time stamp counter, and use then the printk to output the time it took for the context switch; obviously, in this case a lot of information is printed out. So I wonder if there is any other, better approach to measure the Linux scheduler response time?
Thanks
发布评论
评论(1)
有几个内核级跟踪框架可能会对您有所帮助。 请参阅 内核跟踪系统页面noreferrer">eLinux.org 提供了可用选项的详细概述。
There are several kernel-level trace frameworks, which might help you. See the Kernel Trace Systems page on eLinux.org for a nice overview of the available options.