nextflow icon indicating copy to clipboard operation
nextflow copied to clipboard

fix: Cap azcopy memory usage at 80% of container memory

Open adamrtalbot opened this issue 5 months ago • 5 comments

azcopy was consuming more memory than the hard cap of the container memory. This PR does two things:

  • Downloads the files in linear, since azcopy is super fast anyway
  • Caps it to 80% of the container memory, which should be sufficient for most cases while preventing excessive memory usage.

Fixes #6161

adamrtalbot avatar Jun 06 '25 16:06 adamrtalbot

Deploy Preview for nextflow-docs-staging canceled.

Name Link
Latest commit 07fe8223bdd38188ab2667fc96132a60cbcc6175
Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/68432dd19a56fd0008a773bc

netlify[bot] avatar Jun 06 '25 16:06 netlify[bot]

Doesn't work yet

adamrtalbot avatar Jun 06 '25 16:06 adamrtalbot

Pipeline to test:

process create_file {
    machineType "Standard_D16D_v5"
    memory 1.GB
    container "ubuntu:23.10"

    input:
        val n

    output:
        path "test.file", emit: "tmpFile"

    script:
    """
    fallocate -l 50G test.file
    """
}

process do_sth {
    machineType "Standard_D16d_v5"
    memory 1.GB
    container "ubuntu:23.10"

    input:
    path "???"

    output:
    path "out.txt"

    script:
    """
    ls > out.txt
    """
}

workflow {
    n_ch = Channel.of(1..3)
    create_file(n_ch)
    do_sth(create_file.out.collect())
}

adamrtalbot avatar Jun 06 '25 17:06 adamrtalbot

Does not fix the problem again

adamrtalbot avatar Jun 06 '25 17:06 adamrtalbot

THIS TIME.

adamrtalbot avatar Jun 06 '25 18:06 adamrtalbot