Skip to content

The first backup after a restore is much slow than subsequent backups #1736

@ltratt

Description

@ltratt

[This is on rustic-main, pointing to rustic_core-main compiled as of yesterday.]

If (on a file system that's 99% got the right files at the start) I do restore then backup then backup I see the following timings: 40s (restore); 321s (backup); 29s (backup). In other words, the first backup is 10x slower than the second backup.

Judging by the I/O activity I observe, the first backup is probably reading every file in and checksumming, even though it presumably knew what they all were from the restore? Once that's done, subsequent backups remain very fast (until the next restore).

Naively, I wonder if the cache is not being updated (fully? partially?) after restore?

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-triageStatus: Waiting for a maintainer to triage this issue/PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions