全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: HXS
打印 上一主题 下一主题

终于搞清楚了扶墙跑不起来的原因了,原来扶墙真的要高配

  [复制链接]
1#
发表于 2024-4-26 00:58:52 | 显示全部楼层
  1. htop -d 0.1
复制代码


软路由的CPU确实影响转发效率,但是你这个代码设置的间隔时间太短了,CPU全部被htop进程占用了,至少你这个例子里,我感觉是你的问题。
2#
发表于 2024-4-26 01:01:17 | 显示全部楼层
本帖最后由 ugvfpdcuwfnh 于 2024-4-26 01:02 编辑
  1. ~# htop --help
  2. htop 3.3.0
  3. (C) 2004-2019 Hisham Muhammad. (C) 2020-2024 htop dev team.
  4. Released under the GNU GPLv2+.

  5. -C --no-color                   Use a monochrome color scheme
  6. -d --delay=DELAY                Set the delay between updates, in tenths of seconds
  7. -F --filter=FILTER              Show only the commands matching the given filter
  8. -h --help                       Print this help screen
  9. -H --highlight-changes[=DELAY]  Highlight new and old processes
  10. -M --no-mouse                   Disable the mouse
  11. -n --max-iterations=NUMBER      Exit htop after NUMBER iterations/frame updates
  12. -p --pid=PID[,PID,PID...]       Show only the given PIDs
  13.    --readonly                   Disable all system and process changing features
  14. -s --sort-key=COLUMN            Sort by COLUMN in list view (try --sort-key=help for a list)
  15. -t --tree                       Show the tree view (can be combined with -s)
  16. -u --user[=USERNAME]            Show only processes for a given user (or $USER)
  17. -U --no-unicode                 Do not use unicode but plain ASCII
  18. -V --version                    Print version info

  19. Press F1 inside htop for online help.
  20. See 'man htop' for more information.
复制代码


-d 的参数单位是十分之一秒,你还设个0.1,那就是百分之一秒,CPU全去跑htop了



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

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-24 20:00 , Processed in 0.077865 second(s), 6 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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