-
-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
system.file.allocate.set=1 doesn't allocate space for all the files at start #488
Comments
How shall I replicate the same effect (what linux command with which switch shall I use) that rtorrent uses to allocate files? |
I rebuilt It turned out after a short test using a multi file torrent:
E.g. a 50 GB torrent occupies only e.g. 24 GB in the beginning of downloading. And this issue is a sibling of this one: #202 . |
If https://relict.blogspot.de/2013/06/rtorrent-new-file-size.html works, it should be done right as a PR and react to the setting's value. |
Good idea, the only question is how it should work! :) A. Current state:
The result is a mixed bag. :) B. Possible solution:
C. Questions:
|
Regarding the file allocation of unwritten-to files, there are lot of |
f.multicall=,f.set_create_queued=0,f.set_resize_queued=0 try that in your watch schedule as part of the load commands. |
Thanks, I'll try it out! |
I've tried it out, but doesn't do anything:
|
I need help with this part (as I thought). What we want is:
Current logic:
|
I've found it where it happens: FileList::open_file What left is:
|
I've created a fix for this as well in libtorrent: rakshasa/libtorrent#109 |
Wiki page is updated. |
What is the status of the fix? Compiled rtorrent seems to still fail at allocating all files at start, unless a chunk has first been downloaded from the file. In other words, files aren't fully preallocated upon adding a torrent. |
That's normal, since the above linked fix hasn't been merged. Take a look at its comment. |
What's the status of this fix? I'm interested in system.file.allocate.set=0 working |
Although it's only a partial fix but hopefully it will be merged soon.
That fix was merged into v0.9.7 . |
@chros73 Thank you! |
I tried to put
system.file.allocate.set=1
into my config, but the result is the same: it doesn't allocate space all at once in the beginning.I found couple of posts/articles about this (like this), and they say that you have to recompile
libtorrent
with--with-posix-fallocate
flag.Is it still the case?
system: Ubuntu, fs: ext4, rtorrent-ps 0.9.6 / libtorrent 0.13.6.
Thanks
The text was updated successfully, but these errors were encountered: