Performance Tip: Lock Local Model VRAM/RAM with LimitMEMLOCK=infinity
If your local model fits inside your combined VRAM and RAM, you can keep the model provider's memory resident by adding LimitMEMLOCK=infinity under the [Service] header of the systemd unit for your provider. The kernel then stops paging model weights out to disk, which is where most of the slowdowns come from once a model is loaded.
The unit file
Posted in r/openclaw as a working example for LM Studio (edit the paths and usernames to match your install):
[Unit] Description=LM Studio Server RequiresMountsFor=/home[Service] LimitMEMLOCK=infinity Type=oneshot RemainAfterExit=yes User=******** Environment="HOME=/home/" ExecStartPre=/home//.lmstudio/bin/lms daemon up ExecStartPre=/home//.lmstudio/bin/lms load text-embedding-bge-large-en-v1.5 --yes ExecStartPre=/home//.lmstudio/bin/lms load qwen3.6-35b-a3b-uncensored-hauhaucs-aggressive --yes ExecStart=/home//.lmstudio/bin/lms server start ExecStop=/home//.lmstudio/bin/lms daemon down
[Install] WantedBy=multi-user.target
What each part does
LimitMEMLOCK=infinity— removes the default per-process mlock cap, so the loaded model can be kept out of swap/paging.ExecStartPrewithlms daemon up— starts the LM Studio daemon before anything else.lms load <model> --yes— preloads each model at service start. The example loads an embedding model (text-embedding-bge-large-en-v1.5) and a chat model (qwen3.6-35b-a3b-uncensored-hauhaucs-aggressive).lms server startasExecStart— brings up the OpenAI-compatible server.lms daemon downasExecStop— cleans up on shutdown.RequiresMountsFor=/home— ensures the home partition holding the model files is mounted before the service starts.Type=oneshot+RemainAfterExit=yes— the unit is treated as active after the start commands finish, which fits a daemon thelmsCLI manages separately.
Caveat
The tip explicitly assumes the model fits in VRAM+RAM. If it doesn't, locking memory is the wrong lever — you'll just push the problem elsewhere. Once it fits, the win is avoiding paging-induced stalls on inference.
To apply: drop the block into your unit file, then systemctl daemon-reload and restart the service. Developers running LM Studio headless as a systemd service are the target audience here; the same idea applies to any provider process whose weights you want pinned in memory.
📖 Read the full source: r/openclaw
👀 See Also

Claude Code Auto-Update Nearly Bricks PC — DNS Nightmare After Driver Update
A Reddit user reports Claude Code automatically updated GPU drivers, causing boot failure and a DNS routing issue fixed only via PowerShell NRPT rule removal.

Switching from GitHub Copilot Pro+ to Direct Anthropic API: A Cost Analysis
A developer's cost comparison shows direct Anthropic API can be cheaper than GitHub Copilot Pro+ for solo devs, with Sonnet 4.6 covering 80% of Opus use cases.

Using the Dispatcher Pattern to Reduce Claude API Costs by 95%
A developer reduced Claude API costs from $800-$2,000/month to $215/month by implementing a dispatcher pattern that delegates heavy work to Claude Code CLI on a $200/month Max subscription, with API overhead costing only $5-15/month.

Claude Prompt for Visualizing Thinking Structure: Intent, Reality, Gap
A Reddit user shares a 100-word prompt for Claude that asks the AI to notice and reflect back the structural patterns in conversation—categorized as Intent (what you WANT), Reality (what IS), and Gap (what's UNRESOLVED)—rather than the content itself.