Re: RFR: 8333446: Add tests for hierarchical container support [v11]

2024-09-11 Thread Severin Gehwolf
On Wed, 11 Sep 2024 14:13:50 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v11]

2024-09-11 Thread Zdenek Zambersky
On Wed, 11 Sep 2024 14:13:50 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v11]

2024-09-11 Thread Matthias Baesken
On Wed, 11 Sep 2024 14:13:50 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v11]

2024-09-11 Thread Severin Gehwolf
On Wed, 11 Sep 2024 14:13:50 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v11]

2024-09-11 Thread Severin Gehwolf
> Please review this PR which adds test support for systemd slices so that bugs > like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be > verified. The added test, `SystemdMemoryAwarenessTest` currently passes on > cgroups v1 and cgroups v2 (since > [JDK-8322420](https://bugs.o

Re: RFR: 8333446: Add tests for hierarchical container support [v10]

2024-09-10 Thread Zdenek Zambersky
On Tue, 10 Sep 2024 13:23:45 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-09-10 Thread Severin Gehwolf
On Fri, 30 Aug 2024 11:05:24 GMT, Matthias Baesken wrote: >> Severin Gehwolf has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 10 additional >> co

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-09-10 Thread Zdenek Zambersky
On Tue, 10 Sep 2024 13:23:37 GMT, Severin Gehwolf wrote: >> Looking through the coding it looks more or less okay to me; but if you >> really need to run it under user 'root' I think we will not have so much >> use for this in our test environments because we use other test users. >> Not sayi

Re: RFR: 8333446: Add tests for hierarchical container support [v10]

2024-09-10 Thread Severin Gehwolf
> Please review this PR which adds test support for systemd slices so that bugs > like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be > verified. The added test, `SystemdMemoryAwarenessTest` currently passes on > cgroups v1 and fails on cgroups v2 due to the way how > [JDK-82

Re: RFR: 8333446: Add tests for hierarchical container support [v9]

2024-09-10 Thread Severin Gehwolf
On Tue, 10 Sep 2024 12:12:50 GMT, Zdenek Zambersky wrote: > I have just added `cpu` to Delegate list of `user@.service`, looks similar, > to what is done there. I see use of `Delegate=yes` in your link, that > probably delegates all. > Thanks for this link. FWIW, I was able to reproduce what y

Re: RFR: 8333446: Add tests for hierarchical container support [v9]

2024-09-10 Thread Zdenek Zambersky
On Mon, 9 Sep 2024 17:28:16 GMT, Zdenek Zambersky wrote: >> Severin Gehwolf has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 17 additional >> com

Re: RFR: 8333446: Add tests for hierarchical container support [v9]

2024-09-10 Thread Severin Gehwolf
On Mon, 9 Sep 2024 17:28:16 GMT, Zdenek Zambersky wrote: >> Severin Gehwolf has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 17 additional >> com

Re: RFR: 8333446: Add tests for hierarchical container support [v9]

2024-09-09 Thread Zdenek Zambersky
On Wed, 4 Sep 2024 17:46:00 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> cg

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-09-06 Thread Severin Gehwolf
On Fri, 30 Aug 2024 11:05:24 GMT, Matthias Baesken wrote: >> Severin Gehwolf has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 10 additional >> co

Re: RFR: 8333446: Add tests for hierarchical container support [v9]

2024-09-06 Thread Matthias Baesken
On Wed, 4 Sep 2024 17:46:00 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> cg

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-09-06 Thread Severin Gehwolf
On Fri, 30 Aug 2024 11:05:24 GMT, Matthias Baesken wrote: >> Severin Gehwolf has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 10 additional >> co

Re: RFR: 8333446: Add tests for hierarchical container support [v9]

2024-09-04 Thread Severin Gehwolf
> Please review this PR which adds test support for systemd slices so that bugs > like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be > verified. The added test, `SystemdMemoryAwarenessTest` currently passes on > cgroups v1 and fails on cgroups v2 due to the way how > [JDK-82

Re: RFR: 8333446: Add tests for hierarchical container support [v8]

2024-09-03 Thread Severin Gehwolf
> Please review this PR which adds test support for systemd slices so that bugs > like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be > verified. The added test, `SystemdMemoryAwarenessTest` currently passes on > cgroups v1 and fails on cgroups v2 due to the way how > [JDK-82

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-30 Thread Severin Gehwolf
On Fri, 30 Aug 2024 11:40:45 GMT, Severin Gehwolf wrote: >> src/hotspot/share/prims/whitebox.cpp line 2507: >> >>> 2505: WB_END >>> 2506: >>> 2507: // Physical cpus of the host machine (including containers), Linux >>> only. >> >> Isn't the comment a bit misleading ? From what I see , ` >>

Re: RFR: 8333446: Add tests for hierarchical container support [v7]

2024-08-30 Thread Severin Gehwolf
On Fri, 30 Aug 2024 14:14:05 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v7]

2024-08-30 Thread Severin Gehwolf
> Please review this PR which adds test support for systemd slices so that bugs > like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be > verified. The added test, `SystemdMemoryAwarenessTest` currently passes on > cgroups v1 and fails on cgroups v2 due to the way how > [JDK-82

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-30 Thread Severin Gehwolf
On Fri, 30 Aug 2024 11:46:51 GMT, Severin Gehwolf wrote: > > Not saying that this is a very bad thing, maybe it is just the way it is, > > that 'root' is needed ? > > I'll do some more research whether or not that is a hard requirement. Thanks > for the comments so far. It turns out it works

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-30 Thread Severin Gehwolf
On Fri, 30 Aug 2024 11:05:24 GMT, Matthias Baesken wrote: > Not saying that this is a very bad thing, maybe it is just the way it is, > that 'root' is needed ? I'll do some more research whether or not that is a hard requirement. Thanks for the comments so far. - PR Comment: http

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-30 Thread Severin Gehwolf
On Fri, 30 Aug 2024 11:02:52 GMT, Matthias Baesken wrote: >> Severin Gehwolf has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 10 additional >> co

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-30 Thread Matthias Baesken
On Wed, 28 Aug 2024 16:13:07 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-30 Thread Matthias Baesken
On Wed, 28 Aug 2024 16:13:07 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-29 Thread Severin Gehwolf
On Wed, 28 Aug 2024 16:13:07 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-29 Thread Severin Gehwolf
On Thu, 29 Aug 2024 15:22:02 GMT, Matthias Baesken wrote: >> Severin Gehwolf has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 10 additional >> co

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-29 Thread Matthias Baesken
On Wed, 28 Aug 2024 16:13:07 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v5]

2024-08-28 Thread Severin Gehwolf
On Wed, 28 Aug 2024 14:21:09 GMT, Zdenek Zambersky wrote: > > > If I am not mistaken, new test requires, that testsuite is ran as > > > superuser (root). (Because it writes `/etc/systemd/system`, runs certain > > > systemd commands). Should test be skipped for non-root? > > > > > > Thanks! I

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-28 Thread Severin Gehwolf
> Please review this PR which adds test support for systemd slices so that bugs > like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be > verified. The added test, `SystemdMemoryAwarenessTest` currently passes on > cgroups v1 and fails on cgroups v2 due to the way how > [JDK-82

Re: RFR: 8333446: Add tests for hierarchical container support [v5]

2024-08-28 Thread Zdenek Zambersky
On Tue, 27 Aug 2024 15:01:59 GMT, Severin Gehwolf wrote: > > If I am not mistaken, new test requires, that testsuite is ran as superuser > > (root). (Because it writes `/etc/systemd/system`, runs certain systemd > > commands). Should test be skipped for non-root? > > Thanks! I can add that. FW

Re: RFR: 8333446: Add tests for hierarchical container support [v5]

2024-08-27 Thread Severin Gehwolf
On Tue, 27 Aug 2024 14:24:18 GMT, Matthias Baesken wrote: > I added the PR to our internal build/test queue . Thanks, Matthias! - PR Comment: https://git.openjdk.org/jdk/pull/19530#issuecomment-2312813813

Re: RFR: 8333446: Add tests for hierarchical container support [v5]

2024-08-27 Thread Severin Gehwolf
On Tue, 27 Aug 2024 14:12:40 GMT, Zdenek Zambersky wrote: > If I am not mistaken, new test requires, that testsuite is ran as superuser > (root). (Because it writes `/etc/systemd/system`, runs certain systemd > commands). Should test be skipped for non-root? Thanks! I can add that. FWIW, conta

Re: RFR: 8333446: Add tests for hierarchical container support [v5]

2024-08-27 Thread Matthias Baesken
On Tue, 20 Aug 2024 17:34:46 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v5]

2024-08-27 Thread Zdenek Zambersky
On Tue, 20 Aug 2024 17:34:46 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v5]

2024-08-21 Thread Severin Gehwolf
On Tue, 20 Aug 2024 17:34:46 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v5]

2024-08-21 Thread Severin Gehwolf
On Tue, 20 Aug 2024 17:34:46 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v5]

2024-08-20 Thread Severin Gehwolf
> Please review this PR which adds test support for systemd slices so that bugs > like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be > verified. The added test, `SystemdMemoryAwarenessTest` currently passes on > cgroups v1 and fails on cgroups v2 due to the way how > [JDK-82

Re: RFR: 8333446: Add tests for hierarchical container support [v4]

2024-08-12 Thread Severin Gehwolf
On Thu, 11 Jul 2024 16:46:13 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v4]

2024-07-12 Thread Severin Gehwolf
On Fri, 12 Jul 2024 12:28:16 GMT, Jan Kratochvil wrote: > With #17198 and this updated patch I still get the a FAIL due to: > > ``` > [0.333s][trace][os,container] OSContainer::active_processor_count: 4 > ``` > > But let's resolve it after #17198 gets final/approved. Because the #17198 is inc

Re: RFR: 8333446: Add tests for hierarchical container support [v4]

2024-07-12 Thread Jan Kratochvil
On Thu, 11 Jul 2024 16:46:13 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v4]

