【问题标题】:Besides checking /boot/config_xx and /proc/config.gz, how to confirm the preempt rt option is enabled or not for a specific Linux kernel?除了检查 /boot/config_xx 和 /proc/config.gz 之外,如何确认特定 Linux 内核的 preempt rt 选项是否启用?
【发布时间】:2021-04-04 21:41:00
【问题描述】:

除了检查 /boot/config_xx 和 /proc/config.gz 之外,如何确认特定 Linux 内核的 preempt rt 选项是否启用?

我可以通过 SSH 登录操作系统,并且我有 root 权限。

【问题讨论】:

    标签: linux linux-kernel preempt-rt


    【解决方案1】:

    您可以在命令行中执行uname -a,应该会显示类似这样的内容。

    ~$ uname -a
    Linux raspberrypi 5.10.35-rt39-v7l+ #2 SMP PREEMPT_RT Thu May 13 02:26:47 PDT 2021 armv7l GNU/Linux
    ~$
    

    然后你可以在 ssh 窗口的顶部抬头看到同样的东西(手掌拍打额头是可选的):

    symetrix@192.168.2.45's password:
    Linux raspberrypi 5.10.35-rt39-v7l+ #2 SMP PREEMPT_RT Thu May 13 02:26:47 PDT 2021 armv7l
    
    The programs included with the Debian GNU/Linux system are free software; ...
    

    字符串 PREEMPT_RT(而不仅仅是 PREEMPT 或其他此类调度程序术语)说明发生了什么。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-22
      • 2021-10-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-26
      • 1970-01-01
      相关资源
      最近更新 更多