【问题标题】:powertop shows 40 wakeups/second for owfs, sensor sampling is only every 10 secondspowertop 显示 owfs 每秒唤醒 40 次,传感器采样仅每 10 秒一次
【发布时间】:2016-01-01 17:03:22
【问题描述】:

我正在运行owfs(1-wire 文件系统),其他一些进程仅每 10 秒对温度数据进行一次采样。现在,该 linux 框上的 powertop 显示 owfs 进程每秒有 40 到 50 个唤醒事件。我假设owfs 经常出去轮询/采样传感器,这就是我看到这些唤醒的原因。

由于我对这台小机器的能耗非常感兴趣(每一点节省都有帮助),我想知道是否有办法降低这种唤醒频率。

【问题讨论】:

    标签: raspberry-pi 1wire


    【解决方案1】:

    如果您在主机上启动owhttpd 并浏览端口:2121,您将看到一个带有超时设置的页面。

    您可以尝试调整设置,一旦满意,将其放入owfs.conf 文件中。我还没有这样做,但它应该可以工作。

    以下是我的网络上列出的设置/超时选项:

    directory
              60
    
    ftp 
             900
    
    ha7 
              60
    
    network 
               1
    
    presence    
             120
    
    serial  
               5
    
    server  
              10
    
    stable  
             300
    
    uncached    
               5
    
    volatile    
              15
    
    w1  
              30
    
    # Timeouts (all in seconds) 
    # cache for values that change on their own  timeout_volatile = value 
    # seconds "volatile" values remain in cache 
    # cache for values that change on command  timeout_stable = value 
    # seconds "stable" values remain in cache 
    # cache for directory lists (non-alarm)  timeout_directory = value 
    # seconds "directory" values remain in cache 
    # cache for 1-wire device location  timeout_presence = value 
    # seconds "device presence" (which bus)  timeout_serial = value 
    # seconds to wait for serial response  timeout_usb = value 
    # seconds to wait for USB response  timeout_network = value 
    # seconds to wait for tcp/ip response  timeout_ftp = value 
    # seconds inactivity before closing ftp session
    

    【讨论】:

    • 嗯,好吧。我已经在 owfs.org/uploads/owfs.html 上检查了 owfs.conf 的文档,唯一适用的超时似乎是 timeout_volatile,这似乎不会影响唤醒率。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-04
    • 1970-01-01
    • 2011-02-01
    • 1970-01-01
    • 2019-09-28
    • 1970-01-01
    相关资源
    最近更新 更多