ATOPRC(5)
๐ฆ atoprc(5) โ File Formats Manual, but make it group chat ๐ฆ
โจ NAME โจ
atoprc โ the rcfile thatโs related to atop and atopsar
๐ DESCRIPTION ๐
Okay so this page documents the rcfile for the atop and atopsar commands. Those commands are the ones you use to monitor the system and process load on a Linux system. ๐ปโจ
The atoprc file holds the default settings. Theyโre read during startup, first from the system-wide rcfile /etc/atoprc and after that from the user-specific rcfile ~/.atoprc โ so system-wide settings can be overruled by an individual user. The options in both rcfiles are identical. Periodt. ๐
๐ OPTIONS ๐
The rcfile contains keyword-value pairs, one on every line (blank lines and lines starting with a #-sign are ignored). The following keywords can be specified:
flagsโ you can define a list of default flags foratophere. The allowed flags aret,B,H,G,2till9,g,m,d,n,u,p,s,c,v,C,M,D,N,A,a,y,Y,f,F,R,1,e,Eandx. ๐ฉtwindirโ the default absolute path name of the temporary directory in which the twin file should be allocated. ๐intervalโ the default interval value in seconds. โฑ๏ธlinelenโ the length of a screen line when sending output to a file or pipe (default80). ๐usernameโ regular expression or one numerical UID to select the users for which (active) processes will be shown. ๐ซถprocnameโ the default regular expression for the process names to be shown. ๐maxlinecpuโ the maximum number of active CPUs that will be shown. ๐งmaxlinegpuโ the maximum number of active GPUs that will be shown. ๐ฎmaxlinelvmโ the maximum number of active logical volumes that will be shown. ๐ฝmaxlinemddโ the maximum number of active multiple devices that will be shown. ๐งฉmaxlinediskโ the maximum number of active disks that will be shown. ๐พmaxlinenfsmโ the maximum number of NFS mounts that will be shown on an NFS client. ๐maxlineintfโ the maximum number of active network interfaces that will be shown. ๐ถmaxlinecontโ the maximum number of active containers that will be shown. ๐ฆmaxlineifbโ the maximum number of Infiniband ports that will be shown. ๐งตmaxlinenumaโ the maximum number of NUMA node metrics that will be shown. Notice that two lines are shown for each NUMA node. ๐ง โจmaxlinellcโ the maximum number of lines with LLC metrics that will be shown. ๐งcpucritpercโ the busy percentage considered critical for a processor (see sectionCOLORSin the man-page of theatopcommand). This percentage is used to determine a weighted percentage for line coloring and sorting of active processes in text mode. When this value is zero, no line coloring or automatic sorting is performed for this resource. ๐ฅdskcritpercโ the busy percentage considered critical for a disk (see sectionCOLORSin the man-page of theatopcommand). This percentage is used to determine a weighted percentage for line coloring and sorting of active processes in text mode. When this value is zero, no line coloring or automatic sorting is performed for this resource. ๐ฝ๐ฅnetcritpercโ the busy percentage considered critical for a network interface (see sectionCOLORSin the man-page of theatopcommand). This percentage is used to determine a weighted percentage for line coloring and sorting of active processes in text mode. When this value is zero, no line coloring or automatic sorting is performed for this resource. ๐ถ๐ฅmemcritpercโ the percentage considered critical for memory utilization (see sectionCOLORSin the man-page of theatopcommand). This percentage is used to determine a weighted percentage for line coloring and sorting of active processes in text mode. When this value is zero, no line coloring or automatic sorting is performed for this resource. ๐ง ๐ฅswpcritpercโ the occupation percentage considered critical for swap space (see sectionCOLORSin the man-page of theatopcommand). This percentage is used to determine a weighted percentage for line coloring and sorting of active processes in text mode. When this value is zero, no line coloring or automatic sorting is performed for this resource. ๐๐ฅswoutcritsecโ the number of pages swapped out per second considered critical for memory utilization (see sectionCOLORSin the man-page of theatopcommand). This threshold is used in combination withmemcritpercto determine a weighted percentage for line coloring and sorting of active processes in text mode. When this value is zero, no line coloring or automatic sorting is performed for this resource. ๐ค๐ฅalmostcritโ a percentage of the critical percentage to determine if the resource is almost critical (see sectionCOLORSin the man-page of theatopcommand). When this value is zero, no line coloring foralmost criticalis performed. ๐กcpubarwidthโ number of columns used per bar in the processor bar graph. The default value is0, which means that the bar width will be scaled automatically (the wider the terminal, the more columns per bar up to a maximum of three). With the value1,2or3the number of bars can be statically pinned to that number of columns, with one column of white space in between the bars. ๐colorinfoโ definition of color name for information messages (default:green) in text mode. Allowed colors are:redgreenyellowbluemagentacyanblackwhite. ๐colorthreadโ definition of color name for thread-specific lines when using theyoption (default:yellow). Allowed colors are:redgreenyellowbluemagentacyanblackwhite. ๐งตcoloralmostโ definition of color name for almost critical resources (default:cyan) in text mode. Allowed colors are:redgreenyellowbluemagentacyanblackwhite. ๐ฉตcolorcriticalโ definition of color name for critical resources (default:red) in text mode. Allowed colors are:redgreenyellowbluemagentacyanblackwhite. โค๏ธatopsarflagsโ you can define a list of default flags foratopsarhere. The allowed flags areS,x,C,M,H,a,Aand the flags to select one or more specific reports. ๐๏ธperfeventsโ defines whether or not the CPU cycle counter should be retrieved byatopvia theperfcounters. The valuesauto(default),enableordisablecan be specified. In case ofauto, the CPU cycle counter will not be retrieved on virtual machines due to the overhead of reading this counter in a guest. โกpacctdirโ the name of the topdirectory used by theatopacctddaemon. In this directory, the daemon creates a subdirectorypacct_shadow.din which files will be written containing the process accounting records. The default topdirectory is/var/run, and this option only has to be specified when theatopacctddaemon is started with an alternative topdirectory as command line argument. This option can only be specified in the/etc/atoprcfile (on system level)! ๐จ
An example of the /etc/atoprc or ~/.atoprc file:
flags Aaf
interval 5
username
procname
maxlinecpu 4
maxlinedisk 10
maxlineintf 5
cpucritperc 80
almostcrit 90
atopsarflags CMH
ownprocline PID:50 VGROW:40 RGROW:45 COMMAND-LINE:50
ownpagline PAGSCAN:3 BLANKBOX:0 PAGSWIN:3 PAGSWOUT:7
The keywords ownprocline and ownpagline are explained in the subsequent section.
๐ OWN DEFINITION OF OUTPUT LINE ๐
okay so this is the part where you literally get to be the designer, bestie. through the rcfile you can lay out the output lines yourself โ like, define the layout of one line with process info using the keyword ownprocline (you pick it with the key o or the flag -o), and you can also redefine all the lines with system info. full creative control, no cap. โจ
the layout of an output line goes like this (and heads up โ this should be specified as one line in the rcfile):
keyword <columnid>:<prio> [<columnid>:<prio> ...]
The columnid is the symbolic name of a column that should be shown at this position in the output line.
The prio is a positive integer value that determines which columns have precedence whenever not all specified columns fit into the current screen-width. the higher the value, the higher the priority. ๐
the column-specifications should be separated by a space. the order in which columns have been specified is the order in which they will be shown, with respect to their priority (columns that do not fit will be dropped dynamically โ they get ghosted, basically ๐ซฅ).
a special columnid for system lines is BLANKBOX. this indicates that an empty column is required at this position. also this special columnid is followed by a priority (usually low).
the process-info one ๐
the following definition can be specified for process information:
ownprocline
the columnids are the names of the columns that are shown in the normal output of the process-related lines that are shown by atop, such as 'PID', 'CMD', 'S', ... The only exception is the special columnid 'SORTITEM' that is used to show one of the columns CPU%/DSK%/MEM%/NET%, depending on the chosen sort-criterium.
an example of a user-defined process line:
ownprocline PID:20 PPID:10 SYSCPU:15 USRCPU:15 VGROW:14
VSIZE:12 RGROW:14 RSIZE:12 ST:8 EXC:7 S:11 SORTITEM:18 CMD:20
the system lines, aka atop's built-in glow-up ๐
the following definitions are used internally by atop as the default system lines (and yes, you can redefine each of them in the rcfile as one line โ go off):
ownsysprcline
redefinition of line labeled with 'PRC':
ownsysprcline PRCSYS:8 PRCUSER:8 BLANKBOX:0 PRCNPROC:7
PRCNZOMBIE:5 PRCCLONES:4 BLANKBOX:0 PRCNNEXIT:6
ownallcpuline
redefinition of line labeled with 'CPU' for total CPU-utilization:
ownallcpuline CPUSYS:8 CPUUSER:7 CPUIRQ:4 BLANKBOX:0 CPUIDLE:5
CPUWAIT:6 BLANKBOX:0 CPUSTEAL:1 CPUGUEST:3
ownonecpuline
redefinition of line labeled with 'CPU' for utilization of one CPU:
ownonecpuline CPUISYS:8 CPUIUSER:7 CPUIIRQ:4 BLANKBOX:0
CPUIIDLE:5 CPUIWAIT:6 BLANKBOX:0 CPUISTEAL:1 CPUIGUEST:3
owncplline
redefinition of line labeled with 'CPL':
owncplline CPLAVG1:4 CPLAVG5:3 CPLAVG15:2 BLANKBOX:0 CPLCSW:6
CPLINTR:5 BLANKBOX:0 CPLNUMCPU:1
ownmemline
redefinition of line labeled with 'MEM':
ownmemline MEMTOT:2 MEMFREE:5 MEMCACHE:3 MEMDIRTY:1
MEMBUFFER:3 MEMSLAB:3 BLANKBOX:0 BLANKBOX:0 BLANKBOX:0
BLANKBOX:0
ownswpline
redefinition of line labeled with 'SWP':
ownswpline SWPTOT:3 SWPFREE:4 BLANKBOX:0 BLANKBOX:0 BLANKBOX:0
BLANKBOX:0 BLANKBOX:0 BLANKBOX:0 SWPCOMMITTED:5 SWPCOMMITLIM:6
ownpagline
redefinition of line labeled with 'PAG':
ownpagline PAGSCAN:3 PAGSTALL:1 BLANKBOX:0 PAGSWIN:4
PAGSWOUT:3
owndskline
redefinition of lines labeled with 'LVM', 'MDD' and 'DSK':
owndskline DSKNAME:8 DSKBUSY:7 DSKNREAD:6 DSKNWRITE:6
DSKKBPERRD:4 DSKKBPERWR:4 DSKMBPERSECRD:5 DSKMBPERSECWR:5
DSKAVQUEUE:1 DSKAVIO:5
ownnettrline
redefinition of line labeled with 'NET' for transport:
ownnettrline NETTRANSPORT:9 NETTCPI:8 NETTCPO:8 NETUDPI:8
NETUDPO:8 NETTCPACTOPEN:6 NETTCPPASVOPEN:5 NETTCPRETRANS:4
NETTCPINERR:3 NETTCPORESET:20 NETUDPNOPORT:1 NETUDPINERR:3
ownnetnetline
redefinition of line labeled with 'NET' for network:
ownnetnetline NETNETWORK:5 NETIPI:4 NETIPO:4 NETIPFRW:4
NETIPDELIV:4 BLANKBOX:0 BLANKBOX:0 BLANKBOX:0 NETICMPIN:1
NETICMPOUT:1
ownnetifline
redefinition of line labeled with 'NET' for interfaces:
ownnetifline NETNAME:8 NETPCKI:7 NETPCKO:7 NETSPEEDIN:6
NETSPEEDOUT:6 NETCOLLIS:3 NETMULTICASTIN:2 NETRCVERR:5
NETSNDERR:5 NETRCVDROP:4 NETSNDDROP:4
the lines above are shown in the order as shown by atop in combination with the -f flag (in a very wide window you should be able to see all of the columns โ stretch that terminal, you got this ๐ฅ๏ธโจ).
๐ธ SEE ALSO ๐ธ
atop(1), atopsar(1), atopacctd(8), netatop(4), netatopd(8), logrotate(8)
๐ AUTHOR ๐
Gerlof Langeveld (gerlof.langeveld@atoptool.nl) JC van Winkel
and that's the whole page, bestie โ you made it to the end ๐๐ this one's from the Linux crew, dated January 2024, ATOPRC(5), and it was literally iconic. go forth and customize your columns. periodt. ๐
โจ
๐ฆ where this page comes from
- alpine 3.23: atop-doc 2.12.1-r0 ยท GPL-2.0-or-later
- alpine 3.24: atop-doc 2.12.1-r0 ยท GPL-2.0-or-later
- arch rolling: atop 2.13.0-1 ยท GPL-2.0-or-later
- nixos 26.05: atop 2.12.1
- nixpkgs unstable: atop 2.13.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms