Skip to content

[C++][CI] Have a job with ARROW_LARGE_MEMORY_TESTS enabled #46600

Closed

Description

@pitrou

Describe the enhancement requested

Currently, the C++ large memory tests do not seem exercised on any CI platform (except perhaps some R build? it's not really clear).

We should make sure those are exercised on at least one CI configuration, probably Crossbow-driven. We will certainly need a specific runner for that.

We might even discover that some of those tests are currently broken...

Component(s)

C++, Continuous Integration

Activity

  1. pitrou commented on May 27, 2025

    @pitrou
    MemberAuthor
  2. raulcd commented on May 27, 2025

    @raulcd
    Member

    @rok this is a possible candidate if we can get some AWS credits or related to potentially have specific self-hosted runners.

    Pinging Rok as we've had conversations around this topic before and he was trying to contact AWS.

  3. kou commented on May 27, 2025

    @kou
    Member

    How much memory does ARROW_LARGE_MEMORY_TESTS require?

  4. pitrou commented on May 27, 2025

    @pitrou
    MemberAuthor

    I have no idea. I suppose someone should try and see.

  5. pitrou commented on May 28, 2025

    @pitrou
    Author
  6. pitrou commented on May 28, 2025

    @pitrou
    MemberAuthor

    Ok, I've measured locally. This is on Ubuntu 24.04, keep in mind this will depend on the system and memory allocator used.

    DEBUG

    Test Duration Max RSS
    arrow-acero-hash-join-node-test 0:59.12 24 GB
    arrow-array-test 0:01.71 0.067 GB
    arrow-compute-row-test 1:14.77 14 GB
    arrow-compute-scalar-type-test 0:05.20 4 GB
    arrow-io-file-test 0:07.04 5 GB
    arrow-table-test 0:04.73 6 GB
    parquet-arrow-test 28:51.27 21 GB

    DEBUG with -DARROW_C_FLAGS_DEBUG="-Og" -DARROW_CXX_FLAGS_DEBUG="-Og"

    Test Duration Max RSS
    arrow-acero-hash-join-node-test 0:43.71 25 GB
    arrow-array-test 0:01.03 0.054 GB
    arrow-compute-row-test 1:00.04 14 GB
    arrow-compute-scalar-type-test 0:03.42 4 GB
    arrow-io-file-test 0:07.48 5 GB
    arrow-table-test 0:04.87 6 GB
    parquet-arrow-test 7:07.50 21 GB

    DEBUG with -DARROW_C_FLAGS_DEBUG="-O1" -DARROW_CXX_FLAGS_DEBUG="-O1" -DBUILD_WARNING_LEVEL=PRODUCTION

    Test Duration Max RSS
    arrow-acero-hash-join-node-test 0:38.50 25 GB
    arrow-array-test 0:00.39 0.056 GB
    arrow-compute-row-test 1:02.38 14 GB
    arrow-compute-scalar-type-test 0:02.89 4 GB
    arrow-io-file-test 0:07.37 5 GB
    arrow-table-test 0:04.81 6 GB
    parquet-arrow-test 3:34.82 21 GB
  7. pitrou commented on May 28, 2025

    @pitrou
    MemberAuthor

    Some observations:

    • the "large memory" test in arrow-array-test (actually array_list_test.cc) perhaps doesn't deserve to be marked as such
    • parquet-arrow-test is extremely slow in debug mode without optimizations; because of this, we need to enable either -Og (faster) or -O1 (even faster)
    • the tests all fit in less than 32 GB, though 64 GB would be more comfortable IMHO
  8. pitrou commented on May 28, 2025

    @pitrou
    MemberAuthor

    And by the way I did not try Gandiva.

  9. zanmato1984 commented on May 29, 2025

    @zanmato1984
    Contributor

    +1 on this. We definitely want to have a CI job for these. At least a regular build for now. Later we may need ASAN as well, because these tests are more likely to trigger memory violations.

  10. pitrou commented on Jun 2, 2025

    @pitrou
    MemberAuthor
  11. pitrou commented on Sep 17, 2025

    @pitrou
    MemberAuthor

    How can we move forward on this? We need some kind of CI instance with 64 GiB RAM. @rok @kou @raulcd

  12. rok commented on Sep 17, 2025

    @rok
    Member

    We just discussed using runs-on with @assignUser

  13. 20 remaining items

  14. pitrou commented on Mar 10, 2026

    @pitrou
    MemberAuthor

    Ok, so why is it a problem if we use on-demand?

  15. rok commented on Mar 10, 2026

    @rok
    Member

    On demand is 3x the price.

  16. pitrou commented on Mar 10, 2026

    @pitrou
    MemberAuthor

    So can you read #46600 (comment)?

  17. rok commented on Mar 10, 2026

    @rok
    Member

    Right, if we find the on-demand price ok and 64GB the amount of memory we need then let's use it!

  18. added a commit that references this issue on Mar 10, 2026
  19. added 3 commits that reference this issue on Mar 23, 2026
  20. added this to the 24.0.0 milestone on Mar 26, 2026
  21. raulcd commented on Mar 26, 2026

    @raulcd
    Member

    Issue resolved by pull request 49490
    #49490

  22. added a commit that references this issue on Apr 6, 2026
  23. added 2 commits that reference this issue on May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions