aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-09 20:49:34 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-09 20:49:34 +0000
commit3d90da5db556334781529bcc1cdb639866d0b019 (patch)
tree44586b3097ff6819bd3f3cb3935e0575427baf25
parent8990dbcf7ac33f22708b3414108225c6af464e13 (diff)
downloadtor-3d90da5db556334781529bcc1cdb639866d0b019.tar
tor-3d90da5db556334781529bcc1cdb639866d0b019.tar.gz
Add a description of how to make AES parallelized across cores to TODO.021.
svn:r17540
-rw-r--r--doc/TODO.02122
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/TODO.021 b/doc/TODO.021
index 0cbfeb25e..0cfc3fb41 100644
--- a/doc/TODO.021
+++ b/doc/TODO.021
@@ -238,6 +238,28 @@ Nice to have for 0.2.1.x:
- Handle multi-core cpus better
- Split circuit AES across cores
+ - Split cell_queue_t into a new structure with a processed subqueue,
+ an unprocessed subqueue, and a symmetric key.
+ - Write a function to pull cells from the unprocessed subqueue,
+ en/decrypt them, and place them on the processed subqueue.
+ - When a cell is added to a queue that previously had no
+ unprocessed cells, put that queue into a set of queues that
+ need to be processed. When the last cell is processed in a
+ queue, remove it from the set of queues that need to be
+ processed.
+ - Worker code to process queues in round-robin fashion.
+ - Think about how to be fair to differet circuits _and_ about to get
+ CPU-affinity, if that matters.
+ - When a cell is processed and placed onto a processed subqueue
+ that was previously empty, _and_ the or_conn output buffer
+ that the queue is targetting is empty, stick the buffer onto a
+ list of buffers that need attention and notify the main
+ thread if it was not already on the list.
+ - When the main thread gets notified, it pumps those buffers.
+ (i.e., it puts cells onto them from some of their circuits).
+ - To free a queue that is not currently processing, grab its lock
+ and free it.
+ - To free a queue that _is_ processing, .... ?
- Documentation
P - Make documentation realize that location of system configuration file