1gb-16threads
This commit is contained in:
parent
0ba69e3832
commit
0901dd87ac
@ -42,18 +42,27 @@ class UnpackingCache
|
|||||||
// = n * 21 bytes
|
// = n * 21 bytes
|
||||||
// Total = n * (25 + 21) = n * 46 bytes
|
// Total = n * (25 + 21) = n * 46 bytes
|
||||||
// Total cache size: 500 mb = 500 * 1024 *1024 bytes = 524288000 bytes
|
// Total cache size: 500 mb = 500 * 1024 *1024 bytes = 524288000 bytes
|
||||||
|
// Total cache size: 1024 mb = 1024 * 1024 *1024 bytes = 1073741824 bytes
|
||||||
|
// Total cache size: 500 mb = 500 * 1024 *1024 bytes = 524288000 bytes
|
||||||
|
|
||||||
// THREAD LOCAL STORAGE
|
// THREAD LOCAL STORAGE (500 mb)
|
||||||
// Number of lines we need = 524288000 / 46 / number of threads = 11397565 / number of threads
|
// Number of lines we need = 524288000 / 46 / number of threads = 11397565 / number of threads
|
||||||
// 16 threads: 11397565 / 16 = 712347
|
// 16 threads: 11397565 / 16 = 712347
|
||||||
// 8 threads: 11397565 / 8 = 1424695
|
// 8 threads: 11397565 / 8 = 1424695
|
||||||
// 4 threads: 11397565 / 4 = 2849391
|
// 4 threads: 11397565 / 4 = 2849391
|
||||||
// 2 threads: 11397565 / 2 = 5698782
|
// 2 threads: 11397565 / 2 = 5698782
|
||||||
|
|
||||||
|
// THREAD LOCAL STORAGE (1024 mb)
|
||||||
|
// Number of lines we need = 1073741824 / 46 / number of threads = 23342213 / number of threads
|
||||||
|
// 16 threads: 23342213 / 16 = 1458888
|
||||||
|
// 8 threads: 23342213 / 8 = 2917776
|
||||||
|
// 4 threads: 23342213 / 4 = 5835553
|
||||||
|
// 2 threads: 23342213 / 2 = 11671106
|
||||||
|
|
||||||
// SHARED STORAGE CACHE
|
// SHARED STORAGE CACHE
|
||||||
// Number of lines we need for shared storage cache = 524288000 / 20 = 26214400
|
// Number of lines we need for shared storage cache = 524288000 / 20 = 26214400
|
||||||
|
|
||||||
UnpackingCache(unsigned timestamp) : m_cache(712347), m_current_data_timestamp(timestamp){};
|
UnpackingCache(unsigned timestamp) : m_cache(1458888), m_current_data_timestamp(timestamp){};
|
||||||
|
|
||||||
UnpackingCache(std::size_t cache_size, unsigned timestamp)
|
UnpackingCache(std::size_t cache_size, unsigned timestamp)
|
||||||
: m_cache(cache_size), m_current_data_timestamp(timestamp){};
|
: m_cache(cache_size), m_current_data_timestamp(timestamp){};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user