zerotier / zerotier/ZeroTierOne

[android] too many logs take up cpu usage, reduce net speed

Open
#2,001 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
17.1k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

zerotier version: 1.10.6-2

os ver: android 11

hardware: hk1rbox, cpu rk3566

logcat example:

05-08 04:03:06.727 16382 17222 D TunTapAdapter: Packet sent to ZT
05-08 04:03:06.727 16382 17222 D TunTapAdapter: Sending packet to ZeroTier. 1942 bytes.
05-08 04:03:06.727 16382 17222 D ARPTable: Returning MAC for /192.168.195.236
05-08 04:03:06.727 16382 17222 D UdpCom  : onSendPacketRequested: Sent 1432 bytes to /192.168.31.12:9993
05-08 04:03:06.728 16382 17222 D UdpCom  : onSendPacketRequested: Sent 564 bytes to /192.168.31.12:9993
05-08 04:03:06.729 16382 17222 D TunTapAdapter: Packet sent to ZT
05-08 04:03:06.742 16382 17148 D UdpCom  : Got 90 Bytes From: /192.168.31.12:65378
05-08 04:03:06.742 16382 17148 D TunTapAdapter: Got Virtual Network Frame. Network ID: xxxxxxxxx Source MAC: ba:29:00:09:9f:56 Dest MAC: ba:18:4b:1f:fc:b2 Ether type: 0800 VLAN ID: 0 Frame Length: 52
05-08 04:03:06.743 16382 17148 D TunTapAdapter: Got IPv4 packet. Length: 52 Bytes
05-08 04:03:06.743 16382 17148 D UdpCom  : Got 90 Bytes From: /192.168.31.12:65378
05-08 04:03:06.743 16382 17148 D TunTapAdapter: Got Virtual Network Frame. Network ID: xxxxxxxxxx Source MAC: ba:29:00:09:9f:56 Dest MAC: ba:18:4b:1f:fc:b2 Ether type: 0800 VLAN ID: 0 Frame Length: 52
05-08 04:03:06.743 16382 17148 D TunTapAdapter: Got IPv4 packet. Length: 52 Bytes
05-08 04:03:06.744 16382 17148 D UdpCom  : Got 114 Bytes From: /192.168.31.12:65378
05-08 04:03:06.744 16382 17148 D TunTapAdapter: Got Virtual Network Frame. Network ID: xxxxxxxxx Source MAC: ba:29:00:09:9f:56 Dest MAC: ba:18:4b:1f:fc:b2 Ether type: 0800 VLAN ID: 0 Frame Length: 76
05-08 04:03:06.744 16382 17148 D TunTapAdapter: Got IPv4 packet. Length: 76 Bytes

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the logcat entries from TunTapAdapter, ARPTable, and UdpCom in the Android code. Determine which packet-level messages are emitted continuously and how logging affects CPU and network throughput. Done means excessive logs no longer impose the reported cost while useful diagnostics remain available; no file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp
Domain
mobile-dev, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.