PCP-FREE(1)
π pcp-free β like free(1) but make it PCP β¨
okay bestie, so this one is from the General Commands Manual and it's literally the PCP glow-up of the classic free command, and yes it will tell you how much memory your little machine has left before it starts crying π₯²
π NAME π
pcp-free β report on free and used memory in the system π§ β¨
πΈ SYNOPSIS πΈ
pcp [pcp options] free [-bkmgroltVw?] [-c count] [-s interval]
π¦ DESCRIPTION π¦
pcp-free gives you a lil summary display of the total amount of free and used physical memory and swap in the system, plus the caches the kernel is hoarding. no cap, it's the vibe check for your RAM π
When you invoke it via the pcp(1) command, the -h/--host, -a/--archive, -O/--origin, -s/--samples, -t/--interval, -Z/--timezone and several other pcp options become indirectly available β so like, you don't pass them directly but they're lowkey there. see PCPIntro(1) for their descriptions π«Ά
The displayed columns are, and I'm gonna be so fr with you about each one:
totalβ total installed memory (MemTotalandSwapTotalin/proc/meminfo) πusedβ used memory (calculated astotal - free - buffers - cache)freeβ unused memory (MemFreeandSwapFreein/proc/meminfo)sharedβ memory used (mostly) by tmpfs (Shmemin/proc/meminfo)buffersβ memory used by kernel buffers (Buffersin/proc/meminfo)cacheβ memory used by the page cache and slabs (CachedandSReclaimablein/proc/meminfo)buff/cacheβ sum of buffers and cache, it's giving teamwork πavailableβ estimation of how much memory is available for starting new applications, without swapping. Unlike the data provided by thecacheorfreefields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed due to items being in use (MemAvailablein/proc/meminfo). it's the realistic friend of the group π
β¨ OPTIONS β¨
The available command line options are β and bestie, there's a bunch, so buckle up π:
-b,--bytesβ display the amount of memory in bytes π-c count,--samples=count,--count=countβ terminate the display aftercountiterations. see also-s.-g,--gigabytesβ display the amount of memory in gigabytes π-k,--kilobytesβ display the amount of memory in kilobytes. this is the default β-l,--lohiβ display detailed low and high memory statistics π-m,--megabytesβ display the amount of memory in megabytes π-oβ disable the display of a "buffer adjusted" line. if the-ooption is not specified,freesubtracts buffer memory from the used memory and adds it to the free memory reported. sneaky lil adjustment fr fr-r,--terabytesβ display the amount of memory in terabytes π-s delay,--interval=delay,--seconds=delayβ activate continuous pollingdelayseconds apart. you may specify any floating point number fordelay, or indeed any validpmParseInterval(3)specification, which includes microsecond resolution delay times. this can be used in conjunction with the-coption π₯-t,--totalβ display a line containing the totals π§Ύ-V,--versionβ display version number and exit π-w,--wideβ switch to the wide mode. the wide mode produces lines longer than 80 characters. in this modebuffersandcacheare reported in two separate columns π-?,--helpβ display usage message and exit π«Ά
π NOTES π
pcp-free is inspired by the free(1) command and aims to be command line and output compatible with it. iconic behaviour, honestly π
πΏ 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), free(1), pmParseInterval(3) and environ(7) β go read them, iykyk π
and that's the whole thing bestie!! π this page came to you courtesy of Performance Co-Pilot (that's the PCP in the corner) β mwah, go check your memory, ily, bye π β¨π¦
π¦ 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
- centos-stream 9: pcp-doc 6.3.7-14.el9 Β· GPL-2.0-or-later AND CC-BY-3.0
- debian trixie: pcp 6.3.8-1
- 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 questing: pcp 6.3.8-1
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2014,2019-2020 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms