How to watch the memory pressure
Local models and agents take a lot of memory. When the computer runs short of it, it slows down, and on a Mac with little memory it can stop applications. Sidekicks shows how much the memory is under pressure, next to the agents' logs.
-
Click Log in the status bar (bottom right). The panel opens at the bottom.
-
At the top right of the panel, read the line Memory pressure:
- a dot and a level: normal (green), high (yellow) or critical (red);
- a bar and the memory used, e.g.
18.2 / 32.0 GB used.
Hover over the level for a reminder of what to do. The line is refreshed every 5 seconds while the panel is open.
-
When the level is high or critical, free memory:
- unload the model of the agent whose log is shown: ⏏ Unload the model, next to the agent's name in the panel. The agent keeps running; its model is loaded again with its next message. What the agent answers is written in its log (
unload: …). The button is there only for an agent that offers the/unloadcommand (mm does), and it can be used only while the agent is running and not answering; - or unload every model at once: ⏏ Unload all. Each running agent that can is asked; a line under the bar names the agents unloaded and the ones left alone (answering, or without
/unload). Stopped agents are not started for it; - stop an agent you do not need: ■ next to it in the Agents panel;
- close the applications you do not use.
- unload the model of the agent whose log is shown: ⏏ Unload the model, next to the agent's name in the panel. The agent keeps running; its model is loaded again with its next message. What the agent answers is written in its log (
What the figures mean
- On macOS, the level is the one the system gives, the same as the Memory Pressure graph of Activity Monitor. The memory used is counted as Activity Monitor does: app memory, wired memory and compressed memory. The memory "cached" by macOS is not counted: it is given back as soon as an application needs it.
- On Windows (and Linux), the level is worked out from the memory still available: high under 20 %, critical under 10 %.
- If the memory cannot be measured, the line is not shown.
- Unloading a model frees its memory within a few seconds, when the model server applies it. Typing
/unloadin a conversation with the agent has the same effect, but leaves the command and its answer in the conversation.
⏏ is also in the agent's row of the Agents panel (on hover) and in the header of the agent's view.
See also
- Reference: services called by the interface (
SystemService.Memory,AgentService.Unload,AgentService.UnloadAll) - Explanation: memory and local models
- Work with an agent's files and terminal
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|