Skip to content
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

[Android] Pieces checking slow with POSIX I/O backend #213

Open
proninyaroslav opened this issue Mar 24, 2022 · 5 comments
Open

[Android] Pieces checking slow with POSIX I/O backend #213

proninyaroslav opened this issue Mar 24, 2022 · 5 comments

Comments

@proninyaroslav
Copy link
Contributor

proninyaroslav commented Mar 24, 2022

Version: 2.0.5-26-RC1

Pieces checking hangs at some point, if POSIX I/O backend is enabled. I opened the log and found that there is a check running before 100-200 pieces, after which the check hangs.
This happens with large torrents:

  • if the torrent has many files (more than 100)
  • if the size of the parts is large (about 15 MB)
  • or if there is only one file, but its size is large enough, more than 10 GB

This doesn't happen if the mmap I/O backend is enabled.

@proninyaroslav
Copy link
Contributor Author

proninyaroslav commented Mar 24, 2022

UPD: I checked it again and It looks like the the check progress doesn't hangs completely, but it's very slow compared to mmap.
I took ~14GB torrent with 258 files for test and noted the time:

POSIX mmap
2 min 33 sec 1 min 13 sec

@proninyaroslav proninyaroslav changed the title [Android] Pieces checking issue with POSIX I/O backend [Android] Pieces checking slow with POSIX I/O backend Mar 24, 2022
@aldenml
Copy link
Owner

aldenml commented Mar 24, 2022

is this a 64bits device?

@proninyaroslav
Copy link
Contributor Author

Yes, but I can try to check it on a 32-bit device.

@aldenml
Copy link
Owner

aldenml commented May 3, 2022

Hi @proninyaroslav, is this still a problem?

@proninyaroslav
Copy link
Contributor Author

@aldenml
Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants