Skip to content

Commit 719c616

Browse files
authored
Improve Linux Consumption cold start (#6408)
Thanks to Bala we got profiles from Linux Consumption for cold starts and noticed we are doing 550msec of JIT and a big portion of it was because we were still compiling DryIoc in Linux consumption and PGO was not working in Linux becasue of a directory name casing issue. There is still a big portion of JIT during /admin/instance/assign that we follow up separately.
1 parent 72dcf0f commit 719c616

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/WebJobs.Script.WebHost/DependencyInjection/JobHostServiceProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private Container BuildContainer(IServiceCollection descriptors)
6161
// preferInterpretation will be set to true to significanly improve cold start in consumption mode
6262
// it will be set to false for premium and appservice plans to make sure throughput is not impacted
6363
// there is no throughput drop in consumption with this setting.
64-
var preferInterpretation = SystemEnvironment.Instance.IsWindowsConsumption() ? true : false;
64+
var preferInterpretation = SystemEnvironment.Instance.IsWindowsConsumption() || SystemEnvironment.Instance.IsLinuxConsumption() ? true : false;
6565
var container = new Container(r => rules, preferInterpretation: preferInterpretation);
6666

6767
container.Populate(descriptors);

src/WebJobs.Script.WebHost/Standby/WarmUpConstants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static class WarmUpConstants
99
{
1010
public const string FunctionName = "WarmUp";
1111
public const string AlternateRoute = "CSharpHttpWarmup";
12-
public const string PreJitFolderName = "PreJit";
12+
public const string PreJitFolderName = "PreJIT";
1313
public const string JitTraceFileName = "coldstart.jittrace";
1414
}
1515
}

0 commit comments

Comments
 (0)