libtorrent icon indicating copy to clipboard operation
libtorrent copied to clipboard

feat: reducing disk load

Open siakc opened this issue 9 months ago • 2 comments

In order to reduce hard/solid disk activity. I had a suggestion: We can have the option of only mmap files that can fit into physical ram and change the mapped segments on predefined intervals. For example suppose there is a file A size: 100 and B: 100. Amount of available memory is 50. We first mmap (and effectively share) first 25 segments of A and B. After one hour we drop it and mmap the next 25 segments. After 4 hours we cover all the data we could share. Is this in general possible or feasible?

siakc avatar Mar 11 '25 11:03 siakc

Yeah, this is actually what rakshasa/libtorrent do by having a pool of mmap-ed chunks.

mayli avatar Mar 15 '25 09:03 mayli

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 19 '25 05:07 stale[bot]