找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 687|回复: 13

为什么我的openwrt上只有coremark分数,没有ases-128-gcm的分数?

[复制链接]
为什么我的openwrt首页上只有coremark分数,没有ases-128-gcm的分数?



我看别人的首页还有aes-128-gcm等性能指标


有人知道这个aes的指标是怎么显示出来的吗?/etc/coremark.sh、openssl speed -evp aes-128-gcm 等命令都已经执行过了,求解
我的恩山、我的无线 The best wifi forum is right here.
要改luci,你只是执行了测试,又没有动luci,怎么可能显示出来?
编译的时候改比较好

点评

我在想是不是哪个配置文件的问题,或者脚本的问题,我看别的人执行coremare.sh的时候,日志中显示也测了aes的跑分"root@OpenWrt:~# /etc/coremark.sh testing coremark ... CPU CoreMark : 30039.426748 testing  详情 回复 发表于 2023-2-9 20:42
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
l20210120 发表于 2023-2-9 20:04
要改luci,你只是执行了测试,又没有动luci,怎么可能显示出来?
编译的时候改比较好

我在想是不是哪个配置文件的问题,或者脚本的问题,我看别的人执行coremare.sh的时候,日志中显示也测了aes的跑分"root@OpenWrt:~# /etc/coremark.sh
testing coremark ...
CPU CoreMark : 30039.426748
testing aes-128-gcm ...
aes-128-gcm(1K) : 3662160.21k
testing aes-256-gcm ...
aes-256-gcm(1K) : 2832508.03k
testing chacha20-poly1305 ..."

而我执行/etc/coremark.sh的时候日志只显示cpu的分数
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
我还特地关了  你还要显示 COREMARK.SH跑 又不是看不到分数  看一次 也就不关心了

点评

我看了我的coremark.sh里是不跑aes相关的  详情 回复 发表于 2023-2-10 09:15
怎么关闭的?可以看一下你的coremark.sh吗  详情 回复 发表于 2023-2-10 09:02
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
你这刷的谁的固件

点评

Immortal 的  详情 回复 发表于 2023-2-10 08:56
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
iamyangyi 发表于 2023-2-10 05:00
你这刷的谁的固件

Immortal 的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
iamyangyi 发表于 2023-2-10 04:58
我还特地关了  你还要显示 COREMARK.SH跑 又不是看不到分数  看一次 也就不关心了

怎么关闭的?可以看一下你的coremark.sh吗

点评

你那个是LCUI设置没显示吧  详情 回复 发表于 2023-2-10 17:01
关 你就跑一半关掉 就没有了  详情 回复 发表于 2023-2-10 17:01
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
iamyangyi 发表于 2023-2-10 04:58
我还特地关了  你还要显示 COREMARK.SH跑 又不是看不到分数  看一次 也就不关心了

我看了我的coremark.sh里是不跑aes相关的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
木有人吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

dearjohn 发表于 2023-2-10 09:02
怎么关闭的?可以看一下你的coremark.sh吗

关 你就跑一半关掉 就没有了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

dearjohn 发表于 2023-2-10 09:02
怎么关闭的?可以看一下你的coremark.sh吗

你那个是LCUI设置没显示吧

点评

有哪里可以改设置成显示吗  详情 回复 发表于 2023-2-10 17:13
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
iamyangyi 发表于 2023-2-10 17:01
你那个是LCUI设置没显示吧

有哪里可以改设置成显示吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
没有人知道吗?怎样才能让首页显示aes的跑分?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
搞定了


只要改一下/etc/coremark.sh脚本就可以了。,改成
  1. #!/bin/sh

  2. echo "testing coremark ... "
  3. sleep 1

  4. /bin/coremark > /tmp/coremark.log
  5. cat /tmp/coremark.log | grep "CoreMark 1.0" | cut -d  "/"  -f 1 > /etc/bench.log
  6. sed -i 's/CoreMark 1.0/ (CpuMark/g'  /etc/bench.log
  7. echo " Scores)" >> /etc/bench.log

  8. cat /etc/bench.log
  9. sleep 5

  10. echo "<br/>" >> /etc/bench.log
  11. echo "<div><table>" >> /etc/bench.log
  12. if [ -x /usr/bin/openssl ];then
  13.     CORES=$(grep processor /proc/cpuinfo | wc -l)
  14.     PROJS="aes-128-gcm aes-256-gcm chacha20-poly1305"
  15.     for P in $PROJS;do
  16.         echo "testing $P ..."
  17.         sleep 1
  18.         /usr/bin/openssl speed -multi $CORES -evp $P 1>/tmp/${P}.score 2>/dev/null || echo "NA" >/tmp/${P}.score
  19.         S=$(tail -n 1 /tmp/${P}.score | awk '{print $5}')
  20.     echo "${P}(1K) : ${S}"
  21.     echo "<tr><td>${P}(1K)</td><td>$S</td></tr>" >> /etc/bench.log
  22.     rm -f /tmp/${P}.score
  23.     sleep 5
  24.     done
  25. fi
  26. echo "</table></div>" >> /etc/bench.log

  27. if [ -f "/etc/bench.log" ]; then
  28. sed -i '/coremark/d' /etc/crontabs/root
  29. crontab /etc/crontabs/root
  30. fi
复制代码


如果页面做了xss防护(<table>这种html标签会被转义),
就改成
  1. #!/bin/sh

  2. echo "testing coremark ... "
  3. sleep 1

  4. /bin/coremark > /tmp/coremark.log
  5. cat /tmp/coremark.log | grep "CoreMark 1.0" | cut -d  "/"  -f 1 > /etc/bench.log
  6. sed -i 's/CoreMark 1.0/ (CpuMark/g'  /etc/bench.log
  7. echo " Scores)" >> /etc/bench.log

  8. cat /etc/bench.log
  9. sleep 5

  10. if [ -x /usr/bin/openssl ];then
  11.    CORES=$(grep processor /proc/cpuinfo | wc -l)
  12.    PROJS="aes-128-gcm aes-256-gcm chacha20-poly1305"
  13.    for P in $PROJS;do
  14.        echo "testing $P ..."
  15.        sleep 1
  16.        /usr/bin/openssl speed -multi $CORES -evp $P 1>/tmp/${P}.score 2>/dev/null || echo "NA" >/tmp/${P}.score
  17.        S=$(tail -n 1 /tmp/${P}.score | awk '{print $5}')
  18.        echo "${P}(1K) : ${S}"
  19.        echo " __ [${P}(1K) : $S] " >> /etc/bench.log
  20.        rm -f /tmp/${P}.score
  21.              sleep 5
  22.    done
  23. fi

  24. if [ -f "/etc/bench.log" ]; then
  25. sed -i '/coremark/d' /etc/crontabs/root
  26. crontab /etc/crontabs/root
  27. fi
复制代码

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 23:12

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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