Skip to content

inotify: Extended stress-test - #1091

Draft
crimson11 wants to merge 2 commits into
mainfrom
mf_extend_inotify_stress_test
Draft

crimson11 wants to merge 2 commits into
mainfrom
mf_extend_inotify_stress_test

Conversation

@crimson11

@crimson11 crimson11 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Due to issues we saw in QNX8 regarding losses of
inotify events, the existing stress test has been
extended, to also cover inotify-event reception.
One test-mode was added to show inotify event reception
by multiple watchers on the same directory in a graceful/
non-bursting event scenario.
Anotjer test-mode was added, where the inotify-events were
created in a burst (mass create/delete of files in the watched
dir).
This second test-mode (which reveals QNX8 issues) has then been
extracted in a minimal/stand-alone test-case to be easier shareable
with support. The relation between the stand-alone test and the
aggregated stress-test and its modes is documented.

Added create/delete activity of
files and verify, that corresponding
notifications are received on all watchers
in time.
@crimson11
crimson11 force-pushed the mf_extend_inotify_stress_test branch from 28546e3 to 993b866 Compare September 15, 2026 15:21
const std::string file_path{kBaseFolder + "/" + kNotifyTestFileName};
if (create)
{
const int fd{::open(file_path.c_str(), O_CREAT | O_WRONLY | O_TRUNC, 0644)};
{
// Unblocks the pending Read() call in the helper thread.
inotify.Close();
static_cast<void>(read_future.wait());

@github-advanced-security github-advanced-security AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ClangTidy found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Due to issues we saw in QNX8 regarding losses of
inotify events, the existing stress test has been
extended, to also cover inotify-event reception.
One test-mode was added to show inotify event reception
by multiple watchers on the same directory in a graceful/
non-bursting event scenario.
Anotjer test-mode was added, where the inotify-events were
created in a burst (mass create/delete of files in the watched
dir).
This second test-mode (which reveals QNX8 issues) has then been
extracted in a minimal/stand-alone test-case to be easier shareable
with support. The relation between the stand-alone test and the
aggregated stress-test and its modes is documented.
@crimson11
crimson11 force-pushed the mf_extend_inotify_stress_test branch from 4d5623b to 4e53bc0 Compare September 16, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants