Memory usage of searchd (RssAnon) grows to ~40 GB under search load and displaces the index from the page cache

Author: cfx-damirCreated Sep 23, 2026Updated Sep 28, 2026
Labelswaiting

What are you trying to achieve?

We want searchd's memory usage to stay stable under search load, so that enough RAM is left for the page cache and search latency stays low.

What do you need help with?

Environment

  • Manticore 29.0.2 (columnar/secondary 13.9.0), Docker on AWS ECS
  • 8 vCPUs (Graviton, aarch64), 61 GiB RAM, local NVMe SSD
  • 100 RT tables totaling 427 GB on disk. The largest table is 57 GB and contains 13.8 million documents.
  • Load: ongoing write operations (~200 documents/s via bulk REPLACE) plus search queries with facets (GROUP BY across up to 10 million hits, including GROUP BY on multi-value attributes)

Memory usage over the course of a day, from idle to under load (blue = min, orange = max):

Image

Idle: rises to ~17% (10.5 GB), then drops back to ~11% (6.5 GB):

Image

Under load: rises to 68% (41.5 GB), then drops back to ~11% (6.5 GB):

Image

At its peak, searchd uses ~41 GB of RssAnon. With 412 GB of index files, only ~20 GB of page cache remains, and queries read from disk: iowait 25–45%, ~2 GB/s read throughput, work_queue_length up to 178. Search latency increases from ~0.25 s to 10–20 s, while CPU usage remains at 50–60%.

We're running almost entirely on default settings. The manticore.conf file only contains listen, pid_file, and data_dir; at startup, we also configure the query cache (qcache_max_bytes = 256M, qcache_thresh_msec = 100, qcache_ttl_sec = 300).

Do we need to adjust our settings so that searchd frees up the memory again? If so, what settings do you recommend?

What have you tried?

We use GROUP BY on multi-value attributes for facets, so this looks related to #4920. We plan to upgrade to 29.11.3, which contains the fix, tonight and will report back whether the memory growth is gone.

Source: manticoresoftware/manticoresearch