Need to adjust trace buffer size/limit

Aberta
#551 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 2 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
cpp

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
C++
Estrelas
2.6k
Forks
201
Merge médio
2d 21h
PRs com merge (30d)
16

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de GameTechDev/PresentMon

Todas as issues de GameTechDev/PresentMon

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.