Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

The information displayed as available memory is inaccurate on macos/Linux

Abierto
#3,287 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@sabtain05 ya está trabajando en esto.

Desde el 17/10/2026.

  • #3299 de @sabtain05 — abierto
  • #3301 de @filzrev — fusionado

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
53/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp
Área
performance

Línea de trabajo

Read the macOS implementation in src/BenchmarkDotNet/Environments/PhysicalMemoryInfo.cs, especially the code that reads free pages and the vm_stat output. The issue points to host_statistics64 as the native API for obtaining VM statistics. Confirm which reusable pages should count as available, then compare the reported value with macOS benchmark results where possible; done means the available memory includes the relevant reusable pages.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

When running benchmarks on macos(x64) CI environment.
Following CPU/Memory information is shown.

BenchmarkDotNet v0.16.0-ci, macOS Tahoe 26.6.1 (25G76) [Darwin 25.6.0]
Intel Core i7-8700B CPU 3.20GHz (Max: 3.19GHz) (Coffee Lake), 1 CPU, 4 logical and 4 physical cores
Memory: 14 GB Total, 0.44 GB Available

But, Memory: value(0.44 GB Available) looks like wrong value. (Compared to other envrionment benchmark results)

It seems current PhysicalMemoryInfo.cs implementation for macos gets free pages bytes only and other reusable pages bytes are ignored.

Other Considerations
It need to use host_statistics64 native API to get VMstats.

~~And currently page size is expected to be fixed value (4096). ~~
https://github.com/dotnet/BenchmarkDotNet/blob/61ebda8a50aea46484107c2f8d3e736cc31d15e5/src/BenchmarkDotNet/Environments/PhysicalMemoryInfo.cs#L139

But page size is different on arm64 environment(16384)
It need to get actual page size.

Ignore above comment. pageSize is overwritten by vm_stat parsed value. (It might be failed on localized environment thoght)

Lenguaje dominante
C#
Estrellas
11.5k
Forks
1.1k
Merge medio
1 d 9 h
PR fusionados (30 d)
24

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de dotnet/BenchmarkDotNet

Todos los issues de dotnet/BenchmarkDotNet

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.