Skip to content

Commit

Permalink
CGroups: Add more mixed-CGroups v1 & v2 tests [#125]
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Jan 19, 2025
1 parent 14bd581 commit 3be753a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: parallelly
Version: 1.41.0-9008
Version: 1.41.0-9009
Title: Enhancing the 'parallel' Package
Imports:
parallel,
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Version (development version)

## New Features

* Now `availableCores()` and `availableWorkers()` support also when
both CGroups v1 and CGroups v2 are enabled on the
machine. Previously, such configurations were completely ignored.


## Bug Fixes

* Call `isNodeAlive()` and `killNode()` on cluster nodes running on
Expand Down
Binary file not shown.
6 changes: 6 additions & 0 deletions inst/test-data/mixed-cgroups/piavpn.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ncores <- parallelly::availableCores(which = "all")
print(ncores)

stopifnot(
!any(grepl("^cgroups", names(ncores)))
)

0 comments on commit 3be753a

Please sign in to comment.