summaryrefslogtreecommitdiff
path: root/src/rust/protover/lib.rs
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2018-04-03 18:26:52 +0200
committerNick Mathewson <nickm@torproject.org>2018-04-12 11:14:16 -0400
commit31508a0abccfee1cda0869a9a7d22df74d6b67b7 (patch)
tree23bcbefc8feee360572afb096051091c31817e3e /src/rust/protover/lib.rs
parent5633a633796ca10e2866ff6fd5bc40b5f7895c30 (diff)
downloadtor-31508a0abccfee1cda0869a9a7d22df74d6b67b7.tar.gz
tor-31508a0abccfee1cda0869a9a7d22df74d6b67b7.zip
Use less memory for MaxMemInQueues for machines with more than 8 GB of RAM.
This patch changes the algorithm of compute_real_max_mem_in_queues() to use 0.4 * RAM iff the system has more than or equal to 8 GB of RAM, but will continue to use the old value of 0.75 * RAM if the system have less than * GB of RAM available. This patch also adds tests for compute_real_max_mem_in_queues(). See: https://bugs.torproject.org/24782
Diffstat (limited to 'src/rust/protover/lib.rs')
0 files changed, 0 insertions, 0 deletions