The Wayback Machine - https://web.archive.org/web/20250527195546/https://github.com/python/cpython/pull/102185
Skip to content

gh-102184: Test os.sync() only if "largefile" resource is enabled #102185

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

izbyshev
Copy link
Contributor

@izbyshev izbyshev commented Feb 23, 2023

Calling os.sync() when the Linux page cache is large and full of dirty pages and the storage device is slow can block the process in "uninterruptible sleep" state for minutes, making the test run unkillable even with SIGKILL. Avoid this by testing os.sync() only if "largefile" resource is enabled.

Calling `os.sync()` when the Linux page cache is large and full of dirty
pages and the storage device is slow can block the process in
"uninterruptible sleep" state for minutes, making the test run
unkillable even with SIGKILL. Avoid this by testing `os.sync()` only if
"largefile" resource is enabled.
@arhadthedev arhadthedev added the performance Performance or resource usage label Feb 23, 2023
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

Thank you, it looks like a good idea.

There is also "cpu" resource and new "walltime" resource. "cpu" is disabled by default on CI and in "make test", so it may be better choice than "largefille".

You can also move this test into a separate method and decorate it as bigmemtest. It will be skipped on most buildbots except special buildbots with a large amount of RAM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review performance Performance or resource usage tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants