Documentation / When Coldpack works

When Coldpack works

Coldpack works while you do not. Four gates must be open at the same time, and each one can stop the work between two files.

Power, heat, idle time and active hours. Work runs only while all four gates are open.

The gates

GateClosed whenSetting
PowerThe Mac runs on battery.pauseOnBattery (on)
HeatThe thermal state is serious or critical, or Low Power Mode is on.pauseWhenHot (on)
IdleKeyboard or pointer input is younger than the idle time.idleMinutes (5; 0 means no idle requirement)
HoursThe local time is outside your active hours.activeHours (empty means always)

One check decides for all kinds of work: compression, the scan, and the daily housekeeping. Coldpack reads the gates before each tick, and again before each file of a batch, so a gate that closes in the middle of a batch stops the work between two files. A file that is being processed is finished first.

The state comes from public system interfaces only: the thermal state and Low Power Mode from the system, the power source from IOKit, and the idle time from the system's input idle counter. This needs no accessibility permission. If the idle time cannot be read, Coldpack treats you as present.

When a gate holds the work, the popover says why, for example Waiting: on battery, Waiting: too hot, Waiting: Low Power Mode or Waiting: user active (idle 2 of 5 min).

The popover while work waits because the user is active

Active hours

Give a window in local time, written HH:MM-HH:MM. It may cross midnight, as 22:00-06:00 does. Outside the window Coldpack only records file changes. It does not compress, scan or tidy. Edit it in the Schedule tab.

The Schedule tab: active hours as a 24-hour bar and the minimum file age

Time you can set

SettingDefaultWhat it does
Cooldown (cooldownHours)6How long a file must stay unchanged since the last change Coldpack saw, or since its modification date for a file the scan finds.
Minimum file age (minAgeDays)0 (off)The modification date must be older than this. A file that is too young is held until it is old enough. The wait survives a restart.
Rate (filesPerMinute)200The most files Coldpack handles in one tick. A tick happens every 60 seconds.

A compress rule can replace the cooldown, the minimum age and the minimum saving for the files it matches. See Rules and scope.

How aggressive is Coldpack? Tune it

There is no single "aggressiveness" dial. How eager Coldpack is depends on a few settings that you combine. This table shows where each one is.

To make it…ChangeWhere
Start sooner on a changed fileLower CooldownSettings, General
Include files that save lessLower Minimum savingSettings, General
Include smaller or younger filesLower Minimum file size; lower Minimum file ageGeneral; Schedule
Work even when you are aroundSwitch off Wait until the Mac is idleSettings, General
Work in a window you chooseActive hoursSettings, Schedule
Go faster through a backlogRaise filesPerMinutesettings.json only
Work on battery or when hotSet pauseOnBattery or pauseWhenHot to falsesettings.json only
Treat one folder differentlyA compress rule with its own cooldown, age and savingSettings, Rules

Three starting points. These are suggestions made from the settings above. They are not measured recommendations, so start with dry run and watch the estimate.

GentleBalanced (default)Eager
Cooldown48 h6 h1 h
Minimum file age14 days0 (off)0 (off)
Minimum saving30 %15 %5 %
Wait until idleOn, 5 minOn, 5 minOff
filesPerMinute50200200
Battery and heatPausePausePause
Keep the safety settings. Making Coldpack eager does not make it less safe: the clone, the checks and the verification always run. It only changes how soon, and how often, it works. Changes in settings.json apply within a minute, while the app runs.

Light on the machine

Coldpack runs at background priority. The scan reads at low disk priority, and file events are stored on their own queue, so a busy walk never delays them. The measured cost, with the app idle, is 0.22 % CPU and 68 MB of memory over 10 minutes. While it works through a backlog, the average was 0.75 % CPU over 10 minutes.

A large backlog takes time. At 200 files a minute, a very large first pass takes days if every file were due. That is the price of staying out of your way.