The information displayed as available memory is inaccurate on macos/Linux
Los mantenedores suelen responder en 1 día
@sabtain05 ya está trabajando en esto.
Desde el 17/10/2026.
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
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dotnet/BenchmarkDotNet
-
0.16.0-preview.2: generated CompilerFeatureRequiredAttribute collides with a source-only polyfill package on .NET Framework jobs (CS0101)Posiblemente ocupada @mohamed-warda la tomó hace 3 días. AbiertoArea:Toolchains good first issue up-for-grabs
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
dotnet/BenchmarkDotNet#3296 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
dotnet/BenchmarkDotNet#3285 ·
Los mantenedores suelen responder en 1 día
-
Area:Toolchains up-for-grabs
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
dotnet/BenchmarkDotNet#3266 · 3 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Area:Diagnosers
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
dotnet/BenchmarkDotNet#3246 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Migrate release/release-preview workflow to use Trusted PublishingQuizá libre de nuevo @AndreyAkinshin la tomó hace 73 días y no hay ningún pull request abierto. AbiertoArea:DevOps
dotnet/BenchmarkDotNet#3226 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de dotnet/BenchmarkDotNet
Issues similares
-
bug priority: P2
Dificultad 1/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
WebullFeeModel charges SPXW options the SPX exchange feePosiblemente ocupada @Amadeus-22 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
QuantConnect/Lean#9922 ·
Los mantenedores suelen responder en 1 día
-
[Docs] README/PRIVACY still name AppCenter although v1.5.6.0+ uses the Microsoft Store Services SDKAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Azure/azure-sdk-tools#17317 ·
Los mantenedores suelen responder en 1 día