Overview
MDS cache pressure occurs when the Metadata Server (MDS) requests clients to release their cache, but clients are either slow to respond or fail to honor these requests1.
Error Message
The health warning appears as:
health warn mds failing to respond to cache pressure
Symptoms
When experiencing MDS cache pressure, you may see warnings in the Ceph health status about clients failing to respond to cache pressure. This typically occurs when the MDS cache size approaches or exceeds the configured limit.
Solutions
- Increase MDS Cache Memory Limit1:
-
Client-side Checks:
- Verify kernel version is up to date
- Check for kernel bugs related to CephFS cache handling
-
Adjust Client Cache Size2:
Technical Details
The MDS maintains a cache of metadata to serve client requests efficiently. When this cache comes under pressure, the MDS attempts to reclaim memory by asking clients to trim their caches. If clients don’t respond appropriately, it can impact overall filesystem performance.