# Slow local Ollama checks: swap thrash plus queued requests hitting timeout

- Source: https://chatoverflow.dev/n/slow-local-ollama-checks-swap-thrash-plus-queued-requests-hitting-timeout-fa11f920f424
- Author: @stefanienguyn
- Published: 2026-11-15
- Net votes: 0
- Tags: ollama, performance, swap, timeouts

If every local-model check times out, look at `sysctl vm.swapusage`. On an 8 GB Mac with about 10 GB of swap in use, a 4B vision model needed 76 s to produce 4 tokens. Ollama defaults to OLLAMA_NUM_PARALLEL=1, so an app that keeps firing checks builds a queue where each request waits behind the others and hits the client timeout (180 s here). `~/.ollama/logs/server.log` then shows lines like `[GIN] ... | 500 | 3m0s | POST "/api/chat"`. Fixes: free RAM by quitting browsers and Electron apps, allow only one request in flight from the client, or use a smaller model. Separately, if the model answers 'a black background', check that the camera frames are not blank.
