-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Reduce logging system overhead #3416
Merged
SylvainCorlay
merged 22 commits into
mamba-org:main
from
jjerphan:fix/libsolv-database-log-overhead
Aug 29, 2024
Merged
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
4a7e53b
test: Non-regression test
jjerphan 2c8b4ba
fix: Use penultimate libsolv's log level
jjerphan 58573b0
Only run `test_env_spdlog_overhead_regression` on Linux
jjerphan 67a3268
Add time-out on test and rename conda env
jjerphan e78169c
Decrease timout to 15 seconds and use dry-run
jjerphan 17ae6d6
Use bounded value of `output_params.verbosity` as in 1.x
jjerphan f1f41b7
Instead define and use and alternative `set_level`
jjerphan ab02ad5
Revert "Instead define and use and alternative `set_level`"
jjerphan f21b2a7
Simply hardcode the verbosity level to 3
jjerphan a70d9ae
Increase timeout from 15 to 30 seconds
jjerphan b26bb9a
From 30 sec to 60 sec
jjerphan 66823c2
DEBUG No timeout
jjerphan 90588d4
test: Remove edge-case for unlinks
jjerphan 9954136
test: Adapt number of unlinks on Linux
jjerphan 30ef0ed
Assert success
jjerphan 0d8ea53
docs: Update comments
jjerphan 2bfad8f
`const`-qualify `level`
jjerphan cd9d5f1
Use 100 seconds for the timeout
jjerphan 10762ee
Use 200 seconds for the timeout
jjerphan 3002111
Adapt according to `1.x`'s behavior
jjerphan 11af438
fixup! Adapt according to `1.x`'s behavior
jjerphan 1b29151
Revert changes to handle CI failures
jjerphan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This environment was observed to have the spdlog-based logging system make | ||
# mamba hang when environments are created with: | ||
# | ||
# {micromamba,mamba} env create -n repro-create -f ./env-logging-overhead-regression.yaml | ||
# | ||
# or updated with: | ||
# | ||
# {micromamba,mamba} env update -n repro-create -f ./env-logging-overhead-regression.yaml | ||
# | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.9 | ||
- xeus-cling=0.6.0 | ||
- xtensor=0.20.8 | ||
- xtensor-blas=0.16.1 | ||
- notebook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In 1.x we were doing:
pool_setdebuglevel(pool().raw(), Context::instance().output_params.verbosity - 1);
when
verbosity
>= 3Otherwise
pool_setdebuglevel
wasn't called. That means that it was set to something in libsolv internals not to the default value ofverbosity
inmamba
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value of
libsolv
'spool->debugmask
isSOLV_DEBUG_RESULT
.If we call it with
0
we only&=SOLV_DEBUG_TO_STDERR
it. Not sure if it causes a problem in practice, but let's thus not call it for now at all.