---
title: github-fill
description: SS 宏块缓存大小 本节介绍 OB SS 模式下宏块缓存占用空间相关指标。 说明 以下监控分组适用于 OceanBase 共享存储（SS）模式 ，要求 OB 集群版本 ≥ 4.6.2.0 。采集条件为 ob_mode_is_shared_storage （仅在 SS 模式下采集）。 ob_ss_macro_cache…
image: https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*OSPzQ6GUQF4AAAAAQHAAAAgAeiGDAQ/original
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*lJTmRZ61jSUAAAAAAAAAAAAADiGDAQ/original) 云平台 OCPV 4.5.0

# SS 宏块缓存大小

更新时间：2026-08-03 16:09:20

[编辑](https://github.com/oceanbase/ocp-doc/edit/V4.5.0/zh-CN/1900.reference-guide/300.monitoring-indicator-reference/700.ai-cluster/200.shared-storage/200.ss-macro-cache-size.md)  

本节介绍 OB SS 模式下宏块缓存占用空间相关指标。

#### 说明

以下监控分组适用于 **OceanBase 共享存储（SS）模式**，要求 OB 集群版本 **≥ 4.6.2.0**。采集条件为 `ob_mode_is_shared_storage`（仅在 SS 模式下采集）。

## ob_ss_macro_cache_alloc_disk_size

### 指标介绍

OB SS 模式下分配给宏块缓存的磁盘空间。

### 指标参数说明

| 指标项 | 指标名称 | 单位 |
| --- | --- | --- |
| ob_ss_macro_cache_alloc_disk_size | ob_ss_macro_cache_alloc_disk_size | byte |

### SQL 采集

```sql
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245058) and (con_id > 1000 or con_id = 1)

```

---

## ob_ss_macro_cache_write_cache_size

### 指标介绍

OB SS 模式下写缓存占用的磁盘空间。

### 指标参数说明

| 指标项 | 指标名称 | 单位 |
| --- | --- | --- |
| ob_ss_macro_cache_write_cache_size | ob_ss_macro_cache_write_cache_size | byte |

### SQL 采集

```sql
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245059) and (con_id > 1000 or con_id = 1)

```

---

## ob_ss_macro_cache_meta_used_size

### 指标介绍

OB SS 模式下 Meta（table_meta 文件）已使用磁盘空间。

### 指标参数说明

| 指标项 | 指标名称 | 单位 |
| --- | --- | --- |
| ob_ss_macro_cache_meta_used_size | ob_ss_macro_cache_meta_used_size | byte |

### SQL 采集

```sql
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245023) and (con_id > 1000 or con_id = 1)

```

---

## ob_ss_macro_cache_tmp_file_used_size

### 指标介绍

OB SS 模式下临时文件已使用磁盘空间。

### 指标参数说明

| 指标项 | 指标名称 | 单位 |
| --- | --- | --- |
| ob_ss_macro_cache_tmp_file_used_size | ob_ss_macro_cache_tmp_file_used_size | byte |

### SQL 采集

```sql
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245029) and (con_id > 1000 or con_id = 1)

```

---

## ob_ss_macro_cache_macro_used_size

### 指标介绍

OB SS 模式下普通宏块已使用磁盘空间。

### 指标参数说明

| 指标项 | 指标名称 | 单位 |
| --- | --- | --- |
| ob_ss_macro_cache_macro_used_size | ob_ss_macro_cache_macro_used_size | byte |

### SQL 采集

```sql
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245035) and (con_id > 1000 or con_id = 1)

```

---

## ob_ss_macro_cache_hot_macro_used_size

### 指标介绍

OB SS 模式下热点 tablet 宏块已使用磁盘空间。

### 指标参数说明

| 指标项 | 指标名称 | 单位 |
| --- | --- | --- |
| ob_ss_macro_cache_hot_macro_used_size | ob_ss_macro_cache_hot_macro_used_size | byte |

### SQL 采集

```sql
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245041) and (con_id > 1000 or con_id = 1)

```

---

## ob_ss_mem_macro_cache_used_mem_size

### 指标介绍

OB SS 模式下内存宏块缓存占用的内存大小。

### 指标参数说明

| 指标项 | 指标名称 | 单位 |
| --- | --- | --- |
| ob_ss_mem_macro_cache_used_mem_size | ob_ss_mem_macro_cache_used_mem_size | byte |

### SQL 采集

```sql
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (245060) and (con_id > 1000 or con_id = 1)

```

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
