Skip to content

Commit

Permalink
memory-ex: add more debug info
Browse files Browse the repository at this point in the history
Signed-off-by: Douglas Schilling Landgraf <[email protected]>
  • Loading branch information
dougsland committed Aug 19, 2024
1 parent cc3bdb1 commit 76cc1ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions memory-exhaustion/exhaustion-memory-engine-stressor
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ stress_memory() {
source /etc/profile
# Calculate % of total memory
mem_to_stress=$(free -m | awk -v threshold=$MEMORY_EXHAUSTION_BASE_CONTAINER_THRESHOLD_PERCENT '/Mem:/ {print int($2 * threshold / 100)}')
echo $threshold
echo $mem_to_stress
mem_to_stress=$mem_to_stress*2
echo $mem_to_stress

# Loop to execute the stress-ng command NUM_ITERATIONS times
for ((i = 1; i <= NUM_ITERATIONS; i++)); do
Expand Down

0 comments on commit 76cc1ba

Please sign in to comment.