From d55ba1d97f51d01fdd01bc5a2159013bfb7bb22d Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Thu, 8 Jun 2017 20:40:32 +0200 Subject: [PATCH] reset stack-size to 4kB for skynet-tests --- performance/fiber/numa/skynet_stealing_detach.cpp | 2 +- performance/fiber/skynet_detach.cpp | 2 +- performance/fiber/skynet_join.cpp | 2 +- performance/fiber/skynet_shared_detach.cpp | 2 +- performance/fiber/skynet_shared_join.cpp | 2 +- performance/fiber/skynet_stealing_async.cpp | 2 +- performance/fiber/skynet_stealing_detach.cpp | 2 +- performance/fiber/skynet_stealing_join.cpp | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/performance/fiber/numa/skynet_stealing_detach.cpp b/performance/fiber/numa/skynet_stealing_detach.cpp index 6d64064c..1b06304c 100644 --- a/performance/fiber/numa/skynet_stealing_detach.cpp +++ b/performance/fiber/numa/skynet_stealing_detach.cpp @@ -85,7 +85,7 @@ int main() { barrier b{ hardware_concurrency( topo) }; std::size_t size{ 1000000 }; std::size_t div{ 10 }; - allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; + allocator_type salloc{ allocator_type::traits_type::page_size() }; std::uint64_t result{ 0 }; channel_type rc{ 2 }; std::vector< std::thread > threads; diff --git a/performance/fiber/skynet_detach.cpp b/performance/fiber/skynet_detach.cpp index d15fd184..3b1e7484 100644 --- a/performance/fiber/skynet_detach.cpp +++ b/performance/fiber/skynet_detach.cpp @@ -51,7 +51,7 @@ int main() { try { std::size_t size{ 1000000 }; std::size_t div{ 10 }; - allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; + allocator_type salloc{ allocator_type::traits_type::page_size() }; std::uint64_t result{ 0 }; channel_type rc{ 2 }; time_point_type start{ clock_type::now() }; diff --git a/performance/fiber/skynet_join.cpp b/performance/fiber/skynet_join.cpp index 1b345374..4243dfc2 100644 --- a/performance/fiber/skynet_join.cpp +++ b/performance/fiber/skynet_join.cpp @@ -55,7 +55,7 @@ int main() { try { std::size_t size{ 1000000 }; std::size_t div{ 10 }; - allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; + allocator_type salloc{ allocator_type::traits_type::page_size() }; std::uint64_t result{ 0 }; channel_type rc{ 2 }; time_point_type start{ clock_type::now() }; diff --git a/performance/fiber/skynet_shared_detach.cpp b/performance/fiber/skynet_shared_detach.cpp index d9c71c8c..19572fe2 100644 --- a/performance/fiber/skynet_shared_detach.cpp +++ b/performance/fiber/skynet_shared_detach.cpp @@ -78,7 +78,7 @@ int main() { for ( unsigned int i = 1; i < n; ++i) { threads.emplace_back( thread, i - 1, & b); }; - allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; + allocator_type salloc{ allocator_type::traits_type::page_size() }; std::uint64_t result{ 0 }; channel_type rc{ 2 }; b.wait(); diff --git a/performance/fiber/skynet_shared_join.cpp b/performance/fiber/skynet_shared_join.cpp index f2bf8edc..f26e0d67 100644 --- a/performance/fiber/skynet_shared_join.cpp +++ b/performance/fiber/skynet_shared_join.cpp @@ -82,7 +82,7 @@ int main() { for ( unsigned int i = 1; i < n; ++i) { threads.emplace_back( thread, i - 1, & b); }; - allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; + allocator_type salloc{ allocator_type::traits_type::page_size() }; std::uint64_t result{ 0 }; channel_type rc{ 2 }; b.wait(); diff --git a/performance/fiber/skynet_stealing_async.cpp b/performance/fiber/skynet_stealing_async.cpp index aec1f185..ede115fb 100644 --- a/performance/fiber/skynet_stealing_async.cpp +++ b/performance/fiber/skynet_stealing_async.cpp @@ -83,7 +83,7 @@ int main() { barrier b{ thread_count }; std::size_t size{ 1000000 }; std::size_t div{ 10 }; - allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; + allocator_type salloc{ allocator_type::traits_type::page_size() }; std::uint64_t result{ 0 }; channel_type rc{ 2 }; std::vector< std::thread > threads; diff --git a/performance/fiber/skynet_stealing_detach.cpp b/performance/fiber/skynet_stealing_detach.cpp index f00c1f31..2dee322a 100644 --- a/performance/fiber/skynet_stealing_detach.cpp +++ b/performance/fiber/skynet_stealing_detach.cpp @@ -77,7 +77,7 @@ int main() { barrier b{ thread_count }; std::size_t size{ 1000000 }; std::size_t div{ 10 }; - allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; + allocator_type salloc{ allocator_type::traits_type::page_size() }; std::uint64_t result{ 0 }; channel_type rc{ 2 }; std::vector< std::thread > threads; diff --git a/performance/fiber/skynet_stealing_join.cpp b/performance/fiber/skynet_stealing_join.cpp index 81b61554..ff63e4bb 100644 --- a/performance/fiber/skynet_stealing_join.cpp +++ b/performance/fiber/skynet_stealing_join.cpp @@ -81,7 +81,7 @@ int main() { barrier b{ thread_count }; std::size_t size{ 1000000 }; std::size_t div{ 10 }; - allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; + allocator_type salloc{ allocator_type::traits_type::page_size() }; std::uint64_t result{ 0 }; channel_type rc{ 2 }; std::vector< std::thread > threads;