[libav-bugs] [Bug 355] New: Reading large files on OSX may lead to swapping

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Sun Aug 26 18:16:23 CEST 2012


           Summary: Reading large files on OSX may lead to swapping
           Product: Libav
           Version: git HEAD
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: general
        AssignedTo: bugzilla at libav.org
        ReportedBy: stefan.bechtold at me.com

When large files are opened in OSX (maybe this also applies for some unix), the
system will cache the file. The cache is freed but remains as "inactive
memory". As long as the file is open OSX doesn't seem to reuse the inactive
memory on this file. One can use "purge" to clear the inactive memory but it is
better to avoid the memory from becoming inactive by using

fcntl(file_handle, F_GLOBAL_NOCACHE, 1);

after the file was opened. This should be implemented by libav or at least
there should be an option within the API, allowing clients to disable file

See also:

Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the libav-bugs mailing list