Stream: git-wasmtime

Topic: wasmtime / issue #3289 Too much log information about reg...


view this post on Zulip Wasmtime GitHub notifications bot (Sep 03 2021 at 08:22):

XuHugo opened issue #3289:

I use wasmtime in my project; then I set the project's log level to debug; then there are a lot of logs after the program runs;
May I ask how to eliminate this log;

log info:

2021-09-03T16:14:59.200361400+08:00 DEBUG regalloc::bt_coalescing_analysis -   hintsfor vr4 = (Exactly %r8, weight=1)
2021-09-03T16:14:59.200392100+08:00 DEBUG regalloc::bt_coalescing_analysis -   hintsfor vr5 = (Exactly %rax, weight=1)
2021-09-03T16:14:59.200420600+08:00 DEBUG regalloc::bt_coalescing_analysis -   eclassof vr0 = [vr0]
2021-09-03T16:14:59.200458300+08:00 DEBUG regalloc::bt_coalescing_analysis -   eclassof vr1 = [vr1]
2021-09-03T16:14:59.200489300+08:00 DEBUG regalloc::bt_coalescing_analysis -   eclassof vr2 = [vr2]
2021-09-03T16:14:59.200517400+08:00 DEBUG regalloc::bt_coalescing_analysis -   eclassof vr3 = [vr3]
2021-09-03T16:14:59.200545700+08:00 DEBUG regalloc::bt_coalescing_analysis -   eclassof vr4 = [vr4]
2021-09-03T16:14:59.200575300+08:00 DEBUG regalloc::bt_coalescing_analysis -   eclassof vr5 = [vr5]
2021-09-03T16:14:59.200604500+08:00 INFO regalloc::bt_coalescing_analysis - do_coalescing_analysis: end
2021-09-03T16:14:59.200629700+08:00 INFO regalloc::bt_coalescing_analysis -
2021-09-03T16:14:59.200655200+08:00 INFO regalloc::bt_main - alloc_main: begin
2021-09-03T16:14:59.200680400+08:00 INFO regalloc::bt_main - alloc_main:   in: 16 insns in 1 blocks
2021-09-03T16:14:59.200705600+08:00 INFO regalloc::bt_main - alloc_main:   in: 6 VLRs, 20 RLRs
2021-09-03T16:14:59.200764200+08:00 DEBUG regalloc::bt_main -
2021-09-03T16:14:59.200791100+08:00 DEBUG regalloc::bt_main - <<<<====---- RA state at 'Initial' ----====
2021-09-03T16:14:59.200842300+08:00 DEBUG regalloc::bt_main - TODO  vr3 = (VR: v3J, sz=12, tc=3, sc=0.250, [(RF: i3.d-i14.u)])
2021-09-03T16:14:59.200869500+08:00 DEBUG regalloc::bt_main - TODO  vr2 = (VR: v2J, sz=9, tc=2, sc=0.222, [(RF: i2.d-i10.u)])
2021-09-03T16:14:59.200894400+08:00 DEBUG regalloc::bt_main - TODO  vr0 = (VR: v0J, sz=8, tc=2, sc=0.250, [(RF: i0.d-i7.u)])
2021-09-03T16:14:59.200919300+08:00 DEBUG regalloc::bt_main - TODO  vr1 = (VR: v1J, sz=8, tc=2, sc=0.250, [(RF: i1.d-i8.u)])
2021-09-03T16:14:59.200944500+08:00 DEBUG regalloc::bt_main - TODO  vr4 = (VR: v4J, sz=6, tc=2, sc=0.333, [(RF: i4.d-i9.u)])
2021-09-03T16:14:59.200969300+08:00 DEBUG regalloc::bt_main - TODO  vr5 = (VR: v5J, sz=4, tc=2, sc=0.500, [(RF: i11.d-i14.u)])

the config of log:

[root]
level = "debug"
appenders = ["stdout", "rolling"]

[loggers]
"app::executor::wasmtime" = { level = "error" }

view this post on Zulip Wasmtime GitHub notifications bot (Sep 03 2021 at 09:25):

bjorn3 commented on issue #3289:

See https://github.com/bytecodealliance/wasmtime/pull/1529

view this post on Zulip Wasmtime GitHub notifications bot (Sep 03 2021 at 16:50):

cfallin commented on issue #3289:

This sort of output should really be trace!() rather than debug!(). Happy to take a PR over in bytecodealliance/regalloc.rs if you want to do that, but this should also be resolved by regalloc2 when we eventually switch the default.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 04 2021 at 07:12):

XuHugo commented on issue #3289:

This sort of output should really be trace!() rather than debug!(). Happy to take a PR over in bytecodealliance/regalloc.rs if you want to do that, but this should also be resolved by regalloc2 when we eventually switch the default.

I've found a workaround to configure log4rs.yaml;

`root:
level: warn
appenders:

- stdout
- file

loggers:
regalloc:
level: warn
`
thanks。

view this post on Zulip Wasmtime GitHub notifications bot (Sep 04 2021 at 07:12):

XuHugo edited a comment on issue #3289:

This sort of output should really be trace!() rather than debug!(). Happy to take a PR over in bytecodealliance/regalloc.rs if you want to do that, but this should also be resolved by regalloc2 when we eventually switch the default.

