Need to adjust trace buffer size/limit

Abierto
#551 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
cpp

Línea de trabajo

Start by reading the real-time session setup around the StartTraceW call and how sessionProps.MaximumBuffers is initialized. Compare setting a larger maximum before starting the session with updating it later through ControlTraceW using EVENT_TRACE_CONTROL_UPDATE. Done means the session buffer limit is addressed; the issue also raises whether applications should be able to configure it.

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

Descripción

Some users report getting a "The backing-file for the real-time session "..." has reached its maximum size. As a result, new events will not be logged to this session until space becomes available. This error is often caused by starting a trace session in real-time mode without having any real-time consumers."

I suspect this is due to the buffer size limit set (or rather not set) for the real-time trace session.
PM doesn't set BufferSize, MinimumBuffers or MaximumBuffers when starting a session, so Windows sets this automatically. In this case, Windows sets the following:

  • Buffer size: 64 KB
  • Minimum buffers: 256
  • Maximum buffers: 278

I think we need to increase the sessionProps.MaximumBuffers value prior to StartTraceW call, or do a ControlTraceW( ..., EVENT_TRACE_CONTROL_UPDATE) later.
It might also be good to let the application specify this value via a parameter.

Lenguaje dominante
C++
Estrellas
2.6k
Forks
201
Merge medio
2 d 21 h
PR fusionados (30 d)
16

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 GameTechDev/PresentMon

Todos los issues de GameTechDev/PresentMon

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.