Opened 2 years ago

Last modified 4 months ago

#24062 assigned task

CPU profiling of Tor on Android device

Reported by: ahf Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: s8-perf, s8-201710, 034-triage-20180328, 034-removed-20180328
Cc: ahf Actual Points:
Parent ID: #24061 Points:
Reviewer: Sponsor:

Description

Using Android's simpleperf (or other tools) to collect CPU measurements in a reproducible manner on a set of Android devices.

It is important that we ensure that we can reproduce the results quickly and not require a test to run over multiple days/nights - this was a big problem with the sponsor 4 measurements where we used Chutney over a longer period of time.

Child Tickets

TicketStatusOwnerSummaryComponent
#24374closednickmReduce monotime_coarse_absolute_msec() usageCore Tor/Tor

Change History (14)

comment:1 Changed 2 years ago by ahf

I've made a sample report + callgraph from simpleperf from observing Tor starting up for the first time on the device. The sample results can be seen at: https://people.torproject.org/~ahf/sponsor8/sample-reports/

comment:2 Changed 2 years ago by ahf

Owner: set to ahf
Status: newassigned

comment:3 Changed 23 months ago by ahf

https://people.torproject.org/~ahf/sponsor8/ contains data from both bootstrap (clean data directory when starting Tor for the first time) and some samples from downloading a large file via Tor on an already bootstrapped client.

Patch coming up with some documentation on how to read and analyse the perf.data files.

comment:4 Changed 23 months ago by ahf

Status: assignedneeds_review

Added some simpleperf instructions in https://gitlab.com/ahf/tor/merge_requests/21

Please don't close this ticket when this is pushed to tor.git.

comment:5 Changed 23 months ago by nickm

Milestone: Tor: 0.3.4.x-finalTor: 0.3.3.x-final

comment:6 Changed 23 months ago by nickm

Keywords: review-group-26 added

Creating review-group-26.

comment:7 Changed 23 months ago by nickm

Status: needs_reviewassigned

Merged to master; returning this ticket to "assigned".

comment:8 Changed 23 months ago by nickm

Keywords: review-group-26 removed

comment:9 Changed 20 months ago by ahf

Milestone: Tor: 0.3.3.x-finalTor: 0.3.4.x-final

This is a tracker bug. Moving forward to 0.3.4.

comment:10 Changed 19 months ago by nickm

Keywords: 034-triage-20180328 added

comment:11 Changed 19 months ago by nickm

Keywords: 034-removed-20180328 added

Per our triage process, these tickets are pending removal from 0.3.4.

comment:12 Changed 18 months ago by nickm

Milestone: Tor: 0.3.4.x-finalTor: unspecified

These tickets, tagged with 034-removed-*, are no longer in-scope for 0.3.4. We can reconsider any of them, if time permits.

comment:13 Changed 9 months ago by gaba

Sponsor: Sponsor8

comment:14 Changed 4 months ago by gaba

Cc: ahf added
Owner: ahf deleted
Note: See TracTickets for help on using tickets.