-
Notifications
You must be signed in to change notification settings - Fork 76
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
Lots of fiemap Operation not supported errors in overlaybd.log #217
Comments
@simha-db What filesystem are you using for cache? |
do u mean for the /opt/overlaybd/registry_cache? So the disk IO was too slow to download the container images quickly - so i tried the following
is fiemap supposed to work with tmpfs? |
@simha-db fiemap is not supported for tmpfs |
Ah dang it - any other way to buffer the writes? Page cache is u predictable in how it penalizes heavy writes. |
Downloading layer blobs to tmpfs with background copying should be similar to using /opt/overlaybd/registry_cache directly. |
Not necessarily- once the page cache dirty thresholds are hit - it starts flushing and the writes slow down significantly. Using tmpfs allowed us to let overlaybd use the files while we copy - barring a glitch when we delete the symlink which we figured will be retried - but the sparse file support makes it a no go looks like. |
Btw what happens when the tmpfs errors out? We did not see errors in the container startup. Does it fallback to something else? |
It slows down because there's not much free memory, so it must wait for flushing. The same happens for tmpfs, which is also backed by page cache.
I believe its a bug. It doesn't deal with the errors returned by fiemap(), and take it as cache-hit. |
Oh what does it return to the container? |
It reads data from the blobs in the tmpfs, and returns the data to the container. It happens to go as what you wanted :-) |
Not the happy case. I am referring to
Since i did not see any errors - what happens when the fiemap failed? |
@lihuiba @liulanzheng Does overlaybd read registry cache files with O_DIRECT? I saw it does when using libaio - we use psync - |
o_direct is not used |
The cache take it as cache-hit, and read from the file. It happens to go as what you wanted.
If the |
What happened in your environment?
Seeing a lot of errors like this
2023/07/27 01:26:09|ERROR|th=00007FDBBE6B1680|/src/src/overlaybd/cache/full_file_cache/cache_store.cpp:100|queryRefillRange:media fiemap failed : -1, offset : 0, size : 4096 errno=95(Operation not supported)
Any idea what this is about? We are side loading the registry cache files for overlaybd - does that have anything to do with these errors?
What did you expect to happen?
No response
How can we reproduce it?
NA
What is the version of your Accelerated Container Image?
0.6.12
What is your OS environment?
Ubuntu 20.04
Are you willing to submit PRs to fix it?
The text was updated successfully, but these errors were encountered: