Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Diagnoses and reduces Qdrant memory usage. Use when someone reports 'memory too high', 'RAM keeps growing', 'node crashed', 'out of memory', 'memory leak', or asks 'why is memory usage so high?', 'how to reduce RAM?'. Also use when memory doesn't match calculations, quantization didn't help, or nodes crash during recovery.
.claude/skills/qdrant-qdrant-memory-usage-optimization/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 44% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -12% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -7% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 10% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -27% | 0% |
Qdrant operates with two types of memory:
memory: pinned (e.g. quantized vectors, payload indexes); on 1.18 or older the equivalent is always_ram: true.memory: cached (pre-warmed into page cache at startup) or memory: cold (lazy disk reads, not pre-warmed); on 1.18 or older it's controlled via the on_disk boolean on vectors, HNSW config, sparse vector index, and payload index. See Memory Tiers docs (available on 1.19+).It is normal for the OS page cache to occupy all available RAM, but if resident memory is above 80% of total RAM, it is a sign of a problem.
/metrics endpoint. See Monitoring docs.<!-- ToDo: Talk about memory usage of each components once API is available -->
Optimal memory usage depends on the use case.
For a detailed breakdown of memory usage at large scale, see Large scale memory usage example.
Payload indexes and HNSW graph also require memory, along with vectors themselves, so it's important to consider them in calculations.
Additionally, Qdrant requires some extra memory for optimizations. During optimization, optimized segments are fully loaded into RAM, so it is important to leave enough headroom. The larger max_segment_size is, the more headroom is needed.
Putting frequently used components (such as HNSW index) on disk might cause significant performance degradation. On Qdrant 1.19 or newer this is set with memory: cold in hnsw_config; on 1.18 or older with hnsw_config.on_disk: true. There are some scenarios, however, when it can be a good option:
The main challenge is to put on disk those parts of data, which are rarely accessed. Here are the main techniques to achieve that:
turbo4 datatype (TurboQuant-based, 4 bits/dimension, dense vectors only) reduces memory by ~8x, and can be paired with 1-bit quantization for cheaper rescoring than pairing 1-bit quantization with full-precision vectors. Read more about vector datatypes in documentationasync_scorer config, which enables support of io_uring for parallel disk access, which can significantly improve performance of on-disk storage. Read more about async_scorer in the article (only available on Linux with kernel 5.11+)memory: cold on Qdrant 1.19 or newer, on_disk: true on 1.18 or older docsmemory: cold on the sparse vector index on Qdrant 1.19 or newer (defaults to pinned), on_disk: true on 1.18 or older docs| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 20,119 | 16,603 | -17% | 1 | 1 | 0% | 2,686 | 3,867 | +44% | 0 | 0 | — |
case-02 | fail→pass | 22,053 | 12,139 | -45% | 1 | 1 | 0% | 4,021 | 3,521 | -12% | 0 | 0 | — |
case-03 | fail→pass | 23,450 | 11,844 | -49% | 1 | 1 | 0% | 3,969 | 3,681 | -7% | 0 | 0 | — |
case-04 | fail→pass | 17,222 | 9,764 | -43% | 1 | 1 | 0% | 2,813 | 3,106 | +10% | 0 | 0 | — |
case-05 | fail→pass | 22,236 | 5,964 | -73% | 1 | 1 | 0% | 3,258 | 2,389 | -27% | 0 | 0 | — |
case-06 | pass→pass | 12,438 | 7,514 | -40% | 1 | 1 | 0% | 2,390 | 2,872 | +20% | 0 | 0 | — |
case-07 | pass→pass | 14,909 | 10,269 | -31% | 1 | 1 | 0% | 2,533 | 3,058 | +21% | 0 | 0 | — |
case-08 | fail→pass | 16,520 | 6,073 | -63% | 1 | 1 | 0% | 2,824 | 2,532 | -10% | 0 | 0 | — |
case-09 | fail→pass | 14,585 | 3,976 | -73% | 1 | 1 | 0% | 1,826 | 1,962 | +7% | 0 | 0 | — |
case-10 | fail→pass | 11,944 | 5,165 | -57% | 1 | 1 | 0% | 2,162 | 2,315 | +7% | 0 | 0 | — |
case-11 | pass→pass | 21,021 | 4,111 | -80% | 1 | 1 | 0% | 2,848 | 2,227 | -22% | 0 | 0 | — |
case-12 | pass→pass | 17,685 | 15,021 | -15% | 1 | 1 | 0% | 3,368 | 4,355 | +29% | 0 | 0 | — |
case-13 | pass→pass | 15,746 | 7,715 | -51% | 1 | 1 | 0% | 2,147 | 2,680 | +25% | 0 | 0 | — |
case-14 | pass→pass | 14,566 | 7,688 | -47% | 1 | 1 | 0% | 2,619 | 2,497 | -5% | 0 | 0 | — |
case-15 | pass→pass | 13,605 | 3,066 | -77% | 1 | 1 | 0% | 2,038 | 1,875 | -8% | 0 | 0 | — |
case-16 | fail→pass | 16,364 | 9,065 | -45% | 1 | 1 | 0% | 2,703 | 3,093 | +14% | 0 | 0 | — |
case-17 | fail→pass | 18,499 | 12,154 | -34% | 1 | 1 | 0% | 2,731 | 3,160 | +16% | 0 | 0 | — |
case-18 | fail→pass | 16,922 | 4,991 | -71% | 1 | 1 | 0% | 2,580 | 2,130 | -17% | 0 | 0 | — |
case-19 | pass→pass | 15,069 | 8,348 | -45% | 1 | 1 | 0% | 2,311 | 2,563 | +11% | 0 | 0 | — |
case-20 | pass→pass | 11,766 | 5,300 | -55% | 1 | 1 | 0% | 1,756 | 2,302 | +31% | 0 | 0 | — |
case-21 | pass→pass | 12,610 | 7,094 | -44% | 1 | 1 | 0% | 2,317 | 2,514 | +9% | 0 | 0 | — |
case-22 | fail→pass | 10,326 | 2,320 | -78% | 1 | 1 | 0% | 1,525 | 1,708 | +12% | 0 | 0 | — |
case-23 | pass→pass | 15,710 | 14,962 | -5% | 1 | 1 | 0% | 2,432 | 3,586 | +47% | 0 | 0 | — |
case-24 | pass→pass | 6,029 | 2,901 | -52% | 1 | 1 | 0% | 989 | 1,963 | +98% | 0 | 0 | — |
case-25 | pass→pass | 18,173 | 12,111 | -33% | 1 | 1 | 0% | 3,002 | 3,476 | +16% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 25 cases were attempted. The headline lift of +48 percentage points is the difference between those two pass rates over the 25 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.