Skip to content

What amount of work is redone after reboot? #320

@kakra

Description

@kakra

Issues responses and docs say that bees redoes up to 15 minutes of work after being interrupted by a reboot, shutdown or kill.

But does it really?

I have one system that seems to be stuck in the past:

PROGRESS:
extsz   datasz  point gen_min gen_max this cycle start tm_left   next cycle ETA
----- -------- ------ ------- ------- ---------------- ------- ----------------
  max 910.625G 437731     228  101099 2025-06-02 10:40   9w 1d 2025-09-24 17:38
  32M 307.927G 372675     228   63792 2025-05-20 08:32  15w 1d 2025-11-05 16:15
   8M  90.383G 147998     228  210631 2025-07-10 13:32   9w 5d 2025-09-29 00:48
   2M  25.092G 153541       0     228 2025-04-28 17:36  1y 14w 2026-11-01 14:11
 512K   9.497G 143094       0     228 2025-04-28 17:36  1y 20w 2026-12-11 21:18
 128K   1.475G 000030       0     228 2025-04-28 17:36       -                -
total   1.313T        gen_now  241971                  updated 2025-07-22 11:21

With every reboot, the remaining time only increases by weeks. The gen_min value never increases. From the logs, it looks like bees is going through the same files and snapshots again (this system uses snapper, especially it starts working at snapper snapshot 55, the oldest snapshot, over and over again).

Does this mean that after a restart, bees will start scanning at gen_min again? Then, why is gen_max so high? Wouldn't it be better if it doesn't use huge spans of generations for gen_minand gen_max, so it has a chance to reach gen_max before shutdown and start the next cycle in time?

Or is there another value which keeps track of the progress, like objectid?

root 250 objectid 856341495808 offset 0 min_transid 228 max_transid 101099 started 1748853653 start_ts 2025-06-02-10-40-53
root 251 objectid 787283578880 offset 0 min_transid 228 max_transid 63792 started 1747722724 start_ts 2025-05-20-08-32-04
root 252 objectid 198128205824 offset 0 min_transid 228 max_transid 210631 started 1752147134 start_ts 2025-07-10-13-32-14
root 253 objectid 242523701248 offset 0 min_transid 0 max_transid 228 started 1745854593 start_ts 2025-04-28-17-36-33
root 254 objectid 216195731456 offset 0 min_transid 0 max_transid 228 started 1745854593 start_ts 2025-04-28-17-36-33
root 255 objectid 2221010944 offset 0 min_transid 0 max_transid 228 started 1745854593 start_ts 2025-04-28-17-36-33

This system has been restored from backup in April, with snapper snapshots created fresh. Bees has been running right since the first snapper snapshot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions