我分别测试了 alacritty 、st 各 50 个,下面是 systemd 统计到的内存、cpu 使用量。 (其中 cpu 使用时间是全部启动完查到的)
看内存、cpu 使用,我一点都不觉得值得用 alacritty 啊。我跟风用了 3 年有
全部 50 个实例的资源使用
● alacritty.slice - Slice /alacritty
Loaded: loaded
Active: active since Sat 2022-10-01 16:44:10 CST; 1min 41s ago
Until: Sat 2022-10-01 16:44:10 CST; 1min 41s ago
Tasks: 782
Memory: 5.8G
CPU: 17.592s
CGroup: /user.slice/user-1000.slice/user@1000.service/alacritty.slice
├─run-r0247a080956e4b4a83f20f6a9c648b3f.service
│ ├─300473 /usr/bin/alacritty
│ └─300704 /bin/zsh
● st.slice - Slice /st
Loaded: loaded
Active: active since Sat 2022-10-01 16:46:41 CST; 2min 10s ago
Until: Sat 2022-10-01 16:46:41 CST; 2min 10s ago
Tasks: 100
Memory: 307.4M
CPU: 9.463s
CGroup: /user.slice/user-1000.slice/user@1000.service/st.slice
├─run-r0011419f2a6f4dd9aa777fe36368ce74.service
│ ├─302282 /usr/bin/st
│ └─302305 /bin/zsh
单个实例的资源使用
● run-r0247a080956e4b4a83f20f6a9c648b3f.service - /usr/bin/alacritty
Loaded: loaded (/run/user/1000/systemd/transient/run-r0247a080956e4b4a83f20f6a9c6>
Transient: yes
Active: active (running) since Sat 2022-10-01 16:44:10 CST; 3min 44s ago
Main PID: 300473 (alacritty)
Tasks: 17 (limit: 38085)
Memory: 126.1M
CPU: 321ms
CGroup: /user.slice/user-1000.slice/user@1000.service/alacritty.slice/run-r0247a0>
├─300473 /usr/bin/alacritty
└─300704 /bin/zsh
● run-r0011419f2a6f4dd9aa777fe36368ce74.service - /usr/bin/st
Loaded: loaded (/run/user/1000/systemd/transient/run-r0011419f2a6f4dd9aa777fe3636>
Transient: yes
Active: active (running) since Sat 2022-10-01 16:48:36 CST; 2min 18s ago
Main PID: 302282 (st)
Tasks: 2 (limit: 38085)
Memory: 6.0M
CPU: 174ms
CGroup: /user.slice/user-1000.slice/user@1000.service/st.slice/run-r0011419f2a6f4>
├─302282 /usr/bin/st
└─302305 /bin/zsh
启动脚本
for _ in {1..50}; do
systemd-run --user --slice st /usr/bin/st
done
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.