diff options
author | Josh Blum | 2013-05-06 02:45:13 -0700 |
---|---|---|
committer | Josh Blum | 2013-05-06 02:45:13 -0700 |
commit | b3dc88793e76819f35b5a45d6fe7e40b7f9c178b (patch) | |
tree | 5ca561d5b8c645a258b00df3107608817ff34871 | |
parent | 770955f266603f0dad54e7aec8f8c0aa65a15f51 (diff) | |
download | sandhi-b3dc88793e76819f35b5a45d6fe7e40b7f9c178b.tar.gz sandhi-b3dc88793e76819f35b5a45d6fe7e40b7f9c178b.tar.bz2 sandhi-b3dc88793e76819f35b5a45d6fe7e40b7f9c178b.zip |
gras: increase default number of buffers
Think about benchmark implications later,
this only helps parallelism.
And also those blocks that inline buffers.
-rw-r--r-- | lib/block_allocator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/block_allocator.cpp b/lib/block_allocator.cpp index fb00d58..0dda99a 100644 --- a/lib/block_allocator.cpp +++ b/lib/block_allocator.cpp @@ -9,7 +9,7 @@ using namespace gras; const size_t AT_LEAST_BYTES = 32*(1024); //kiB per buffer const size_t AHH_TOO_MANY_BYTES = 32*(1024*1024); //MiB enough for me -const size_t THIS_MANY_BUFFERS = 2; //pool size +const size_t THIS_MANY_BUFFERS = 8; //pool size static void buffer_returner(ThreadPool tp, Theron::Address addr, const size_t index, SBuffer &buffer) { |