Skip to content

[C++] CpuInfo.Basic test fails on newer Apple silicon CPUs due to unexpectedly large L2 CPU cache #47564

Closed

Description

@matshch

Describe the bug, including details regarding any error messages, version, and platform.

Here is the error that we see on our Apple M2 machine:

/tmp/nix-build-arrow-cpp-20.0.0.drv-0/source/cpp/src/arrow/util/io_util_test.cc:1099: Failure
Value of: l2 >= 32 * 1024 && l2 <= 12 * 1024 * 1024
  Actual: false
Expected: true
unexpected L2 size: 16777216
[  FAILED  ] CpuInfo.Basic (0 ms)

As far as I can see, there are CPUs in the wild with up to 64 MiB of L2 CPU cache, so it should be allowed.

Component(s)

C++

Activity

  1. changed the title [-]CpuInfo.Basic test fails on newer Apple silicon CPUs due to unexpectedly big L2 CPU cache[/-] [+]CpuInfo.Basic test fails on newer Apple silicon CPUs due to unexpectedly large L2 CPU cache[/+] on Sep 15, 2025
  2. changed the title [-]CpuInfo.Basic test fails on newer Apple silicon CPUs due to unexpectedly large L2 CPU cache[/-] [+][C++] CpuInfo.Basic test fails on newer Apple silicon CPUs due to unexpectedly large L2 CPU cache[/+] on Sep 16, 2025
  3. raulcd commented on Sep 16, 2025

    @raulcd
    Member

    Seems in-line with the change we did when we added macOS M1:

  4. pitrou commented on Sep 16, 2025

    @pitrou
    Member

    A funny one @AntoinePrv

  5. matshch commented on Sep 16, 2025

    @matshch
    ContributorAuthor

    I'm not sure it is good to have such limitations at all, but at least we should update them.

  6. added a commit that references this issue on Oct 10, 2025
  7. added this to the 23.0.0 milestone on Oct 10, 2025
  8. kou commented on Oct 10, 2025

    @kou
    Member

    Issue resolved by pull request 47563
    #47563

  9. added a commit that references this issue on Oct 15, 2025
  10. added a commit that references 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