Subject: Optimizing FFmpeg performance without huge pages - seeking advice

  Hello FFmpeg community,

  I am seeking advice on optimizing FFmpeg performance while explicitly
  avoiding the use of huge pages/transparent huge pages.

  **Environment:**
  - FFmpeg version: 4.1.11
  - System: Linux with transparent huge pages currently set to [madvise]
  - Goal: Disable huge pages entirely and optimize for standard 4K pages

  **Background:**
  For our specific use case, we prefer to avoid huge pages due to concerns
  about memory fragmentation and allocation latency. We want to configure
  our system to use only standard 4K pages but maintain optimal FFmpeg
  performance.

  **Questions:**
  1. Are there specific FFmpeg build-time or runtime configuration options
     that work better with standard page sizes?

  2. Should we adjust any specific FFmpeg options like:
     - Thread count (-threads)
     - Buffer sizes
     - Memory pool settings
     Or any other parameters that might compensate for the lack of huge
pages?

  3. Have there been any benchmarks comparing FFmpeg performance with
     huge pages disabled vs enabled?

  **Current approach:**
  We plan to set /sys/kernel/mm/transparent_hugepage/enabled to "never"
  and are looking for FFmpeg-specific optimizations to maintain good
  performance with this configuration.

  Any recommendations for optimizing FFmpeg in a standard page environment
  would be greatly appreciated.

  Thank you for your time and expertise.

  Best regards,
 Zijian Zhu
_______________________________________________
ffmpeg-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to