Arvid Norberg

Results 1037 comments of Arvid Norberg

> It's not even about parts or not parts. My paragraph that you quoted was in response to question (1), not (2). It was not about turning an allocated file...

stopping the torrent will cause libtorrent to close the files (and file maps), which it sounds like will also trigger windows to flush the dirty pages. This seems to be...

It seems like the most appropriate fix is to schedule a call to FlushViewOfFile() periodically

actually, every time a file completes, its file handle is closed. I believe this will flush it to disk. This is primarily to make sure the next time it's accessed...

From the `FlushViewOfFile()` documentation: > Flushing a range of a mapped view **initiates** writing of dirty pages within that range to the disk. [...] The FlushViewOfFile function does not flush...

Here's a start of a fix: https://github.com/arvidn/libtorrent/pull/6529

I don't think this is just an issue in old versions of windows. as far as I know, all versions of windows have issues balancing disk cache against, for example,...

There is this call already, does that do what you need? http://libtorrent.org/reference-Torrent_Handle.html#flush-cache

yes, I agree that libtorrent probably doesn't implement the documented behavior currently.

> What if I don’t like the kernal allowing one app to use almost all the RAM. Technically, it's not the program using the RAM, it's the kernel using it...