Opened 2 years ago

Last modified 2 years ago

#26900 new enhancement

Reduce background compression thread priority

Reported by: Hello71 Owned by:
Priority: Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: performance, compression
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


As I understand, the compression is not latency-sensitive, i.e. if we get it done 30 seconds or 1 minute later, nobody really minds, but if we process 10000 packets 200 ms slower, that materially affects user experience. Also, I think if you do not set the thread priority, modern schedulers may assume that because it runs infrequently, the compression task is a "foreground" or "interactive" task and the actual cell relaying is a "background" task that may be slowed down to minimize user impact, exactly the opposite of what we want.

Therefore, this should improve single-CPU relay performance (and multi-CPU relay performance once we implement better multithreading).

Child Tickets

Change History (1)

comment:1 Changed 2 years ago by catalyst

Keywords: performance compression added
Milestone: Tor: unspecified
Note: See TracTickets for help on using tickets.