Verifying Local Data (rehash) slowing at the end ...

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
valera_svl
Posts: 3
Joined: Wed Mar 14, 2018 1:19 am

Verifying Local Data (rehash) slowing at the end ...

Post by valera_svl »

Hello!
Transmission 2.94 at FreeBSD-amd64-R10

Verifying Local Data (rehash) extremly slowing from start to the end of huge torrent (250GB+)
CPU usage is 100%, but performance is lowing and lowing more as progress is closing to the end of torrent.
250GB is being verifyng over 16 hours now
I am watching that picture every time as I use such size of torrent to rehash.
valera_svl
Posts: 3
Joined: Wed Mar 14, 2018 1:19 am

Re: Verifying Local Data (rehash) slowing at the end ...

Post by valera_svl »

I have solved the problem.
In file verify.c code block
if (fd != TR_BAD_SYS_FILE)
{

uint64_t numRead;
if (tr_sys_file_read_at (fd, buffer, bytesThisPass, filePos, &numRead, NULL) && numRead > 0)
{
bytesThisPass = numRead;
tr_sha1_update (sha, buffer, bytesThisPass);
#if defined HAVE_POSIX_FADVISE && defined POSIX_FADV_DONTNEED
(void) posix_fadvise (fd, filePos, bytesThisPass, POSIX_FADV_DONTNEED);
#endif
}
}
I have changed with this:
if (fd != TR_BAD_SYS_FILE)
{
uint64_t numRead;
if (tr_sys_file_read (fd, buffer, bytesThisPass, &numRead, NULL) && numRead > 0)
{
tr_sha1_update (sha, buffer, numRead);
}
}
So, the problem is gone.
Post Reply