erlang_system_info(3)
โจ NAME โจ
erlang_system_info(3) โ Returns information about the current system. ๐โ๏ธโจ
๐ DESCRIPTION ๐
The documentation of this function is broken into the following sections in order to make it easier to navigate. ๐บ๏ธ๐
- Memory Allocation โ
allocated_areas,allocator,alloc_util_allocators,allocator_sizes - CPU Topology โ
cpu_topology,logical_processors,update_cpu_info - Process Information โ
fullsweep_after,garbage_collection,heap_sizes,heap_type,max_heap_size,message_queue_data,min_heap_size,min_bin_vheap_size,procs - System Limits โ
atom_count,atom_limit,ets_count,ets_limit,port_count,port_limit,process_count,process_limit - System Time โ
end_time,os_monotonic_time_source,os_system_time_source,start_time,time_correction,time_offset,time_warp_mode,tolerant_timeofday - Scheduler Information โ
dirty_cpu_schedulers,dirty_cpu_schedulers_online,dirty_io_schedulers,multi_scheduling,multi_scheduling_blockers,normal_multi_scheduling_blockers,scheduler_bind_type,scheduler_bindings,scheduler_id,schedulers,smp_support,threads,thread_pool_size - Distribution Information โ
creation,delayed_node_table_gc,dist,dist_buf_busy_limit,dist_ctrl - System Information โ
c_compiler_used,check_io,debug_compiled,driver_version,dynamic_trace,dynamic_trace_probes,embedded_3pps,emu_flavor,emu_type,info,kernel_poll,loaded,machine,modified_timing_level,nif_version,otp_release,outstanding_system_requests_limit,port_parallelism,system_architecture,system_logger,system_version,trace_control_word,version,wordsize
๐ง Memory Allocation ๐ง
Okay bestie, this one spills all the tea about the memory allocators of the current system (aka the emulator) based on what you pass as Item:
allocated_areasโ Returns[tuple()]with information about miscellaneous allocated memory areas.
Each tuple contains an atom describing the type of memory as first element and the amount of allocated memory in bytes as second element. When information about allocated and used memory is present, also a third element is present, containing the amount of used memory in bytes.
erlang:system_info(allocated_areas) is intended for debugging, and the content is highly implementation-dependent. The content of the results therefore changes when needed without prior notice.
Notice that the sum of these values is not the total amount of memory allocated by the emulator. Some values are part of other values, and some memory areas are not part of the result. For information about the total amount of memory allocated by the emulator, see erlang:memory/0,1.
allocatorโ Returns
{Allocator :: undefined | glibc,
Version :: [non_neg_integer()],
Features :: [atom()],
Settings :: [{Subsystem :: atom(),
[{Parameter :: atom(),
Value :: term()}]
}]
}
where
Allocatorcorresponds to themalloc()implementation used. IfAllocatorequalsundefined, themalloc()implementation used cannot be identified.glibccan be identified.Versionis a list of integers (but not a string) representing the version of themalloc()implementation used.Featuresis a list of atoms representing the allocation features used.Settingsis a list of subsystems, their configurable parameters, and used values.Settingscan differ between different combinations of platforms, allocators, and allocation features. Memory sizes are given in bytes.
See also "System Flags Effecting erts_alloc" in erts_alloc(3).
{allocator, Alloc}โ Returns information about the specified allocator. As from ERTS 5.6.1, the return value is a list of{instance, InstanceNo, InstanceInfo}tuples, whereInstanceInfocontains information about a specific instance of the allocator. IfAllocis not a recognized allocator,undefinedis returned. IfAllocis disabled,falseis returned.
Notice that the information returned is highly implementation-dependent and can be changed or removed at any time without prior notice. It was initially intended as a tool when developing new allocators, but as it can be of interest for others it has been briefly documented.
The recognized allocators are listed in erts_alloc(3). Information about super carriers can be obtained from ERTS 8.0 with {allocator, erts_mmap} or from ERTS 5.10.4; the returned list when calling with {allocator, mseg_alloc} also includes an {erts_mmap, _} tuple as one element in the list.
After reading the erts_alloc(3) documentation, the returned information more or less speaks for itself, but it can be worth explaining some things. Call counts are presented by two values, the first value is giga calls, and the second value is calls. mbcs and sbcs denote multi-block carriers, and single-block carriers, respectively. Sizes are presented in bytes. When a size is not presented, it is the amount of something. Sizes and amounts are often presented by three values:
- The first is the current value.
- The second is the maximum value since the last call to
erlang:system_info({allocator, Alloc}). - The third is the maximum value since the emulator was started.
If only one value is present, it is the current value. fix_alloc memory block types are presented by two values. The first value is the memory pool size and the second value is the used memory size.
alloc_util_allocatorsโ Returns a list of the names of all allocators using the ERTS internalalloc_utilframework as atoms. For more information, see section Thealloc_utilframework inerts_alloc(3).{allocator_sizes, Alloc}โ Returns various size information for the specified allocator. The information returned is a subset of the information returned byerlang:system_info({allocator, Alloc}).
๐ฅ๏ธ CPU Topology ๐ฅ๏ธ
Returns various information about the CPU topology of the current system (emulator) as specified by Item:
cpu_topologyโ Returns thecpu_topology()currently used by the emulator. The CPU topology is used when binding schedulers to logical processors. The CPU topology used is the user-defined CPU topology, if such exists, otherwise the automatically detected CPU topology, if such exists. If no CPU topology exists,undefinedis returned.{cpu_topology, defined}โ Returns the user-definedcpu_topology(). For more information, see command-line flag+sctinerl(1)and argumentcpu_topology.{cpu_topology, detected}โ Returns the automatically detectedcpu_topology(). The emulator detects the CPU topology on some newer Linux, Solaris, FreeBSD, and Windows systems. On Windows system with more than 32 logical processors, the CPU topology is not detected.
For more information, see argument cpu_topology.
{cpu_topology, used}โ ReturnsCpuTopologyused by the emulator. For more information, see argumentcpu_topology.logical_processorsโ Returns the detected number of logical processors configured in the system. The return value is either an integer, or the atomunknownif the emulator cannot detect the configured logical processors.logical_processors_availableโ Returns the detected number of logical processors available to the Erlang runtime system. The return value is either an integer, or the atomunknownif the emulator cannot detect the available logical processors. The number of available logical processors is less than or equal to the number of logical processors online.logical_processors_onlineโ Returns the detected number of logical processors online on the system. The return value is either an integer, or the atomunknownif the emulator cannot detect logical processors online. The number of logical processors online is less than or equal to the number of logical processors configured.cpu_quotaโ Returns the detected CPU quota the emulator is limited by. The return value is an integer saying how many processors' worth of runtime we get (between 1 and the number of logical processors), or the atomunknownif the emulator cannot detect a quota.update_cpu_infoโ The runtime system rereads the CPU information available and updates its internally stored information about the detected CPU topology and the number of logical processors configured, online, available, and cpu quota.
If the CPU information has changed since the last time it was read, the atom changed is returned, otherwise the atom unchanged. If the CPU information has changed, you probably want to adjust the number of schedulers online. You typically want to have as many schedulers online as logical processors available.
Since: OTP R14B
๐งต Process Information ๐งต
Returns information about the default process heap settings:
fullsweep_afterโ Returns{fullsweep_after, integer() >= 0}, which is thefullsweep_aftergarbage collection setting used by default. For more information, seegarbage_collectiondescribed below.garbage_collectionโ Returnsgarbage_collection_defaults/0describing the default garbage collection settings. A process spawned on the local node by aspawnorspawn_linkuses these garbage collection settings. The default settings can be changed by usingerlang:system_flag/2.spawn_opt/2,3,4can spawn a process that does not use the default settings.heap_sizesโ Returns a list of integers representing valid heap sizes in words. All Erlang heaps are sized from sizes in this list.heap_typeโ Returns the heap type used by the current emulator. One heap type exists:privateโ Each process has a heap reserved for its use and no references between heaps of different processes are allowed. Messages passed between processes are copied between heaps.
max_heap_sizeโ Returns{max_heap_size, MaxHeapSize}, whereMaxHeapSizeis the current system-wide maximum heap size settings for spawned processes. This setting can be set using the command-line flags+hmax,+hmaxk,+hmaxeland+hmaxiblinerl(1). It can also be changed at runtime usingerlang:system_flag(max_heap_size, MaxHeapSize). For more details about themax_heap_sizeprocess flag, seeprocess_flag(max_heap_size, MaxHeapSize).
Since: OTP 19.0
message_queue_data
Gives you the default value of the message_queue_data process flag, bestie โ and it's one of two things: off_heap or on_heap. That default gets set by the command-line argument +hmqd over in erl(1). Want the full tea on what those values actually mean? Go read the docs for process_flag(message_queue_data, MQD).
Since: OTP 19.0
min_heap_size
Returns {min_heap_size, MinHeapSize}, where MinHeapSize is the right-now, system-wide minimum heap size that freshly spawned processes get. โจ
Since: OTP R13B04
min_bin_vheap_size
Returns {min_bin_vheap_size, MinBinVHeapSize}, and MinBinVHeapSize is the current system-wide minimum binary virtual heap size handed to newly spawned processes. ๐
Since: OTP R13B04
procs
Returns a binary โ yes, a whole binary โ holding a string of process AND port info, formatted exactly like it is in Erlang crash dumps. For the full how-to-read-it situation, check the section How to interpret the Erlang crash dumps in the User's Guide. ๐
โจ System Limits โจ
Hands you info about the current system (emulator) limits, depending on what Item you ask for:
atom_count
Returns the number of atoms that currently exist at the local node, as an integer. ๐ข
Since: OTP 20.0
atom_limit
Returns the maximum number of atoms allowed. You can bump this limit at startup by passing command-line flag +t to erl(1). ๐
Since: OTP 20.0
ets_count
Returns the number of ETS tables currently existing at the local node.
Since: OTP 21.1
ets_limit
Returns the limit for the number of ETS tables. Ngl, this limit is partially obsolete โ the number of tables is really only limited by available memory. ๐
Since: OTP R16B03
port_count
Returns the number of ports currently existing at the local node, as an integer. This is literally the same value length(erlang:ports()) gives you โ it's just way more efficient. ๐
Since: OTP R16B
port_limit
Returns the maximum number of simultaneously existing ports at the local node, as an integer. You can configure this limit at startup with command-line flag +Q in erl(1).
Since OTP R16B
process_count
Returns the number of processes currently existing at the local node, as an integer. Same value as length(processes()) returns โ but, again, more efficient, no cap. ๐ฏ
process_limit
Returns the maximum number of simultaneously existing processes at the local node, as an integer. You can set this limit at startup with command-line flag +P in erl(1).
๐ฐ๏ธ System Time ๐ฐ๏ธ
Gives you info about the current system (emulator) time, based on what Item you ask for:
end_time
The last Erlang monotonic time โ in native time unit โ that can even be represented internally in the current Erlang runtime system instance. Fun fact: the gap between the start time and the end time is at least a quarter of a millennium. Iconic longevity fr fr. โณ
Since: OTP 18.0
os_monotonic_time_source
Returns a list with info about the source of OS monotonic time that the runtime system is using.
If [] comes back, that means no OS monotonic time is available at all. The list holds two-tuples where the first element is a Key and the second is a Value. The order of these tuples is undefined, so don't you dare rely on it. ๐ These tuples can be part of the list โ and, heads up, more tuples can be introduced in the future:
{function, Function}โFunctionis the name of the function being used. This tuple always exists if OS monotonic time is available to the runtime system.{clock_id, ClockId}โ This tuple only exists ifFunctioncan be used with different clocks.ClockIdcorresponds to the clock identifier used when callingFunction.{resolution, OsMonotonicTimeResolution}โ The highest possible resolution of the current OS monotonic time source, in parts per second. If no resolution info can be pulled from the OS,OsMonotonicTimeResolutionis set to the resolution of the time unit ofFunctionsreturn value. So the actual resolution can be lower thanOsMonotonicTimeResolution. Notice: resolution says nothing about accuracy, and nothing about whether the precision aligns with the resolution. What you DO know is that the precision isn't better thanOsMonotonicTimeResolution.{used_resolution, UsedOsMonotonicTimeResolution}โ The OS monotonic time resolution the runtime system is actually using. Very often this equalsOsMonotonicTimeResolution. But on some systems the resolution has to be reduced to reliably produce monotonic timestamps. A prime example: whenQueryPerformanceCounter()is used as the OS monotonic time source on Windows. If a reduction like that happened,UsedOsMonotonicTimeResolutionwill be smaller thanOsMonotonicTimeResolution.{extended, Extended}โExtendedequalsyesif the range of time values has been extended; otherwiseExtendedequalsno. The range must be extended ifFunctionreturns values that wrap fast โ which is typically the case when the return value is a 32-bit value.{parallel, Parallel}โParallelequalsyesifFunctionis called in parallel from multiple threads. If it's not called in parallel, because calls must be serialized,Parallelequalsno.{time, OsMonotonicTime}โOsMonotonicTimeequals the current OS monotonic time in native time unit.
Since: OTP 18.0
os_system_time_source
Returns a list with info about the source of OS system time that the runtime system is using.
The list contains two-tuples where the first element is a Key and the second is a Value. The order of these tuples is undefined. These tuples can be part of the list โ and more tuples can be introduced in the future:
{function, Function}โFunctionis the name of the function being used.{clock_id, ClockId}โ Exists only ifFunctioncan be used with different clocks.ClockIdcorresponds to the clock identifier used when callingFunction.{resolution, OsSystemTimeResolution}โ Highest possible resolution of the current OS system time source, in parts per second. If no resolution info can be retrieved from the OS,OsSystemTimeResolutionis set to the resolution of the time unit ofFunctionsreturn value. So the actual resolution can be lower thanOsSystemTimeResolution. Notice that resolution says nothing about accuracy or whether the precision does align with the resolution. You do, however, know that the precision isn't better thanOsSystemTimeResolution.{parallel, Parallel}โParallelequalsyesifFunctionis called in parallel from multiple threads. If it isn't called in parallel, because calls need to be serialized,Parallelequalsno.{time, OsSystemTime}โOsSystemTimeequals the current OS system time in native time unit.
Since: OTP 18.0
start_time
The Erlang monotonic time โ in native time unit โ at the moment the current Erlang runtime system instance started. ๐ฑ
See also erlang:system_info(end_time).
Since: OTP 18.0
time_correction
Returns a boolean() value telling you whether time correction is enabled or not. โ
โ
Since: OTP 18.0
time_offset
Returns the state of the time offset:
preliminaryโ The time offset is preliminary and will be changed and finalized later. The preliminary time offset is used during the preliminary phase of the single time warp mode.finalโ The time offset is final. Either because no time warp mode is used, or because the time offset has been finalized when single time warp mode is used.volatileโ The time offset is volatile. That is, it can change at any time. This is because multi-time warp mode is used.
Since: OTP 18.0
time_warp_mode
Returns a value identifying which time warp mode is in play:
no_time_warpโ The no time warp mode is used.single_time_warpโ The single time warp mode is used.multi_time_warpโ The multi-time warp mode is used.
Since: OTP 18.0
tolerant_timeofday
Returns whether a pre ERTS 7.0 backwards compatible compensation for sudden changes of system time is enabled or disabled. That compensation is enabled when the time offset is final and time correction is enabled. ๐ซถ
Since: OTP 17.1
๐ง Scheduler Information ๐ง
Gives you info about schedulers, scheduling, and threads in the current system, based on what Item you ask for:
dirty_cpu_schedulers
Returns the number of dirty CPU scheduler threads the emulator is using. Dirty CPU schedulers run CPU-bound native functions โ think NIFs, linked-in driver code, and BIFs that the normal emulator schedulers just can't manage cleanly.
The number of dirty CPU scheduler threads is set at emulator boot time and cannot be changed after that. However โ plot twist โ the number of dirty CPU schedulers online can be changed at any time. You can set the number of dirty CPU schedulers at startup by passing command-line flag +SDcpu or +SDPcpu in erl(1). ๐ฅ
See also erlang:system_flag(dirty_cpu_schedulers_online, DirtyCPUSchedulersOnline), erlang:system_info(dirty_cpu_schedulers_online), erlang:system_info(dirty_io_schedulers), erlang:system_info(schedulers), erlang:system_info(schedulers_online), and erlang:system_flag(schedulers_online, SchedulersOnline).
Since: OTP 17.0
dirty_cpu_schedulers_online
Returns the number of dirty CPU schedulers online. The return value satisfies 1 <= DirtyCPUSchedulersOnline <= N, where N is the smallest of the return values of erlang:system_info(dirty_cpu_schedulers) and erlang:system_info(schedulers_online).
You can set the number of dirty CPU schedulers online at startup by passing command-line flag +SDcpu in erl(1). โจ
For more info, see erlang:system_info(dirty_cpu_schedulers), erlang:system_info(dirty_io_schedulers), erlang:system_info(schedulers_online), and erlang:system_flag(dirty_cpu_schedulers_online, DirtyCPUSchedulersOnline).
Since: OTP 17.0
dirty_io_schedulers
Returns the number of dirty I/O schedulers, as an integer. Dirty I/O schedulers run I/O-bound native functions โ like NIFs and linked-in driver code โ which the normal emulator schedulers can't manage cleanly. ๐
You can set this value at startup by passing command-line argument +SDio in erl(1).
For more info, see erlang:system_info(dirty_cpu_schedulers), erlang:system_info(dirty_cpu_schedulers_online), and erlang:system_flag(dirty_cpu_schedulers_online, DirtyCPUSchedulersOnline).
Since: OTP 17.0
multi_schedulingโ hands you back one of these four vibes:disabledโ the emulator got started with literally one scheduler thread and that's the whole roster.blockedโ there's more than one scheduler thread, but every single one except one is blocked. So like, only one scheduler thread is out here scheduling Erlang processes and executing Erlang code. One. Alone. ๐ญblocked_normalโ more than one scheduler thread exists, but all the normal scheduler threads except one are blocked. Important tea though: dirty schedulers are not blocked, and they can still schedule Erlang processes and execute native code. So it's not a total shutdown, bestie.enabledโ more than one scheduler thread and nothing is blocked. All available scheduler threads are scheduling Erlang processes and executing Erlang code. Full squad, all present. ๐
See also erlang:system_flag(multi_scheduling, BlockState), erlang:system_info(multi_scheduling_blockers), erlang:system_info(normal_multi_scheduling_blockers), and erlang:system_info(schedulers).
multi_scheduling_blockersโ returns a list of Pids when multi-scheduling is blocked, and otherwise you just get the empty list back. Those Pids in the list are every process currently blocking multi-scheduling. And a Pid shows up only once in the list, even if that process has blocked multiple times โ no duplicates, we respect the count. โจ
See also erlang:system_flag(multi_scheduling, BlockState), erlang:system_info(multi_scheduling), erlang:system_info(normal_multi_scheduling_blockers), and erlang:system_info(schedulers).
normal_multi_scheduling_blockersโ returns a list of Pids when normal multi-scheduling is blocked (that is, all normal schedulers but one are blocked), and otherwise the empty list. Those Pids are all the processes currently blocking normal multi-scheduling. Same rule as before: a Pid occurs only once in the list even if it blocked multiple times. ๐ซถ
See also erlang:system_flag(multi_scheduling, BlockState), erlang:system_info(multi_scheduling), erlang:system_info(multi_scheduling_blockers), and erlang:system_info(schedulers).
Since: OTP 19.0
scheduler_bind_typeโ returnsscheduler_bind_type(), which is the tea on how the user has requested schedulers to be bound or not bound.
Real talk though: even if a user requested that schedulers be bound, they could have silently justโฆ failed to bind. No error, no drama, just vibes. To actually inspect the scheduler bindings, call erlang:system_info(scheduler_bindings).
For more info, see command-line argument +sbt in erl(1) and erlang:system_info(scheduler_bindings).
scheduler_bindingsโ tells you about the scheduler bindings currently in use.
You get a tuple whose size equals erlang:system_info(schedulers). The tuple elements are integers or the atom unbound. Logical processor identifiers show up as integers. The Nth element of the tuple is the current binding for the scheduler whose scheduler identifier equals N. So for example, if the schedulers are bound, element(erlang:system_info(scheduler_id), erlang:system_info(scheduler_bindings)) returns the identifier of the logical processor that the calling process is executing on. Cute, right? ๐
Heads up: only schedulers online can be bound to logical processors.
For more info, see command-line argument +sbt in erl(1) and erlang:system_info(schedulers_online).
scheduler_idโ returns the scheduler ID (SchedulerId) of the scheduler thread that the calling process is executing on.SchedulerIdis a positive integer where1 <= SchedulerId <= erlang:system_info(schedulers).
See also erlang:system_info(schedulers).
schedulersโ returns the number of scheduler threads the emulator is using. Scheduler threads online schedule Erlang processes and Erlang ports, and execute Erlang code and Erlang linked-in driver code. Iconic multitasking fr.
The number of scheduler threads is decided at emulator boot time and cannot be changed later. Locked in, periodt. But the number of schedulers online can be changed at any time โ that one's flexible.
See also erlang:system_flag(schedulers_online, SchedulersOnline), erlang:system_info(schedulers_online), erlang:system_info(scheduler_id), erlang:system_flag(multi_scheduling, BlockState), erlang:system_info(multi_scheduling), erlang:system_info(normal_multi_scheduling_blockers) and erlang:system_info(multi_scheduling_blockers).
schedulers_onlineโ returns the number of schedulers online. The scheduler identifiers of the schedulers online satisfy1 <= SchedulerId <= erlang:system_info(schedulers_online).
For more info, see erlang:system_info(schedulers) and erlang:system_flag(schedulers_online, SchedulersOnline).
smp_supportโ returnstrue. That's the whole thing. Slay. โจthreadsโ returnstrue. Also the whole thing. ๐thread_pool_sizeโ returns the number of async threads in the async thread pool used for asynchronous driver calls (erl_driver:driver_async()). The value is given as an integer.
๐ Distribution Information ๐
Returns the tea about Erlang Distribution in the current system, as specified by Item:
async_distโ returns the value of the command line argument+pad <boolean>that the runtime system uses. This value determines the defaultasync_distvalue for newly spawned processes.
Since: OTP 25.3
creationโ returns the "creation" value of the local node as an integer. The creation changes whenever a node is restarted. The creation of a node is stored in process identifiers, port identifiers, and references. This is what makes it possible to tell apart identifiers from different incarnations of a node โ same node name, different era, iykyk. Creation values are currently 32-bit positive integers, but this may change in future releases. If the node is not alive,0is returned.delayed_node_table_gcโ returns the amount of time in seconds that garbage collection of an entry in a node table is delayed. This limit can be set on startup by passing command-line flag+zdntgctoerl(1). For more info, see the documentation of that command-line flag.
Since: OTP 18.0
distโ returns a binary containing a string of distribution information, formatted the same way as in Erlang crash dumps. For more info, see the section How to interpret the Erlang crash dumps in the User's Guide.dist_buf_busy_limitโ returns the value of the distribution buffer busy limit in bytes. This limit can be set at startup by passing command-line flag+zdbbltoerl(1).
Since: OTP R14B01
dist_ctrlโ returns a list of tuples{Node :: node(), ControllingEntity :: port() | pid()}, with one entry for each connected remote node.Nodeis the node name, andControllingEntityis the port or process identifier responsible for the communication with that node. More specifically,ControllingEntityfor nodes connected through TCP/IP (the normal case) is the socket used in communication with that specific node.
๐ฆ System Information ๐ฆ
Returns various information about the current system (the emulator), as specified by Item:
c_compiler_usedโ returns a two-tuple describing the C compiler used when compiling the runtime system. The first element is an atom describing the name of the compiler, orundefinedif that's unknown. The second element is a term describing the version of the compiler, orundefinedif that's unknown.check_ioโ returns a list containing miscellaneous information about the emulator's internal I/O checking. Just so you know: the contents of that returned list can vary between platforms and over time. The only guarantee is that a list comes back. That's it, that's the promise. ๐debug_compiledโ returnstrueif the emulator has been debug-compiled, otherwisefalse.driver_versionโ returns a string containing the Erlang driver version used by the runtime system. The form is"<major ver>.<minor ver>".dynamic_traceโ returns an atom describing the dynamic trace framework compiled into the virtual machine. It can bedtrace,systemtap, ornone. For a commercial or standard build it is alwaysnone. The other return values mean a custom configuration (for example,./configure --with-dynamic-trace=dtrace). For more info about dynamic tracing, see thedyntrace(3)manual page and theREADME.dtrace/README.systemtapfiles in the Erlang source code top directory.
Since: OTP R15B01
dynamic_trace_probesโ returns aboolean()indicating whether dynamic trace probes (dtraceorsystemtap) are built into the emulator. This can only betrueif the virtual machine was built for dynamic tracing (that is,system_info(dynamic_trace)returnsdtraceorsystemtap).
Since: OTP R15B01
embedded_3ppsโ returns a map with info about third party products embedded in the source code of the Erlang/OTP runtime system. Note that often only parts (and in some cases minuscule parts) of these third party products have been embedded in the source code. Currently the returned map contains these keys:includedโ the value of this key is a list of atoms, where each atom represents a third party product from which code has been embedded in the source code and has also been included into the built runtime system.excludedโ the value of this key is a list of atoms, where each atom represents a third party product from which code has been embedded in the source code, but which has been completely excluded in the built runtime system. That exclusion might be because the functionality is disabled, because the functionality is implemented using other primitives on that specific system, or because the runtime system is linked against the same or another third party product installed on the system.
Note that the returned map may be extended with new key/value pairs at any time. No cap on the glow-up. โจ
Since: OTP 28.5
emu_flavorโ returns an atom describing the flavor of the runtime system. This will be eitheremuorjit. Possible return values can be added or removed at any time without prior notice.
Since: OTP 24.0
emu_typeโ returns an atom describing the build type of the runtime system. Normally this is the atomoptfor optimized. Other possible return values aredebug,gcov,valgrind,gprof, andlcnt. Possible return values can be added or removed at any time without prior notice.
Since: OTP 24.0
halt_flush_timeoutโ returns the default halt flush timeout set by theerl +zhft <Timeout>command line flag.
Since: OTP 27.0
infoโ drops abinarywith a string of miscellaneous system info, formatted exactly like it shows up in Erlang crash dumps ๐. Wanna actually decode it? Go read the section How to interpret the Erlang crash dumps in the User's Guide, bestie.kernel_pollโ returnstrueif the emulator is out here using some kind of kernel-poll implementation, otherwisefalse๐ .loadedโ hands you abinarywith a string of loaded module info, formatted just like in Erlang crash dumps ๐ฆ. More deets? See How to interpret the Erlang crash dumps in the User's Guide.machineโ returns a string with the Erlang machine name ๐ท๏ธ.modified_timing_levelโ returns the modified timing-level (aninteger()) if modified timing is on, otherwiseundefinedโฑ๏ธ. Curious about modified timing? Check command-line flag+Tinerl(1).nif_versionโ returns a string with the version of the Erlang NIF interface that the runtime system is running ๐งฉ. It's formatted like"<major ver>.<minor ver>".
Since: OTP 17.4
otp_releaseโ returns a string with the OTP release number of the OTP release that the currently executing ERTS application is part of ๐.
As from Erlang/OTP 17, the OTP release number lines up with the major OTP version number. Fr fr, no erlang:system_info() argument gives you the exact OTP version โ and that's because nailing down the exact OTP version is genuinely hard in the general case ๐ญ. For the whole story, see the description of versions in System principles in System Documentation.
outstanding_system_requests_limitโ returns the limit on how many outstanding requests a system process orchestrating system-wide changes can have going at once ๐ฆ. Seeerlang:system_flag(outstanding_system_requests_limit, Limit)for more.
Since: OTP 24.2
port_parallelismโ returns the default port parallelism scheduling hint in use ๐ธ. For more, see command-line argument+sppinerl(1).
Since: OTP R16B
system_architectureโ returns a string with the processor and OS architecture that the emulator was built for ๐๏ธ.system_loggerโ returns the currentsystem_logger, as set byerlang:system_flag(system_logger, *)๐.
Since: OTP 21.3
system_versionโ returns a string with the version number plus some important properties, like the number of schedulers โญ.trace_control_wordโ returns the value of the node trace control word ๐. For more, see functionget_tcwin the section Match Specifications in Erlang in the User's Guide.versionโ returns a string with the version number of the emulator ๐.wordsizeโ same as{wordsize, internal}.{wordsize, internal}โ returns the size of Erlang term words in bytes, as an integer ๐งฎ. So:4comes back on a 32-bit architecture, and8comes back on a 64-bit architecture.{wordsize, external}โ returns the true word size of the emulator, aka the size of a pointer ๐. The value comes in bytes as an integer. On a pure 32-bit architecture you get4. On a 64-bit architecture you get8.
And that's the whole page, bestie, we ate that ๐
โจ no cap. This lil masterpiece is from Ericsson AB, it's erts version 17.0.6, and it lives at page erlang_system_info(3) โ go forth and query your system info responsibly ๐ซถ๐ธ
๐ฆ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms