Linux pageinfo 度量集

编辑

此功能处于测试阶段,可能随时更改。其设计和代码不如正式 GA 功能成熟,按原样提供,不提供任何担保。测试版功能不受正式 GA 功能的支持服务级别协议 (SLA) 的约束。

pageinfo 度量集报告在 /proc/pagetypeinfo 中找到的分页统计信息。

报告的指标按页面类型细分:DMA、DMA32、Normal 和 Highmem。这些类型进一步按阶细分,阶表示 2^ORDER*PAGE_SIZE 的区域。这些指标分为两种报告类型:buddyinfo,按页面类型汇总,如 /proc/buddyinfo 中所示;nodes 报告按内存迁移类型细分的详细信息。

此信息可用于确定内存碎片。内核 伙伴算法 将始终搜索最小的页面阶来分配,如果找不到,则将较大的页面阶拆分为两个“伙伴”。释放内存时,内核将尝试合并“伙伴”。如果仅在较低阶可用页面,则表示碎片,因为伙伴页面无法合并。

请注意,来自 /proc/pagetypeinfo 的页面计数仅显示最多 100,000 的值。

这是一个默认度量集。如果主机模块未配置,则默认启用此度量集。

字段

有关度量集每个字段的说明,请参见导出的字段 部分。

以下是此度量集生成的示例文档

