Linux pageinfo 指标集编辑

此功能处于测试阶段,可能会发生变化。设计和代码比正式 GA 功能不成熟,按原样提供,不提供任何保证。测试版功能不受正式 GA 功能支持 SLA 的约束。

pageinfo 指标集报告 /proc/pagetypeinfo 中的分页统计信息。

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

此信息可用于确定内存碎片。内核 伙伴算法 将始终搜索最小的页面顺序以分配,如果不可用,则将更大的页面顺序拆分为两个“伙伴”。当内存被释放时,内核将尝试合并“伙伴”。如果唯一可用的页面位于较低的顺序,则表明存在碎片,因为伙伴页面无法合并。

这是一个默认指标集。如果主机模块未配置,则默认情况下会启用此指标集。

字段

有关指标集中每个字段的说明,请参阅 导出字段 部分。

以下是此指标集生成的示例文档

{
    "@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"
    }
}