PCP-BUDDYINFO(1)
β¨ pcp-buddyinfo β bestie edition β¨
okay so real talk, this is the pcp-buddyinfo manual page, part of the Performance Co-Pilot (PCP) lineup of general commands. it's giving very niche, very powerful, very iykyk. π
π NAME π
pcp-buddyinfo β report Linux kernel buddy algorithm statistics
like... it literally just tells you what the buddy algorithm is up to. that's the whole vibe.
πΈ SYNOPSIS πΈ
pcp [pcp options] buddyinfo [-uVz?] [-s samples] [-a archive] [-Z timezone]
π¦ DESCRIPTION π¦
so pcp-buddyinfo is the tool you run when you wanna peek at all the different stats related to buddyinfo. it helps you analyze the dynamic behaviour of the buddy algorithm that lives inside the Linux kernel virtual memory subsystem. β¨
the tea it spills includes: the total number of zones that are currently active, counts of different order pages, and so on. and by default? it reports live data for the local host. no archive needed, no cap. π«Ά
here's what the statistics actually are, bestie:
Normalβ zones availableNodesβ available nodesOrder0β available pages of order 0Order1β available pages of order 1Order2β available pages of order 2Order3β available pages of order 3Order4β available pages of order 4Order5β available pages of order 5Order6β available pages of order 6Order7β available pages of order 7Order8β available pages of order 8Order9β available pages of order 9Order10β available pages of order 10
each column represents the number of pages of a certain order (aka a certain size) that are available at any given time. for example, for zone DMA (direct memory access), there are 90 of 2^(0*PAGE_SIZE) chunks of memory. similarly, there are 6 of 2^(1*PAGE_SIZE) chunks, and 2 of 2^(2*PAGE_SIZE) chunks of memory available. the way that math ate π
and the rows?? let me put you on:
- the DMA row references the first 16 MB on a system
- the HighMem row references all memory greater than 4 GB on a system
- the Normal row references all memory in between
periodt. π
π OPTIONS π
-a file,--archive=fileβ fetch buddyinfo metrics from the specified PCP archive. ποΈ-s count,--samples=countβ limit reporting tocountsamples of buddyinfo statistics.-u,--no-interpolβ disable the default interpolation mode when replaying an archive. with the-uoption, interpolated reporting is disabled and each sample is reported according to native sampling intervals in the archive. in this mode the-toption is ignored. additionally, non-interpolated replay makes sense only when replaying an archive (using the-aoption described above), so the-aoption is mandatory when-uis specified. π¨-z,--hostzoneβ use the local timezone of the host that is the source of the performance metrics, as identified by either the-hor the-aoptions. the default is to use the timezone of the local host. π-Z timezone,--timezone=timezoneβ use timezone for the date and time. Timezone is in the format of the environment variableTZas described inenviron(7).-V,--versionβ display version number and exit. bye π-?,--helpβ display usage message and exit.
π NOTES π
pcp-buddyinfo reports information extracted from the /proc/buddyinfo Linux kernel procfs file. π
if the default interpolation mode is disabled, it is possible that some metrics (recorded at different intervals) will be reported as having missing values for some samples even if they were recorded. so like... heads up, bestie. π
π PCP ENVIRONMENT π
environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. on each installation, the file /etc/pcp.conf contains the local values for these variables. the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5). π«Ά
for environment variables affecting PCP tools, see pmGetOptions(3).
π SEE ALSO π
PCPIntro(1), pcp(1), pmGetOptions(3), pcp.conf(5) and environ(7).
that's the whole page, you're welcome π
Performance Co-Pilot Β· PCP Β· PCP-BUDDYINFO(1) β mwah, stan this manpage, it's iconic fr fr πβ¨π¦
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2023 Oracle and/or its affiliates
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms