You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the sake of performance, memray writes to capture files by mapping the capture file into memory and then writing to it as an in-memory array that is eventually synchronized to the filesystem. (See FileSink in sink.cpp / sink.h)
This is fast, but some (uncommon and non-standard) filesystems don't support it.
We should detect if the operations that we need (posix_fallocate and mmap) aren't supported by the filesystem that the capture file is being written to, and if so log a warning and fall back to a slower but more portable path that simply uses write() to append each new chunk of data to the capture file. In order to test this, we'll also need to add a way to force the slower path to be used even if posix_fallocate and mmap are supported. This should probably just be a MEMRAY_NO_MMAP=1 environment variable, or something like that.
The text was updated successfully, but these errors were encountered:
For the sake of performance, memray writes to capture files by mapping the capture file into memory and then writing to it as an in-memory array that is eventually synchronized to the filesystem. (See
FileSink
in sink.cpp / sink.h)This is fast, but some (uncommon and non-standard) filesystems don't support it.
We should detect if the operations that we need (
posix_fallocate
andmmap
) aren't supported by the filesystem that the capture file is being written to, and if so log a warning and fall back to a slower but more portable path that simply useswrite()
to append each new chunk of data to the capture file. In order to test this, we'll also need to add a way to force the slower path to be used even ifposix_fallocate
andmmap
are supported. This should probably just be aMEMRAY_NO_MMAP=1
environment variable, or something like that.The text was updated successfully, but these errors were encountered: