summaryrefslogtreecommitdiff
path: root/lib/os_mon
Commit message (Collapse)AuthorAgeFilesLines
* Prepare releaseErlang/OTP2023-05-154-4/+56
|
* Update copyright yearErlang/OTP2023-05-152-2/+2
|
* Merge branch 'maint' into masterSverker Eriksson2023-05-052-1/+18
|\ | | | | | | | | | | | | * maint: Updated OTP version Prepare release Update copyright year
| * Prepare releaseErlang/OTP2023-05-042-1/+18
| |
* | Merge branch 'maint'Sverker Eriksson2023-05-042-3/+3
|\ \ | |/
| * os_mon: Fix failing port_closeSverker Eriksson2023-04-212-3/+3
| | | | | | | | Use asynchtonous close message to not fail on already closed port.
* | Merge pull request #7080 from VlkrS/openbsd-cpu_supRickard Green2023-04-254-3/+90
|\ \ | | | | | | | | | | | | os_mon: Implement cpu_sup:util/0,1 for OpenBSD OTP-18566
| * | Rearrange to have a tighter block between malloc() and free()vlkrs2023-03-301-5/+5
| | |
| * | os_mon: Implement cpu_sup:util/0,1 for OpenBSDvlkrs2023-03-284-3/+90
| | |
* | | Revert "Prepare release"Henrik Nord2023-04-124-50/+4
| | | | | | | | | | | | This reverts commit d4e4511b19f4126d9271a6e3a8fa2eb716da7e85.
* | | Prepare releaseErlang/OTP2023-04-114-4/+50
| | |
* | | Update copyright yearErlang/OTP2023-04-111-1/+1
| | |
* | | Plug memory leak in FreeBSD cpu_sup:utilVlkrS2023-03-281-1/+2
|/ / | | | | Free memory allocated for cpu_times in line 688
* | Revert "Prepare release"Henrik Nord2023-03-224-43/+4
| | | | | | | | This reverts commit 1cf126f91eb533783409da95b117207d8c13d9aa.
* | Prepare releaseErlang/OTP2023-03-214-4/+43
| |
* | Update copyright yearErlang/OTP2023-03-211-1/+1
| |
* | Merge branch 'maint' into masterHenrik Nord2023-03-087-6/+23
|\ \ | |/ | | | | | | | | | | * maint: Updated OTP version Prepare release Update copyright year
| * Prepare releaseErlang/OTP2023-03-062-1/+18
| |
| * Update copyright yearErlang/OTP2023-03-065-5/+5
| |
* | Merge branch 'maint'Rickard Green2023-02-165-17/+31
|\ \ | |/ | | | | | | * maint: Close cpu_sup and memsup port on terminate
| * Close cpu_sup and memsup port on terminatejdamanalo2023-02-085-17/+31
| | | | | | | | cpu_sup and memsup shutdown fixes
* | Revert "Prepare release"Henrik Nord2023-02-154-43/+4
| | | | | | | | This reverts commit 587341d994f91af5b30483ee9434e932e3d7b802.
* | Prepare releaseErlang/OTP2023-02-144-4/+43
| |
* | Update copyright yearErlang/OTP2023-02-142-2/+2
| |
* | Merge branch 'maint' into masterHenrik Nord2022-12-144-3/+21
|\ \ | |/ | | | | | | | | | | * maint: Updated OTP version Prepare release Update copyright year
| * Prepare releaseErlang/OTP2022-12-122-1/+19
| |
| * Update copyright yearErlang/OTP2022-12-122-2/+2
| |
* | Update stale runtime dependenciesBjörn Gustavsson2022-12-021-1/+1
| |
* | Merge pull request #6384 from lukebakken/lukebakken/get_disk_infoRickard Green2022-11-103-41/+248
|\ \ | | | | | | | | | | | | Add support for `disksup:get_disk_info/[0,1]` OTP-18303
| * | Add support for `disksup:get_disk_info/[0,1]`Luke Bakken2022-11-103-41/+248
| | | | | | | | | | | | | | | | | | | | | | | | | | | References #6156 https://github.com/erlang/otp/issues/6156#issuecomment-1208010552 This PR adds support for a function that will immediately fetch total and available disk space for all local drives, or for a specific path.
* | | Merge branch 'maint'Rickard Green2022-11-103-16/+100
|\ \ \ | |/ / |/| / | |/ | | * maint: os_mon: allow check intervals smaller than 1 minute
| * os_mon: allow check intervals smaller than 1 minutejdamanalo2022-11-083-16/+100
| | | | | | | | - expand type of `disk_space_check_interval` to `Minute | {TimeUnit, Time}`
* | Merge branch 'maint'Lukas Larsson2022-10-032-2/+3
|\ \ | |/
| * cpu_sup: Skip testcases on netbsdLukas Larsson2022-09-211-0/+1
| |
| * os_mon: Fix disksup full threshold testcaseLukas Larsson2022-09-211-2/+2
| | | | | | | | | | | | On systems with 0% of used disk space this testcase used to fail. Note that 0% does not mean that 9 bytes was used, just that the df command rounded down to 0% usage.
* | Fix communication with port program `win32sysinfo.exe`Luke Bakken2022-09-132-29/+28
|/ | | | | | | | | | | The `COMMUNICATION` section in `lib/os_mon/c_src/win32sysinfo.c` specifies how to communicate with the port program. These changes fix the expected input data for retrieving information for a single drive. Ensure that get_disk_info/1 arguments and processing work together. The port program takes a single drive letter, not a list. Fixes #6156
* make: Allow OTP to be built deterministicallyTom Davies2022-06-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a --enable-deterministic-build to the configure script, which sets ERL_DETERMINISTIC=yes throughout the relevant Makefiles, which then invoke the relevant build stages with the +deterministic option. This addresses absolute paths being included in generated .erl files and compiled .beam files that resulted in builds from different source directories generating different artefacts (which is a component of the issue in erlang#4482). I think it would make sense to make this the default at some stage, but I've put the change behind a flag for now to decouple making deterministic OTP builds possible from making them the default. Having +deterministic set results in compiler options being removed from the module info for modules where this options was used. This may have other implications for users of OTP. For tests themselves, +determinism is not set, since many test cases depend on accessing the test module's compilation options, or other features not available in deterministic mode, in order to configure themselves. For tests of the determinism feature specifically, +deterministic must be explicitly passed to the compiler within the relevant test cases.
* Update copyright yearErlang/OTP2022-02-1511-11/+11
|
* [cleanup] Replace test_server:os_type() with os:type()Maxim Fedorov2022-02-015-7/+7
| | | | | Codemod, drops undocumented function in favour of a documented one.
* otp: Fix `make TYPE=$TYPE` to work for all typesLukas Larsson2022-01-212-2/+2
|
* Fix typos in lib/os_monKian-Meng, Ang2021-12-269-12/+12
|
* Merge branch 'maint'Rickard Green2021-12-1527-27/+27
|\ | | | | | | | | * maint: Update copyright year
| * Update copyright yearRickard Green2021-12-1527-27/+27
| |
* | [os_mon] peer-ify applicationMaxim Fedorov2021-11-191-20/+3
| | | | | | | | Replace test_server:start_node with ?CT_PEER.
* | Merge branch 'maint'Henrik Nord2021-09-222-1/+17
|\ \ | |/ | | | | | | | | | | | | | | * maint: Updated OTP version Prepare release # Conflicts: # OTP_VERSION
| * Prepare releaseErlang/OTP2021-09-172-1/+17
| |
* | Merge branch 'maint'Ingela Anderton Andin2021-09-132-2/+2
|\ \ | |/
| * test suites: replace ?t: with test_server:Maxim Fedorov2021-09-082-2/+2
| | | | | | | | | | | | Removing ?t retained for backward compatibility allows to search for test_server callsites easier. Replace ?t:fail and test_server:fail with ct:fail.
* | Add app-file runtime_dependencies test and incorrect dependencies fixesKjell Winblad2021-07-091-1/+1
|/ | | | | | | | | | | | | | | | | | | | | This commit adds a test case to check that app files for the Erlang/OTP applications specifies correct versions for the dependencies in the runtime_dependencies field. The test is designed to work on the Erlang/OTP team's test servers as it assumes that all released applications are installed in particular places and that all app versions have been increased in the correct way (which is done by scripts in the Erlang/OTP team's test infrastructure). The test uses xref to try to find undefined function calls in all Erlang/OTP applications. When running xref to test an application, `xref`'s library path is set to point to folders containing beam-files for the applications that are specified as the minimum correct versions by the `runtime_dependencies` field in the application's app file. This commit also bumps the versions of several dependencies that the test found to have incorrect versiosn so they instead get the first version of the dependencies that makes the test pass.
* Correct memsup:get_os_wordsize/0 on an M1 MacBjörn Gustavsson2021-05-261-1/+2
| | | | | On a Mac with Apple Silicon, `memsup:get_os_wordsize/0` would return 32 instead of the correct 64.