如何在终端中检查HZ? [英] How to check HZ in the terminal?

查看:98
本文介绍了如何在终端中检查HZ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了此 http://kaasxxx.wordpress. com/2008/01/22/linux-hz-checker/ 但是该脚本似乎不起作用.无论如何,是否知道在Linux终端中检查"HZ"的简便方法?

I have seen this http://kaasxxx.wordpress.com/2008/01/22/linux-hz-checker/ But the script seems not to work. Does anyway know an easy way to check "HZ" in the terminal in Linux?

推荐答案

对此问题没有统一的答案,因为在某些情况下,您的内核可能被滴答作响"地编译,并且根本不使用常规的定时器中断.但是,如果您使用的是传统内核和传统发行版,则可以在/boot下找到当前内核的.config文件,其内容类似于grep 'CONFIG_HZ=' /boot/config-$(uname -r).

There's no uniform answer to this questions, as in some cases your kernel may be compiled "tickless" and not use a regular timer interrupt at all. But if you're on a traditional kernel and a traditional distro, you can find the current kernel's .config file under /boot with something like grep 'CONFIG_HZ=' /boot/config-$(uname -r).

这篇关于如何在终端中检查HZ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