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
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Lehrstuhl für Informatik 4 (Systemsoftware)
manycore
emper
Commits
e723de87
Commit
e723de87
authored
4 years ago
by
Florian Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[IO] add option to advance the io_urings's cq for each processed cqe
parent
1d6b58b9
No related branches found
No related tags found
No related merge requests found
Pipeline
#54142
failed
4 years ago
Stage: smoke-test
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
emper/Emper.hpp
+8
-0
8 additions, 0 deletions
emper/Emper.hpp
emper/io/IoContext.cpp
+4
-0
4 additions, 0 deletions
emper/io/IoContext.cpp
meson_options.txt
+6
-0
6 additions, 0 deletions
meson_options.txt
with
18 additions
and
0 deletions
emper/Emper.hpp
+
8
−
0
View file @
e723de87
...
...
@@ -66,6 +66,14 @@ static const bool IO_TRY_SYSCALL =
#endif
;
static
const
bool
IO_BATCH_CQE
=
#ifdef EMPER_IO_BATCH_CQE
true
#else
false
#endif
;
static
const
bool
IO_URING_SQPOLL
=
#ifdef EMPER_IO_URING_SQPOLL
true
...
...
This diff is collapsed.
Click to expand it.
emper/io/IoContext.cpp
+
4
−
0
View file @
e723de87
...
...
@@ -166,6 +166,10 @@ void IoContext::completer_func() {
}
future
->
try_complete
<
CallerEnvironment
::
ANYWHERE
>
(
cqe
->
res
);
if
constexpr
(
!
emper
::
IO_BATCH_CQE
)
{
break
;
}
}
LOGD
(
"got "
<<
count
<<
" cqes from the io_uring"
);
...
...
This diff is collapsed.
Click to expand it.
meson_options.txt
+
6
−
0
View file @
e723de87
...
...
@@ -70,6 +70,12 @@ option(
value
:
true
,
description
:
'Try to complete IO request with a syscall before submitting it to the io_uring'
)
option
(
'io_batch_cqe'
,
type
:
'boolean'
,
value
:
true
,
description
:
'Don'
t
advance
the
io_uring
's cq for each processed'
)
option
(
'io_peek_optimization'
,
type
:
'boolean'
,
...
...
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