Remove reloadOnChange from configuration in .NET Core 2.1#3138
Closed
andrewlock wants to merge 2 commits into
Closed
Remove reloadOnChange from configuration in .NET Core 2.1#3138andrewlock wants to merge 2 commits into
reloadOnChange from configuration in .NET Core 2.1#3138andrewlock wants to merge 2 commits into
Conversation
This was causing `The configured user limit (128) on the number of inotify instances has been reached` when running on Ubuntu 20.04. This only impacts .NET Core 2.1, as the default is to use a polling file watcher when using the generic host (`HostBuilder` instead of `IWebHostBuilder`)
kevingosse
approved these changes
Aug 30, 2022
This comment has been minimized.
This comment has been minimized.
lucaspimentel
approved these changes
Aug 30, 2022
lucaspimentel
left a comment
Member
There was a problem hiding this comment.
LGTM, but maybe also mention in the PR description the line you're adding to /etc/sysctl.conf in some dockerfiles?
zacharycmontoya
approved these changes
Aug 30, 2022
Member
Author
Benchmarks Report 🐌Benchmarks for #3138 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Unknown 🤷 Same allocations ✔️Raw results
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️
|
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑netcoreapp3.1 | 1.130 | 1,025.40 | 907.31 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StartFinishSpan |
net472 | 1.1μs | 0.462ns | 1.79ns | 0.128 | 0 | 0 | 810 B |
| master | StartFinishSpan |
netcoreapp3.1 | 1.03μs | 0.339ns | 1.27ns | 0.0102 | 0 | 0 | 760 B |
| master | StartFinishScope |
net472 | 1.35μs | 0.495ns | 1.92ns | 0.141 | 0 | 0 | 891 B |
| master | StartFinishScope |
netcoreapp3.1 | 1.09μs | 0.382ns | 1.43ns | 0.0119 | 0 | 0 | 880 B |
| #3138 | StartFinishSpan |
net472 | 1.12μs | 0.432ns | 1.62ns | 0.129 | 0 | 0 | 810 B |
| #3138 | StartFinishSpan |
netcoreapp3.1 | 907ns | 0.263ns | 0.948ns | 0.0104 | 0 | 0 | 760 B |
| #3138 | StartFinishScope |
net472 | 1.37μs | 0.688ns | 2.66ns | 0.141 | 0 | 0 | 891 B |
| #3138 | StartFinishScope |
netcoreapp3.1 | 1.06μs | 0.343ns | 1.24ns | 0.0118 | 0 | 0 | 880 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | RunOnMethodBegin |
net472 | 1.5μs | 0.599ns | 2.32ns | 0.141 | 0 | 0 | 891 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 1.23μs | 0.55ns | 1.98ns | 0.0119 | 0 | 0 | 880 B |
| #3138 | RunOnMethodBegin |
net472 | 1.42μs | 0.352ns | 1.36ns | 0.141 | 0 | 0 | 891 B |
| #3138 | RunOnMethodBegin |
netcoreapp3.1 | 1.18μs | 0.663ns | 2.57ns | 0.0118 | 0 | 0 | 880 B |
Member
Author
|
yeah, so that didn't work |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary of changes
Customise the Razor Pages app's config to remove
reloadOnChangefrom the settings file watcherReason for change
This was causing
The configured user limit (128) on the number of inotify instances has been reachedwhen running on Ubuntu 20.04.Implementation details
Manually configure the razor pages app's configuration so it doesn't use the filesystem watcher. This only impacts .NET Core 2.1, as the default is to use a polling file watcher when using the generic host in docker (
HostBuilderinstead ofIWebHostBuilder)Test coverage
If the build passes, we're good.
Other details