community.general.cgroup_memory_recap (8.5.0) — callback

Profiles maximum memory usage of tasks and full execution using cgroups

Authors: Unknown (!UNKNOWN)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

This is an ansible callback plugin that profiles maximum memory usage of ansible and individual tasks, and displays a recap at the end using cgroups.


Requirements

Inputs

    
cur_mem_file:
    description: Path to C(memory.usage_in_bytes) file. Example V(/sys/fs/cgroup/memory/ansible_profile/memory.usage_in_bytes).
    env:
    - name: CGROUP_CUR_MEM_FILE
    ini:
    - key: cur_mem_file
      section: callback_cgroupmemrecap
    required: true

max_mem_file:
    description: Path to cgroups C(memory.max_usage_in_bytes) file. Example V(/sys/fs/cgroup/memory/ansible_profile/memory.max_usage_in_bytes).
    env:
    - name: CGROUP_MAX_MEM_FILE
    ini:
    - key: max_mem_file
      section: callback_cgroupmemrecap
    required: true