2024-07-11 Thread Severin Gehwolf
On Thu, 11 Jul 2024 16:46:13 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v4]

2024-07-11 Thread Severin Gehwolf
> Please review this PR which adds test support for systemd slices so that bugs > like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be > verified. The added test, `SystemdMemoryAwarenessTest` currently passes on > cgroups v1 and fails on cgroups v2 due to the way how > [JDK-82

Re: RFR: 8333446: Add tests for hierarchical container support [v3]

2024-07-11 Thread Severin Gehwolf
On Thu, 11 Jul 2024 14:26:23 GMT, Jan Kratochvil wrote: > > > ``` > > > * `CPUQuota` (changed it to `AllowedCPUs`) does not work for me - it > > > properly distributes the load but JDK still sees all available CPU cores > > > (4 of my VM). > > > ``` > > > > > > Could you elaborate on that? W

Re: RFR: 8333446: Add tests for hierarchical container support [v3]

2024-07-11 Thread Jan Kratochvil
On Thu, 11 Jul 2024 09:23:58 GMT, Severin Gehwolf wrote: > > ``` > > * `CPUQuota` (changed it to `AllowedCPUs`) does not work for me - it > > properly distributes the load but JDK still sees all available CPU cores (4 > > of my VM). > > ``` > > Could you elaborate on that? What does not work?

Re: RFR: 8333446: Add tests for hierarchical container support [v3]

2024-07-11 Thread Severin Gehwolf
On Thu, 11 Jul 2024 03:42:27 GMT, Jan Kratochvil wrote: > [test.patch.txt](https://github.com/user-attachments/files/16171122/test.patch.txt) > > * `CPUQuota` (changed it to `AllowedCPUs`) does not work for me - it > properly distributes the load but JDK still sees all available CPU cores

Re: RFR: 8333446: Add tests for hierarchical container support [v3]

2024-07-11 Thread Severin Gehwolf
On Thu, 11 Jul 2024 03:39:37 GMT, Jan Kratochvil wrote: >> Severin Gehwolf has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains four additional >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v3]

2024-07-10 Thread Jan Kratochvil
On Mon, 1 Jul 2024 14:43:58 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> cg

Re: RFR: 8333446: Add tests for hierarchical container support [v3]

2024-07-10 Thread Jan Kratochvil
On Mon, 1 Jul 2024 14:43:58 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> cg

Re: RFR: 8333446: Add tests for hierarchical container support [v3]

2024-07-04 Thread Severin Gehwolf
On Mon, 1 Jul 2024 14:43:58 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> cg

Re: RFR: 8333446: Add tests for hierarchical container support [v3]

2024-07-01 Thread Severin Gehwolf
> Please review this PR which adds test support for systemd slices so that bugs > like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be > verified. The added test, `SystemdMemoryAwarenessTest` currently passes on > cgroups v1 and fails on cgroups v2 due to the way how > [JDK-82

Re: RFR: 8333446: Add tests for hierarchical container support [v2]

2024-06-20 Thread Severin Gehwolf
On Thu, 20 Jun 2024 08:34:45 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v2]

2024-06-20 Thread Severin Gehwolf
> Please review this PR which adds test support for systemd slices so that bugs > like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be > verified. The added test, `SystemdMemoryAwarenessTest` currently passes on > cgroups v1 and fails on cgroups v2 due to the way how > [JDK-82

Re: RFR: 8333446: Add tests for hierarchical container support

2024-06-04 Thread Severin Gehwolf
On Mon, 3 Jun 2024 17:28:09 GMT, Severin Gehwolf wrote: > Please review this PR which adds test support for systemd slices so that bugs > like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be > verified. The added test, `SystemdMemoryAwarenessTest` currently passes on > cgroup

RFR: 8333446: Add tests for hierarchical container support

2024-06-04 Thread Severin Gehwolf
Please review this PR which adds test support for systemd slices so that bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be verified. The added test, `SystemdMemoryAwarenessTest` currently passes on cgroups v1 and fails on cgroups v2 due to the way how [JDK-8217338](htt