@balatonQuote:
balaton wrote:@Maijestro
If in doubt read documentation: https://www.qemu.org/docs/master/system/monitor.html
Just type info jit or info irq in QEMU monitor. You can redirect the monitor to stdout with -monitor stdio in which case leave out -serial stdio or you can use -serial mon:stdio to multiplex both on the same window.
I did the test with info jit and info irq at a good and bad session.
Info Jit bad session:
(gemu) info jit
Accelerator settings:
one-insn-per-tb: off
Translation buffer state:
gen code size
121540068/1073724416
TB count
186886
IE aug target size
23 max=2048 butes
Th aug host size
313 butes (expansion ratio: 13.2)
cross page TB count 0 (0%)
direct. jump count
104199 (55%) (2 jumps=87643 46%)
TH hash buckets
99012/131072 (75.54% head buckets used)
TB hash occupancy
34.17% avg chain occ. Histogram: (o,10) Irdà rte rûärturdar
turtulE90,1001%
TB hash avg chain
1.019 buckets. Histogram: 11rdêrûurâu13
Statistics:
TB flush count
0
TB invalidate count 2775
TLB full flushes 0
TLB partial flushes 505722
TLB elided flushes 5143430
[TCG profiler not compiled]
(qemu)
info irq bad session
(gemu) info irq
IRQ statistics for 7447_01.1-powerpc-cpu:
2: 4844
4: 5081
7: 37
8: 3044952
10: 70489
73: 27
IRO statistics for isa-18259:
0: 12
1: 78
2: 5556
9: 2196
12: 2096
14: 2048
15: 279
(qemu)
good session info jit:
(gemu) info jit
Accelerator settings:
one-insn-per-tb: off
Translation buffer state:
gen code size
122601716/1073724416
TB count
188792
TB avg target size
23 max=2048 butes
TB avg host size
311 bytes (expansion ratio: 13.1)
cross page TB count 0 (0%)
direct. jump count
105220 (55%) (2 jumps=88483 467)
TB hash buckets
99418/131072 (75.85 head buckets used)
TB hash occupancy
34.45% avg chain occ. Histogram: (o,10) Irdà rte rûärturdar
turtulE90,1001%
TB hash aug chain
1.019 buckets. Histogram: 11 dêrûurâul3
Statistics:
TB Flush count 0
TB invalidate count 3074
TLB full flushes. 0
TLB partial flushes 491380
TLB elided flushes 5042828
[TCG profiler not compiled]
(qemu)
good session info irq:
(gemu) info ira
IRQ statistics for 7447_01.1-powerpc-cpu:
2: 4850
4: 4515
7: 41
8: 2184883
10: 29055
73: 30
IRO statistics for isa-18259:
0: 11
1: 70
2: 5270
9: 1503
12: 3216
14: 2032
15: 144
(qemu)
The value of irq 8 and 10 looks suspicious, because there are big differences here. But I don't know, that's just a guess. At least the numbers show that it is different, shouldn't it always be the same?
Edited by Maijestro on 2023/7/25 18:35:03