Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread pool #332

Merged
merged 39 commits into from
Jan 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
f2fd305
add thread handling and use one-thread-per-connection as default
hnwyllmm Jan 10, 2024
51b1c15
split server to cliserver and netserver
hnwyllmm Jan 11, 2024
7572b37
format function name
hnwyllmm Jan 11, 2024
b9bb0a5
format function name
hnwyllmm Jan 11, 2024
2b14f13
quit when type Ctrl C
hnwyllmm Jan 11, 2024
e7e5ec6
add java thread pool
hnwyllmm Jan 11, 2024
ba732ae
test thread pool passed
hnwyllmm Jan 11, 2024
b7cfecc
java thread pool handler
hnwyllmm Jan 12, 2024
2956958
support std::function in runnable
hnwyllmm Jan 15, 2024
f53cb39
add comments
hnwyllmm Jan 15, 2024
d5c507a
remove seda configuration
hnwyllmm Jan 15, 2024
397f90a
set thread name
hnwyllmm Jan 15, 2024
1846380
add document for thread model
hnwyllmm Jan 15, 2024
915e141
add reference
hnwyllmm Jan 15, 2024
70aef05
clang-format
hnwyllmm Jan 15, 2024
a4762f9
clang-format
hnwyllmm Jan 15, 2024
18b9107
clang-format
hnwyllmm Jan 15, 2024
93d951b
clang-format
hnwyllmm Jan 15, 2024
189e3ec
clang-format
hnwyllmm Jan 15, 2024
0b534fd
uncomment sysbench
hnwyllmm Jan 15, 2024
2be1487
add benchmark into github action test
hnwyllmm Jan 15, 2024
323c43e
build benchmark in release mode
hnwyllmm Jan 15, 2024
c2b10bc
debug integer generator
hnwyllmm Jan 15, 2024
70c74df
add sysbench delete test case
hnwyllmm Jan 15, 2024
4878ee2
test benchmark
hnwyllmm Jan 15, 2024
9257dbe
clang-format
hnwyllmm Jan 15, 2024
76739fd
fix format of test.yml
hnwyllmm Jan 15, 2024
607b985
clang-format
hnwyllmm Jan 15, 2024
e2683e0
fix compile bug in debug mode
hnwyllmm Jan 16, 2024
c31c3cb
fix benchmark concurrency setup failure
hnwyllmm Jan 16, 2024
0e02bd9
fix benchmark test yml
hnwyllmm Jan 16, 2024
11a7201
clang-format
hnwyllmm Jan 16, 2024
0a65f32
fix concurrency bug
hnwyllmm Jan 16, 2024
8c9d801
test sysbench miniob_delete
hnwyllmm Jan 16, 2024
a992b98
remove EV_ET in java_thread_pool
hnwyllmm Jan 17, 2024
e06ac3d
add sysbench select test case
hnwyllmm Jan 19, 2024
fc36f98
test miniob_select
hnwyllmm Jan 19, 2024
c4d1b5f
reset deprecret eof flag
hnwyllmm Jan 22, 2024
73be9f4
reset signal handler
hnwyllmm Jan 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add thread handling and use one-thread-per-connection as default
hnwyllmm committed Jan 10, 2024
commit f2fd305a47546c1b1e0848678e2d45894964a410
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ OPTION(ENABLE_ASAN "Enable build with address sanitizer" ON)
OPTION(ENABLE_TSAN "Build with thread sanitizer" OFF)
OPTION(ENABLE_UBSAN "Build with undefined behavior sanitizer" OFF)
OPTION(WITH_UNIT_TESTS "Compile miniob with unit tests" ON)
OPTION(ENABLE_COVERAGE "Enable unittest coverage" OFF)
OPTION(CONCURRENCY "Support concurrency operations" OFF)
OPTION(STATIC_STDLIB "Link std library static or dynamic, such as libgcc, libstdc++, libasan" OFF)

