Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在settings.ini中启用cgroup,service.log会出现报错。 #134

Open
rianjskis opened this issue Jul 26, 2024 · 0 comments
Open

在settings.ini中启用cgroup,service.log会出现报错。 #134

rianjskis opened this issue Jul 26, 2024 · 0 comments

Comments

@rianjskis
Copy link

rianjskis commented Jul 26, 2024

启用这三个后:

Set cgroup to limit memory usage

cgroup_memcg="true"
memcg_limit="50M"

Set cgroup to cpuset usage

cgroup_cpuset="true"

Set cgroup to blkio usage

cgroup_blkio="true"

启动日志:
Asia/Shanghai
China Unicom,China Unicom / LTE,NR_SA
Fri Jul 26 12:50:04 CST 2024
version=v1.6.0_c32eb04_20240724_debug
arm64-v8a
━━━━━━━━━━━━━━━━━━
12:50 pm [Info]: Good day
12:50 pm [Info]: Current /data/adb/ap/bin/busybox v1.36.1
12:50 pm [Info]: Using kernel in /data/adb/box/bin/sing-box.
12:50 pm [Info]: sing-box version 1.10.0-alpha.24

Environment: go1.22.5 android/arm64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_acme,with_clash_api
Revision: 76eb8a39ff1bfb97a93b562602f7e205378787a7
CGO: enabled
12:50 pm [Info]: deleting and backup logs
12:50 pm [Info]: crontab disabled.
12:50 pm [Info]: client-list: [ clash sing-box xray v2fly hysteria ]
12:50 pm [Info]: choose: sing-box, start the service.
12:50 pm [Info]: Config /data/adb/box/sing-box/config.json found
12:50 pm [Info]: add 32615 to /sys/fs/cgroup/sing-box/cgroup.procs
12:50 pm [Info]: add 32615 to /dev/cpuset/top-app/cgroup.procs
12:50 pm [Info]: add 32615 to /dev/blkio/background/cgroup.procs
12:50 pm [Info]: sing-box service is running.
12:50 pm [Info]: proxy: blacklist + network: tproxy +
12:50 pm [Info]: sing-box has started with the 'root:net_admin' user group.
12:50 pm [Info]: sing-box status: S (sleeping) (PID: 32615)
12:50 pm [Info]: sing-box memory usage: 32 MB, swap: 0 KB
12:50 pm [Info]: sing-box CPU usage: 1.1%
12:50 pm [Info]: sing-box list of allowed CPUs : 0-7
12:50 pm [Info]: sing-box Which CPU running on : 7
12:50 pm [Info]: battery temperature: 33°C
12:50 pm [Info]: sing-box running time: 0:05
12:50 pm [Debug]: fake-ip-range: 198.18.0.0/15, fc00::/18
12:50 pm [Info]: iptables -w 32 + ip6tables -w 32
12:50 pm [Info]: Using Tproxy: tcp + udp.
12:50 pm [Info]: Creating iptables transparent proxy rules.
12:50 pm [Info]: ap+ wlan+ rndis+ swlan+ transparent proxy.
12:50 pm [Info]: transparent proxy for all apps.
12:50 pm [Info]: Creating iptables transparent proxy rules done.
12:50 pm [Debug]: Using IPv6.
12:50 pm [Info]: Creating ip6tables transparent proxy rules done.
12:50 pm [Info]: sing-box connected.

service.log:
/data/adb/box/scripts/box.tool[837]: can't create /sys/fs/cgroup/sing-box/memory.limit_in_bytes: Permission denied
这种情况请问该如何解决,谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant