]> git.ipfire.org Git - thirdparty/tor.git/commit
Use less memory for MaxMemInQueues for machines with more than 8 GB of RAM.
authorAlexander Færøy <ahf@torproject.org>
Tue, 3 Apr 2018 16:26:52 +0000 (18:26 +0200)
committerNick Mathewson <nickm@torproject.org>
Thu, 12 Apr 2018 15:14:16 +0000 (11:14 -0400)
commit31508a0abccfee1cda0869a9a7d22df74d6b67b7
tree23bcbefc8feee360572afb096051091c31817e3e
parent5633a633796ca10e2866ff6fd5bc40b5f7895c30
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
changes/bug24782 [new file with mode: 0644]
src/or/config.c
src/or/config.h
src/test/test_config.c