{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "event": {
        "dataset": "linux.pageinfo",
        "duration": 115000,
        "module": "linux"
    },
    "linux": {
        "pageinfo": {
            "buddy_info": {
                "DMA": {
                    "0": 1,
                    "1": 0,
                    "10": 3,
                    "2": 1,
                    "3": 0,
                    "4": 2,
                    "5": 1,
                    "6": 1,
                    "7": 0,
                    "8": 1,
                    "9": 1
                },
                "DMA32": {
                    "0": 3,
                    "1": 4,
                    "10": 745,
                    "2": 1,
                    "3": 2,
                    "4": 2,
                    "5": 2,
                    "6": 2,
                    "7": 2,
                    "8": 2,
                    "9": 3
                },
                "Normal": {
                    "0": 3409,
                    "1": 4916,
                    "10": 292,
                    "2": 4010,
                    "3": 4853,
                    "4": 3613,
                    "5": 2472,
                    "6": 793,
                    "7": 552,
                    "8": 189,
                    "9": 148
                }
            },
            "nodes": {
                "0": {
                    "DMA": {
                        "CMA": {
                            "0": 0,
                            "1": 0,
                            "10": 0,
                            "2": 0,
                            "3": 0,
                            "4": 0,
                            "5": 0,
                            "6": 0,
                            "7": 0,
                            "8": 0,
                            "9": 0
                        },
                        "HighAtomic": {
                            "0": 0,
                            "1": 0,
                            "10": 0,
                            "2": 0,
                            "3": 0,
                            "4": 0,
                            "5": 0,
                            "6": 0,
                            "7": 0,
                            "8": 0,
                            "9": 0
                        },
                        "Isolate": {
                            "0": 0,
                            "1": 0,
                            "10": 0,
                            "2": 0,
                            "3": 0,
                            "4": 0,
                            "5": 0,
                            "6": 0,
                            "7": 0,
                            "8": 0,
                            "9": 0
                        },
                        "Movable": {
                            "0": 0,
                            "1": 0,
                            "10": 3,
                            "2": 0,
                            "3": 0,
                            "4": 0,
                            "5": 0,
                            "6": 0,
                            "7": 0,
                            "8": 0,
                            "9": 1
                        },
                        "Reclaimable": {
                            "0": 0,
                            "1": 0,
                            "10": 0,
                            "2": 0,
                            "3": 0,
                            "4": 0,
                            "5": 0,
                            "6": 0,
                            "7": 0,
                            "8": 0,
                            "9": 0
                        },
                        "Unmovable": {
                            "0": 1,
                            "1": 0,
                            "10": 0,
                            "2": 1,
                            "3": 0,
                            "4": 2,
                            "5": 1,
                            "6": 1,
                            "7": 0,
                            "8": 1,
                            "9": 0
                        }
                    },
                    "DMA32": {
                        "CMA": {
                            "0": 0,
                            "1": 0,
                            "10": 0,
                            "2": 0,
                            "3": 0,
                            "4": 0,
                            "5": 0,
                            "6": 0,
                            "7": 0,
                            "8": 0,
                            "9": 0
                        },
                        "HighAtomic": {
                            "0": 0,
                            "1": 0,
                            "10": 0,
                            "2": 0,
                            "3": 0,
                            "4": 0,
                            "5": 0,
                            "6": 0,
                            "7": 0,
                            "8": 0,
                            "9": 0
                        },
                        "Isolate": {
                            "0": 0,
                            "1": 0,
                            "10": 0,
                            "2": 0,
                            "3": 0,
                            "4": 0,
                            "5": 0,
                            "6": 0,
                            "7": 0,
                            "8": 0,
                            "9": 0
                        },
                        "Movable": {
                            "0": 3,
                            "1": 3,
                            "10": 745,
                            "2": 1,
                            "3": 2,
                            "4": 2,
                            "5": 2,
                            "6": 2,
                            "7": 1,
                            "8": 1,
                            "9": 2
                        },
                        "Reclaimable": {
                            "0": 0,
                            "1": 0,
                            "10": 0,
                            "2": 0,
                            "3": 0,
                            "4": 0,
                            "5": 0,
                            "6": 0,
                            "7": 0,
                            "8": 0,
                            "9": 0
                        },
                        "Unmovable": {
                            "0": 0,
                            "1": 1,
                            "10": 0,
                            "2": 0,
                            "3": 0,
                            "4": 0,
                            "5": 0,
                            "6": 0,
                            "7": 1,
                            "8": 1,
                            "9": 1
                        }
                    },
                    "Normal": {
                        "CMA": {
                            "0": 0,
                            "1": 0,
                            "10": 0,
                            "2": 0,
                            "3": 0,
                            "4": 0,
                            "5": 0,
                            "6": 0,
                            "7": 0,
                            "8": 0,
                            "9": 0
                        },
                        "HighAtomic": {
                            "0": 0,
                            "1": 0,
                            "10": 0,
                            "2": 0,
                            "3": 0,
                            "4": 0,
                            "5": 0,
                            "6": 0,
                            "7": 0,
                            "8": 0,
                            "9": 0
                        },
                        "Isolate": {
                            "0": 0,
                            "1": 0,
                            "10": 0,
                            "2": 0,
                            "3": 0,
                            "4": 0,
                            "5": 0,
                            "6": 0,
                            "7": 0,
                            "8": 0,
                            "9": 0
                        },
                        "Movable": {
                            "0": 3137,
                            "1": 4732,
                            "10": 291,
                            "2": 3687,
                            "3": 2993,
                            "4": 2337,
                            "5": 1504,
                            "6": 355,
                            "7": 404,
                            "8": 155,
                            "9": 141
                        },
                        "Reclaimable": {
                            "0": 0,
                            "1": 0,
                            "10": 0,
                            "2": 1,
                            "3": 3,
                            "4": 227,
                            "5": 534,
                            "6": 305,
                            "7": 124,
                            "8": 31,
                            "9": 5
                        },
                        "Unmovable": {
                            "0": 272,
                            "1": 184,
                            "10": 1,
                            "2": 322,
                            "3": 1857,
                            "4": 1049,
                            "5": 434,
                            "6": 133,
                            "7": 24,
                            "8": 3,
                            "9": 2
                        }
                    },
                    "order_summary": {
                        "0": 3413,
                        "1": 4920,
                        "10": 1040,
                        "2": 4012,
                        "3": 4855,
                        "4": 3617,
                        "5": 2475,
                        "6": 796,
                        "7": 554,
                        "8": 192,
                        "9": 152
                    }
                }
            }
        }
    },
    "metricset": {
        "name": "pageinfo",
        "period": 10000
    },
    "service": {
        "type": "linux"
    }
}