This document describes the changes made to the OS_Mon application.
Fix
Own Id: OTP-14513
Removed all old unused files in the documentation.
Own Id: OTP-14475 Aux Id: ERL-409, PR-1493
On macOS 10.13 (High Sierra), disksup could not grab information for any disks that used the new APFS file system. That has been corrected.
Own Id: OTP-14560 Aux Id: ERL-461
Support s390x in os_mon.
Own Id: OTP-14161 Aux Id: PR-1309
Fix type specification for cpu_sup:util/1
Own Id: OTP-13526 Aux Id: PR-1029
Fix strict compilation on SUN/SPARC
Own Id: OTP-13548 Aux Id: PR-1046
Implement cpu_sup:util/0,1 on Mac OSX
Own Id: OTP-13597 Aux Id: PR-1049
Fix memsup:get_os_wordsize() on 64-bit FreeBSD and 64-bit Linux PPC
Own Id: OTP-13601 Aux Id: PR-1039
cpu_sup should use native sysctl/libkvm calls on BSD
This avoids forking off with os:cmd every time we just want to collect the load averages. riak does this every second, which results in a lot of unnecessary load.
Own Id: OTP-12730
Implement native cpu_sup:util/0,1 for FreeBSD
Own Id: OTP-12796
Do not crash with badmatch when integer part of loadavg has more than 2 digits.
Own Id: OTP-12581
Fix compilation of memsup on OpenBSD.
Own Id: OTP-12404
Adds a new application parameter 'disksup_posix_only', to make diskup use only options defined in the POSIX standard.
Own Id: OTP-12053
Application upgrade (appup) files are corrected for the following applications:
A new test utility for testing appup files is added to test_server. This is now used by most applications in OTP.
(Thanks to Tobias Schlager)
Own Id: OTP-11744
Calls to erlang:open_port/2 with 'spawn' are updated to handle space in the command path.
Own Id: OTP-10842
Fix incorrect reporting of memory on OS X via memsup. Thanks to Christopher Meiklejohn.
Own Id: OTP-11454
Use 'df -k -l' to query FreeBSD and OpenBSD about diskspace on local disks. Previously 'df' -k -t ufs' was used but this will not handle zfs or other disks. Just use '-l' instead of listing potential filesystems.
Own Id: OTP-11207
Fix compilation on Solaris. Thanks to Maciej Malecki.
Own Id: OTP-11213
Fix broken cpu_sup:nprocs and others on Solaris 64-bit. Thanks to Simon Cornish.
Own Id: OTP-11298
Compilation fixes for NetBSD. Thanks to YAMAMOTO Takashi.
Own Id: OTP-10941
Fixed disksup:get_disk_data for SUSv3, specifically OS X ML. Thanks to Sriram Melkote.
Own Id: OTP-10945
Removed deprecated function calls to snmp
Own Id: OTP-10448
Infinity timeout added to internal calls in disksup to allow it to work properly under very heavy load.
Own Id: OTP-10100
Clarify error messages from os_mon port programs
Own Id: OTP-10161
Fix segmentation fault in memsup
when /proc/meminfo does not include information about buffers/cache (for instance inside OpenVZ container) (Thanks to Anton Vorobev)
Own Id: OTP-9913
Erlang/OTP can now be built using parallel make if you
limit the number of jobs, for instance using '
Own Id: OTP-9451
Tuple funs (a two-element tuple with a module name and a
function) are now officially deprecated and will be
removed in R16. Use '
Own Id: OTP-9649
Remove misc. compiler warnings
Own Id: OTP-9542
Add NetBSD support to memsup and disksup (Thanks to Andrew Thompson)
Own Id: OTP-9216
Add support for DragonFlyBSD to memsup
DragonFly was partially supported by os_mon already but when trying to start the os_mon application it'd crash with an error about an unknown operating system in memsup. This patch changes memsup to use the FreeBSD sysctl method to get memory information when on DragonFly. (Thanks to Andrew Thompson )
Own Id: OTP-9217
Cleanups suggested by tidier and modernization of types and specs.
Own Id: OTP-8455
Memsup did not read memory correctly on MaxOSX Snowleopard. This has now been corrected. (Thanks to Joel Reymont)
Own Id: OTP-8211
Removed unused code in
Own Id: OTP-8226
The documentation is now built with open source tools (xsltproc and fop) that exists on most platforms. One visible change is that the frames are removed.
Own Id: OTP-8201
A missing define in
Own Id: OTP-8094
disksup:get_disk_data/0 returned disk volume in bytes instead of kbytes as stated in the documentation. The problem occurred on Windows only and is now corrected.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7741
An error in
Own Id: OTP-7944
Added support for dragonfly OS.
Own Id: OTP-7938
The copyright notices have been updated.
Own Id: OTP-7851
A problem with
In addition, a new function
Own Id: OTP-7441
An error in
Own Id: OTP-7558
Fixed a build error that occurred on NetBSD (Thanks to Per Hedeland and Raphael Langerhorst)
Own Id: OTP-7505
Memory information in
Own Id: OTP-7409 Aux Id: seq10984
System information retrieval on darwin platforms with
environments locales not conforming to the C locale
caused an error in
Own Id: OTP-7320
CPU utilization, on linux, is now measured via a port program instead of os:cmd in erlang. This should enhance performance.
Own Id: OTP-7108 Aux Id: OTP-6935
Extended memsup memory probing on linux to use a port program to probe memory usage. This is faster then the previous implementation.
Own Id: OTP-6860 Aux Id: seq10616
Minor Makefile changes.
Own Id: OTP-6689
When the
Own Id: OTP-6351 Aux Id: seq10517
Did not build on Mac OS X.
Added support for IRIX. (Thanks to Michel Urvoy and Daniel Solaz.)
Own Id: OTP-6136
Own Id: OTP-6153
In 2.0, a call to
Own Id: OTP-6029
A bug that in rare cases caused
Own Id: OTP-6102 Aux Id: seq10312
A note on backwards compatibility: The behaviour of OS_Mon 2.0 is backwards compatible under normal operation, but has changed somewhat in error situations: The services do not terminate and the API functions do not raise exceptions in all cases where they did before. Also, in the case where a service does terminate, the exit reason may be different. See below for details.
A call to a OS_Mon service (cpu_sup, disksup, ...) when OS_Mon is not running, or when the service is not available for the OS, or when the service is not started, will no longer result in an exception. Instead a warning is issued via error_logger and a dummy value is returned, which one is specified in the man pages for the respective service.
The reason is that it should not be necessary for a service to be started on each and every node of a distributed Erlang system for the OS-MON-MIB and other OS_Mon users to work properly.
Own Id: OTP-4332 Aux Id: seq7358
References to the obsolete EVA application in OTP-OS-MON-MIB has been removed.
Own Id: OTP-5699
Setting the option
Own Id: OTP-5890 Aux Id: seq10185
Own Id: OTP-5901
If the OS_Mon service
Own Id: OTP-5910
Thresholds and time intervals in
Own Id: OTP-4246 Aux Id: Seq7230
Own Id: OTP-5800 Aux Id: seq10130
The entire OS_Mon application (code and documentation) has been reviewed and consequently updated with the goal to make the application more robust, homogeneous and easier to configure.
The behaviour under normal operation is backwards
compatible. However, recoverable errors now no longer
terminate the affected service (and thus possible the
entire application), instead
Port handling has been unified, meaning that if a port
program sends garbage or unexpectedly dies, this is now
handled the same way by all OS_Mon services, namely
immediate process termination with the exit reason
Application configuration parameter handling has been
unified. Bad parameter values are no longer silently
ignored (
Message handling has been unified. Unknown
(
Own Id: OTP-5897
The following changes have been made to the
It is now available on Windows, using
On Solaris, enabling the service (that is, installing a
new configuration file for
Also,
Own Id: OTP-5925
The
Own Id: OTP-5927
Own Id: OTP-5869 Aux Id: seq10166
The memsup part of the OS_Mon application has been made
more stable. If there are (possibly temporary) problems
collecting memory data, the interface functions
(
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-5798
Corrected several problems in the error handling/error recovery (especially when OS_Mon is starting up).
Own Id: OTP-5559
The
The
Own Id: OTP-5421
Aux Id: OTP-5194, OTP-5228, OTP-5291
This version is identical with 1.7.