From ad7f89b037c689e6558b6eec13c0eb2a0fdb7af6 Mon Sep 17 00:00:00 2001 From: Antoni Reus Date: Tue, 14 Jan 2025 10:51:18 +0100 Subject: [PATCH] print vsz, and disk size. add swap memory --- .github/workflows/ci.yml | 3 ++- .../test/java/io/trino/plugin/exasol/TestingExasolServer.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4f5416276e..7f5979bd059 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -146,8 +146,9 @@ jobs: ( while true; do echo "Top memory-consuming process at $(date):" - ps -eo user,pid,comm,rss,args --sort=-rss | head -n 21 + ps -eo user,pid,comm,rss,vsz,args --sort=-rss | head -n 21 echo "-----------------------------" + df -h sleep 30 done ) & diff --git a/plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestingExasolServer.java b/plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestingExasolServer.java index eae86cc0a0d..e3557429ccd 100644 --- a/plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestingExasolServer.java +++ b/plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestingExasolServer.java @@ -45,6 +45,7 @@ public class TestingExasolServer private static final long ONE_GB = 1_073_741_824L; private static final long MAX_MEMORY = 4 * ONE_GB; + private static final long SWAP_MEMORY = 6 * ONE_GB; private static final long RESERVED_MEMORY = 2 * ONE_GB; private final ExasolContainer container; @@ -58,7 +59,7 @@ public TestingExasolServer() .withSupportInformationRecordedAtExit(Path.of("/tmp/db-log"), ExitType.EXIT_ANY) .withCreateContainerCmdModifier(cmd -> cmd.getHostConfig() .withMemory(MAX_MEMORY) - .withMemorySwap(MAX_MEMORY) + .withMemorySwap(SWAP_MEMORY) .withMemoryReservation(RESERVED_MEMORY) .withOomKillDisable(true)); cleanup = startOrReuse(container);