Giter Club home page Giter Club logo

Comments (4)

filecxx avatar filecxx commented on May 28, 2024

使用的文件映射的这部分内存是由操作系统管理的,程序本身不占用内存,这是对硬盘IO的读写优化,因为每次都从硬盘中读取会非常慢,所以这部分已经读取的数据操作系统会保存在内存中, 当内存不足时候操作系统会自动释放。

这不是内存泄漏。

https://learn.microsoft.com/en-us/windows/win32/memory/file-mapping

from filecentipede.

signin404 avatar signin404 commented on May 28, 2024

搜到是libtorrent 2.0默认开启的
arvidn/libtorrent#6667
计入使用中看着太吓人…

from filecentipede.

signin404 avatar signin404 commented on May 28, 2024

好像并不会自动释放
我试着用内存测试软件占满内存
手动释放前只能使用14G
手动释放后才能使用文件映射占用的5G

recording-2024-01-04-18-35-42_86Y9U7NW.mp4

from filecentipede.

filecxx avatar filecxx commented on May 28, 2024

Windows上文件映射和物理内存换出确实不是实时的,我会尝试解决下这个问题,例如对做种中上传率低的任务定时强制解除文件映射。

from filecentipede.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.