mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-27 09:21:59 -06:00
87408ee755
Azure host has 6 GB of physical memory + 7 GB of swap. FreeIPA CI runs at least 5 masters on each Azure's host. Thus, swap is intensively used. Based on the available *physical* memory 389-ds performs db tweaks and in future may fail to start in case of memory shortage. Current memory limit for Azure Docker containers(master/replica): - Physical $ cat /sys/fs/cgroup/memory/memory.limit_in_bytes 1610612736 - Physical + swap: $ cat /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes 3221225472 In the meantime, installation of master + ca + kra + dnssec requires: $ cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes 1856929792 Some test environments require more memory. For example, 'ipatests.test_integration.test_commands.TestIPACommand': $ cat /sys/fs/cgroup/memory/memory.memsw.max_usage_in_bytes 2232246272 $ cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes 2232246272 Fixes: https://pagure.io/freeipa/issue/8264 Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
39 lines
1.1 KiB
Bash
Executable File
39 lines
1.1 KiB
Bash
Executable File
#!/bin/bash -eux
|
|
|
|
# this script is intended to be run within container
|
|
#
|
|
# distro-specifics
|
|
source "${IPA_TESTS_SCRIPTS}/variables.sh"
|
|
|
|
rm -rf "$IPA_TESTS_LOGSDIR"
|
|
mkdir "$IPA_TESTS_LOGSDIR"
|
|
pushd "$IPA_TESTS_LOGSDIR"
|
|
|
|
tests_result=1
|
|
{ IPATEST_YAML_CONFIG=~/.ipa/ipa-test-config.yaml \
|
|
ipa-run-tests \
|
|
--logging-level=debug \
|
|
--logfile-dir="$IPA_TESTS_LOGSDIR" \
|
|
--with-xunit \
|
|
--verbose \
|
|
$IPA_TESTS_TO_IGNORE \
|
|
$IPA_TESTS_TO_RUN && tests_result=0 ; } || \
|
|
tests_result=$?
|
|
|
|
# fix permissions on logs to be readable by Azure's user (vsts)
|
|
chmod -R o+rX "$IPA_TESTS_LOGSDIR"
|
|
|
|
find "$IPA_TESTS_LOGSDIR" -mindepth 1 -maxdepth 1 -not -name '.*' -type d \
|
|
-exec tar --remove-files -czf {}.tar.gz {} \;
|
|
|
|
echo "Report memory statistics"
|
|
cat /sys/fs/cgroup/memory/memory.memsw.failcnt
|
|
cat /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes
|
|
cat /sys/fs/cgroup/memory/memory.memsw.max_usage_in_bytes
|
|
cat /sys/fs/cgroup/memory/memory.failcnt
|
|
cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes
|
|
cat /sys/fs/cgroup/memory/memory.limit_in_bytes
|
|
cat /proc/sys/vm/swappiness
|
|
|
|
exit $tests_result
|