Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Fischer
emper
Commits
0da9832c
Commit
0da9832c
authored
2 years ago
by
Florian Fischer
Browse files
Options
Downloads
Patches
Plain Diff
make sleep semaphore threshold configurable for mazstab
parent
2ab1777a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
emper/sleep_strategy/SemaphoreWorkerSleepStrategy.hpp
+6
-1
6 additions, 1 deletion
emper/sleep_strategy/SemaphoreWorkerSleepStrategy.hpp
meson.build
+1
-0
1 addition, 0 deletions
meson.build
meson_options.txt
+7
-0
7 additions, 0 deletions
meson_options.txt
with
14 additions
and
1 deletion
emper/sleep_strategy/SemaphoreWorkerSleepStrategy.hpp
+
6
−
1
View file @
0da9832c
...
...
@@ -160,7 +160,12 @@ class AbstractSemaphoreWorkerSleepStrategy
* reviewed and potentially changed to '-1'.
* skipWakeupThreshold = 0;
*/
const
typename
Sem
::
CounterType
skipWakeupThreshold
=
workerCount
;
typename
Sem
::
CounterType
skipWakeupThreshold
;
if
constexpr
(
callerEnvironment
==
CallerEnvironment
::
ANYWHERE
)
{
skipWakeupThreshold
=
workerCount
;
}
else
{
skipWakeupThreshold
=
EMPER_SLEEP_SEM_THRESHOLD
;
}
auto
semValue
=
wakeupSem
.
getValue
();
return
semValue
<=
skipWakeupThreshold
;
...
...
This diff is collapsed.
Click to expand it.
meson.build
+
1
−
0
View file @
0da9832c
...
...
@@ -89,6 +89,7 @@ else
endif
conf_data
.
set
(
'EMPER_SLEEP_SEM_THRESHOLD'
,
get_option
(
'sleep_sem_threshold'
))
conf_data
.
set
(
'EMPER_WORKER_SLEEP'
,
get_option
(
'worker_sleep'
))
conf_data
.
set
(
'EMPER_WORKER_WAKEUP_STRATEGY'
,
get_option
(
'worker_wakeup_strategy'
))
conf_data
.
set
(
'EMPER_WORKER_IGNORE_WAKEUP_HINT'
,
get_option
(
'worker_ignore_wakeup_hint'
))
...
...
This diff is collapsed.
Click to expand it.
meson_options.txt
+
7
−
0
View file @
0da9832c
option
(
'sleep_sem_threshold'
,
type
:
'combo'
,
choices
:
[
'0'
,
'workerCount'
],
value
:
'workerCount'
,
description
:
'Threshold skipping the notification'
)
option
(
'use_bundled_deps'
,
type
:
'combo'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment