Skip to main content

Overview

The userspace page cache is a new caching mechanism that allows for caching of data in in-process memory rather than relying on the OS page cache.
ClickHouse already offers the Filesystem cache as a way of caching on top of remote object storage such as Amazon S3, Google Cloud Storage (GCS) or Azure Blob Storage. The userspace page cache is designed to speed up access to remote data when the normal OS caching isn’t doing a good enough job. It differs from the filesystem cache in the following ways:

Configuration settings and usage

Usage

To enable the userspace page cache, first configure it on the server:
The userspace page cache will use up to the specified amount of memory, but this memory amount is not reserved. The memory will be evicted when it is needed for other server needs.
Next, enable its usage on the query-level:

Settings

Last modified on June 23, 2026