I've found a workaround to configure log4rs.yaml;

root:
  level: warn
  appenders:

    - stdout
    - file
loggers:
  regalloc:
    level: warn

thanks。

view this post on Zulip Wasmtime GitHub notifications bot (Sep 04 2021 at 07:13):

XuHugo edited a comment on issue #3289:

This sort of output should really be trace!() rather than debug!(). Happy to take a PR over in bytecodealliance/regalloc.rs if you want to do that, but this should also be resolved by regalloc2 when we eventually switch the default.

I've found a workaround to configure log4rs.yaml;

root:
  level: debug
  appenders:

    - stdout
    - file
loggers:
  regalloc:
    level: warn

thanks。

view this post on Zulip Wasmtime GitHub notifications bot (Sep 04 2021 at 07:15):

XuHugo edited a comment on issue #3289:

This sort of output should really be trace!() rather than debug!(). Happy to take a PR over in bytecodealliance/regalloc.rs if you want to do that, but this should also be resolved by regalloc2 when we eventually switch the default.

I've found a workaround to configure log4rs.yaml;

root:
  level: debug
  appenders:

    - stdout
    - file
loggers:
  regalloc:
    level: warn

thanks。

view this post on Zulip Wasmtime GitHub notifications bot (Sep 04 2021 at 18:00):

cfallin closed issue #3289:

I use wasmtime in my project; then I set the project's log level to debug; then there are a lot of logs after the program runs;
May I ask how to eliminate this log;

log info:

2021-09-03T16:14:59.200361400+08:00 DEBUG regalloc::bt_coalescing_analysis -   hintsfor vr4 = (Exactly %r8, weight=1)
2021-09-03T16:14:59.200392100+08:00 DEBUG regalloc::bt_coalescing_analysis -   hintsfor vr5 = (Exactly %rax, weight=1)
2021-09-03T16:14:59.200420600+08:00 DEBUG regalloc::bt_coalescing_analysis -   eclassof vr0 = [vr0]
2021-09-03T16:14:59.200458300+08:00 DEBUG regalloc::bt_coalescing_analysis -   eclassof vr1 = [vr1]
2021-09-03T16:14:59.200489300+08:00 DEBUG regalloc::bt_coalescing_analysis -   eclassof vr2 = [vr2]
2021-09-03T16:14:59.200517400+08:00 DEBUG regalloc::bt_coalescing_analysis -   eclassof vr3 = [vr3]
2021-09-03T16:14:59.200545700+08:00 DEBUG regalloc::bt_coalescing_analysis -   eclassof vr4 = [vr4]
2021-09-03T16:14:59.200575300+08:00 DEBUG regalloc::bt_coalescing_analysis -   eclassof vr5 = [vr5]
2021-09-03T16:14:59.200604500+08:00 INFO regalloc::bt_coalescing_analysis - do_coalescing_analysis: end
2021-09-03T16:14:59.200629700+08:00 INFO regalloc::bt_coalescing_analysis -
2021-09-03T16:14:59.200655200+08:00 INFO regalloc::bt_main - alloc_main: begin
2021-09-03T16:14:59.200680400+08:00 INFO regalloc::bt_main - alloc_main:   in: 16 insns in 1 blocks
2021-09-03T16:14:59.200705600+08:00 INFO regalloc::bt_main - alloc_main:   in: 6 VLRs, 20 RLRs
2021-09-03T16:14:59.200764200+08:00 DEBUG regalloc::bt_main -
2021-09-03T16:14:59.200791100+08:00 DEBUG regalloc::bt_main - <<<<====---- RA state at 'Initial' ----====
2021-09-03T16:14:59.200842300+08:00 DEBUG regalloc::bt_main - TODO  vr3 = (VR: v3J, sz=12, tc=3, sc=0.250, [(RF: i3.d-i14.u)])
2021-09-03T16:14:59.200869500+08:00 DEBUG regalloc::bt_main - TODO  vr2 = (VR: v2J, sz=9, tc=2, sc=0.222, [(RF: i2.d-i10.u)])
2021-09-03T16:14:59.200894400+08:00 DEBUG regalloc::bt_main - TODO  vr0 = (VR: v0J, sz=8, tc=2, sc=0.250, [(RF: i0.d-i7.u)])
2021-09-03T16:14:59.200919300+08:00 DEBUG regalloc::bt_main - TODO  vr1 = (VR: v1J, sz=8, tc=2, sc=0.250, [(RF: i1.d-i8.u)])
2021-09-03T16:14:59.200944500+08:00 DEBUG regalloc::bt_main - TODO  vr4 = (VR: v4J, sz=6, tc=2, sc=0.333, [(RF: i4.d-i9.u)])
2021-09-03T16:14:59.200969300+08:00 DEBUG regalloc::bt_main - TODO  vr5 = (VR: v5J, sz=4, tc=2, sc=0.500, [(RF: i11.d-i14.u)])

the config of log:

[root]
level = "debug"
appenders = ["stdout", "rolling"]

[loggers]
"app::executor::wasmtime" = { level = "error" }

Last updated: Nov 22 2024 at 17:03 UTC