1

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

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

4

1 回答 1

0

如果您启动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
于 2016-01-06T08:26:43.437 回答