PCP-FREE(1)

πŸ“¦
version 7.2.2 Β· 2 versions
, in arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 (MemTotal and SwapTotal in /proc/meminfo) πŸ’–
  • used β€” used memory (calculated as total - free - buffers - cache)
  • free β€” unused memory (MemFree and SwapFree in /proc/meminfo)
  • shared β€” memory used (mostly) by tmpfs (Shmem in /proc/meminfo)
  • buffers β€” memory used by kernel buffers (Buffers in /proc/meminfo)
  • cache β€” memory used by the page cache and slabs (Cached and SReclaimable in /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 the cache or free fields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed due to items being in use (MemAvailable in /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 after count iterations. 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 -o option is not specified, free subtracts 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 polling delay seconds apart. you may specify any floating point number for delay, or indeed any valid pmParseInterval(3) specification, which includes microsecond resolution delay times. this can be used in conjunction with the -c option πŸ”₯
  • -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 mode buffers and cache are 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