3

旧手机当 Linux 服务器的吐槽和讨论

 1 year ago
source link: https://www.v2ex.com/t/884743
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  Android

旧手机当 Linux 服务器的吐槽和讨论

  s82kd92l · 1 小时 1 分钟前 via Android · 406 次点击

手机是红米 note5 6+64 ,为了类似树莓派的服务器,做了以下操作:

  1. 刷了 android 12 的第三方 rom,貌似内核也做了一定修改,多了一些 cifs 之类的模块

  2. 安装 termux+magisk, 用 termux 常态化保持 wakelock

  3. 安装 acc 充电模块,保持电量 70-75 区间

要吐槽的地方:

a. Geekbench 单核 /多核都不输 9 年前的 intel 22955u chromebook, 但命令行体感有明显差距,跑个 htop 都能占用 25% cpu, 运行命令卡卡的, 编译内核更是卡到爆,和 Chromebook 完全不是一个流畅度,而且 chromebook 才两核。不知道是不是只用电池的时候限制了 cpu 频率,是否能修改这个调度策略?

b. Wifi ping 的第一个包延迟巨大,通常要 70-150ms, 第二个包就只有 5-20ms 了。Android 里好像有个 wifilock 的机制能禁用 wifi power save, 但 termux 没这个功能,不知道有没有其他 app 提供类似接口?

c. 没有 docker/podman, 没有这个现代 linux 的基础设施,很多程序部署起来麻烦很多

d. 内核带了 cifs 模块,但是还是不知道怎么把 nas 的空间给 termux/android 用。内置 64G 太不够了

e. usb 2.0 太操蛋了, 当手机用的时候用户体验差距不大,等到闲置了要做其他用途时就发现没 3.0 真的是电子垃圾


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK