我正在运行owfs (单线文件系统),而其他一些进程每隔10秒才对温度数据进行采样。现在,linux机器上的powertop显示owfs进程每秒发生40到50个唤醒事件。我假设owfs经常去轮询/采样传感器,这就是我看到这些唤醒的原因。
由于我非常热衷于这台小机器的能源消耗(每节省一点能源都有帮助),我想知道是否有方法可以降低这种唤醒频率。
发布于 2016-01-06 16:26:43
如果您启动owhttpd并浏览主机上的port :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 sessionhttps://stackoverflow.com/questions/34558115
复制相似问题