CPUThreadPoolExecutor's default queue is quite big
authorMatt Dordal <mnd@fb.com>
Wed, 11 Mar 2015 20:52:39 +0000 (13:52 -0700)
committerAndre Azevedo <aap@fb.com>
Wed, 18 Mar 2015 03:18:45 +0000 (20:18 -0700)
commit905b5c10e074fe9b35e21e848cb1b29f6f663fb3
tree408d57ee62c91c78741cd2c3e2d81b8ce661e4a2
parent10cd40f698e7258fbf2538924c5f8aa35f886f31
CPUThreadPoolExecutor's default queue is quite big

Summary:
By default, CPUThreadPoolExecutor uses 100 MB of rss for the CPU queue. This is
substantially higher than expected.

Reduce the default queue size so that it uses much less memory upfront, down
to about 6 MB going by the heap profile.

Reviewed By: davejwatson@fb.com

Subscribers: mwa, ott, iaroslav, jrsherwood, aflock, slarsen, davejwatson, trunkagent, fugalh, folly-diffs@, jsedgwick, yfeldblum

FB internal diff: D1900539

Tasks: 6453427

Signature: t1:1900539:1426103805:34fb7b081058fbde89370b5d9ec24ea572c4b0e2
folly/wangle/concurrent/CPUThreadPoolExecutor.cpp