@@ -127,7 +128,9 @@ ENDIF ()
INCLUDE_DIRECTORIES(. ${PROJECT_SOURCE_DIR}/deps /usr/local/include)

IF(WITH_UNIT_TESTS)
SET(CMAKE_COMMON_FLAGS "${CMAKE_COMMON_FLAGS} -fprofile-arcs -ftest-coverage")
IF (ENABLE_COVERAGE)
SET(CMAKE_COMMON_FLAGS "${CMAKE_COMMON_FLAGS} -fprofile-arcs -ftest-coverage")
ENDIF (ENABLE_COVERAGE)
enable_testing()
ENDIF(WITH_UNIT_TESTS)

10 changes: 10 additions & 0 deletions deps/common/os/process_param.h
Original file line number Diff line number Diff line change
@@ -72,6 +72,15 @@ class ProcessParam
}
const std::string &trx_kit_name() const { return trx_kit_name_; }

void set_thread_handling_name(const char *thread_handling_name)
{
if (thread_handling_name) {
thread_handling_name_ = thread_handling_name;
}
}

const std::string &thread_handling_name() const { return thread_handling_name_; }

void set_buffer_pool_memory_size(int bytes) { buffer_pool_memory_size_ = bytes; }

int buffer_pool_memory_size() const { return buffer_pool_memory_size_; }
@@ -87,6 +96,7 @@ class ProcessParam
std::string unix_socket_path_;
std::string protocol_;
std::string trx_kit_name_;
std::string thread_handling_name_;
int buffer_pool_memory_size_ = -1;
};

89 changes: 0 additions & 89 deletions deps/common/seda/callback.cpp

This file was deleted.

120 changes: 0 additions & 120 deletions deps/common/seda/callback.h

This file was deleted.

141 changes: 0 additions & 141 deletions deps/common/seda/class_factory.h

This file was deleted.

138 changes: 0 additions & 138 deletions deps/common/seda/event_dispatcher.cpp

This file was deleted.

160 changes: 0 additions & 160 deletions deps/common/seda/event_dispatcher.h

This file was deleted.

95 changes: 0 additions & 95 deletions deps/common/seda/example_stage.cpp

This file was deleted.

37 changes: 0 additions & 37 deletions deps/common/seda/example_stage.h

This file was deleted.

85 changes: 0 additions & 85 deletions deps/common/seda/init.cpp

This file was deleted.

40 changes: 0 additions & 40 deletions deps/common/seda/init.h

This file was deleted.

50 changes: 0 additions & 50 deletions deps/common/seda/kill_thread.cpp

This file was deleted.

94 changes: 0 additions & 94 deletions deps/common/seda/kill_thread.h

This file was deleted.

15 changes: 0 additions & 15 deletions deps/common/seda/metrics_report_event.cpp

This file was deleted.

33 changes: 0 additions & 33 deletions deps/common/seda/metrics_report_event.h

This file was deleted.

128 changes: 0 additions & 128 deletions deps/common/seda/metrics_stage.cpp

This file was deleted.

45 changes: 0 additions & 45 deletions deps/common/seda/metrics_stage.h

This file was deleted.

490 changes: 0 additions & 490 deletions deps/common/seda/seda_config.cpp

This file was deleted.

233 changes: 0 additions & 233 deletions deps/common/seda/seda_config.h

This file was deleted.

30 changes: 0 additions & 30 deletions deps/common/seda/seda_defs.h

This file was deleted.

235 changes: 0 additions & 235 deletions deps/common/seda/stage.cpp

This file was deleted.

329 changes: 0 additions & 329 deletions deps/common/seda/stage.h

This file was deleted.

170 changes: 0 additions & 170 deletions deps/common/seda/stage_event.cpp

This file was deleted.

173 changes: 0 additions & 173 deletions deps/common/seda/stage_event.h

This file was deleted.

333 changes: 0 additions & 333 deletions deps/common/seda/thread_pool.cpp

This file was deleted.

170 changes: 0 additions & 170 deletions deps/common/seda/thread_pool.h

This file was deleted.

Loading