找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 731|回复: 6

请教OPENWRT调整 ARM CPU运行模式指令

[复制链接]
发表于 2022-4-21 07:57 | 显示全部楼层 |阅读模式
本帖最后由 iamyangyi 于 2022-4-21 08:09 编辑

OPENWRT中想计划任务中定时执行CPU运行模式指令 “比如 8点开启 performance模式” “24点开启onemand模式”,主要不知道CPU调整指令 ,知道 UBUNTU有类似cpufreq-set -g performance的指令,OPENWRT执行不了,特请教下

我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2022-4-21 08:23 | 显示全部楼层
嗯 后来看了 只要调大小核心各其中一个就行,但是执行说没有权限
root@X1:~# echo performance > /sys/devices/system/cpu/cpufreq/policy4/scaling_available_governors
-bash: /sys/devices/system/cpu/cpufreq/policy4/scaling_available_governors: Permission denied
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-4-21 08:47 | 显示全部楼层
这么高端
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-4-21 19:15 | 显示全部楼层
echo ondemand > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpufreq/policy1/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpufreq/policy2/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpufreq/policy3/scaling_governor
多写几条cron应该可行。
另openwrt不用考虑权限吧,都是root。

点评

echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor -bash: echo: write error: Invalid argument 能成功 但是会报个参数奇怪,是什么原因。  详情 回复 发表于 2022-4-21 19:52
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-4-21 19:52 | 显示全部楼层
本帖最后由 iamyangyi 于 2022-4-21 19:53 编辑
琳琅 发表于 2022-4-21 19:15
echo ondemand > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
echo ondemand > /sys/devic ...

echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
-bash: echo: write error: Invalid argument
只有大小核心各调一个,就能成功,但是执行语句会报个参数错误,是什么原因。

点评

看一下会不会是不支持?  详情 回复 发表于 2022-4-21 20:59
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-4-21 20:59 | 显示全部楼层
iamyangyi 发表于 2022-4-21 19:52
echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
-bash: echo: write er ...
  1. root@OpenWrt:~# cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_governors
  2. ondemand performance schedutil
复制代码


看一下会不会是不支持?

点评

有效果的,就是会提示这个 write error: Invalid argument  详情 回复 发表于 2022-4-21 21:55
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-4-21 21:55 | 显示全部楼层
本帖最后由 iamyangyi 于 2022-4-21 22:13 编辑
琳琅 发表于 2022-4-21 20:59
看一下会不会是不支持?

有效果的,就是会提示这个 write error: Invalid argument 不知道哪不对
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-28 17:52

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表