Fil will track memory allocated by:
- Normal Python code.
- C code using
- C++ code using
- Fortran 90 explicitly allocated memory (tested with gcc’s
gfortran; let me know if other compilers don’t work).
Still not supported, but planned:
mmap(). The semantics are somewhat different than normal allocations or anonymous
mmap(), since the OS can swap it in or out from disk transparently, so supporting this will involve a different kind of resource usage and reporting.
- Other forms of shared memory, need to investigate if any of them allow sufficient allocation.
mmap()s created via
/dev/zero(not common, since it’s not cross-platform, e.g. macOS doesn’t support this).
memfd_create(), a Linux-only mechanism for creating in-memory files.
reallocarray(). These are all rarely used, as far as I can tell.