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

Avoid unnecessary I/O to track files' 'last access' timestamp: #95

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

Conversation

nbougalis
Copy link

Unless the underlying filesystem is mounted with noatime then the system will keep track of and update a file's 'last access' time stamp with every read operation.

Even if the filesystem optimizes this, it makes little sense to track this information for NuDB files that can be accessed tens of thousands of times per second.

If the O_NOATIME option is defined, we set it when attempting to open or create files.

Unless the underlying filesystem is mounted with `noatime` then
the system will keep track of and update a file's 'last access'
time stamp with every `read` operation.

Even if the filesystem optimizes this, it makes little sense to
track this information for NuDB files that can be accessed tens
of thousands of times per second.

If the `O_NOATIME` option is defined, we set it when attempting
to open or create files.
@vinniefalco
Copy link
Member

yeah I agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants