Skip to content

Regression (since 2.1.0): very slow scanning when dealing with identical files #10869

Open

Description

@iyanmv

What happened?

Creating a new issue since #10777 was closed, I cannot reopen it, my requests to reopen it (here and here) were ignored, and the regression was not fixed.

I can provide new support bundles when the final release of 2.1.4 with #10849 is out.

Syncthing version

v2.1.3

Platform & operating system

Arch Linux x86_64

Browser version

No response

Relevant log output

Activity

  1. added
    bug
    needs-triage
    on Aug 25, 2026
  2. added theissue type on Aug 25, 2026
  3. moerkey commented on Aug 26, 2026

    @moerkey

    We're seeing a similar pattern and can add a data point.

    Setup: Migrated from Syncthing v1.30.0 to v2.1.3, folder shares a Drupal codebase with roughly 38k files (large mix of small files, incl. a media/asset tree).

    We initially suspected a Drupal-specific cache directory (files/php/twig) as the cause of high CPU/scan load, since it's rewritten very frequently by the application. We added it to .stignore to rule it out.

    However, even with that directory excluded, the hourly full rescan (rescanIntervalS) still causes sustained high CPU usage and drives the host into heavy swap usage for the duration of the scan. This didn't happen under v1.30.0 with the same folder structure and scan interval.

    Happy to provide a support bundle if useful, and can also try disabling "Block Indexing" per the folder advanced settings if that's a plausible avenue worth testing on our end.

  4. moerkey commented on Oct 7, 2026

    @moerkey

    Possibly related: on our largest node the slow scans coincide with the crashes described in #10913
    (runtime: out of memory in the scanner, caused by ~19k 64 KiB SQLite-allocator mappings hitting
    vm.max_map_count). Full scans on that node currently take roughly 30–45 min each and run hourly
    (rescanIntervalS=3600), so the process spends about half its time walking the tree while hashing
    almost nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions