Eric Eilebrecht

Results comments of Eric Eilebrecht

@misenesi: The Linux implementation of `set_ProcessorAffinityCore` is here: https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.Process/src/System/Diagnostics/Process.Linux.cs#L103. It's effectively just a call to a native wrapper around sched_setaffinity; you can find the native wrapper code here: https://github.com/dotnet/corefx/blob/bffef76f6af208e2042a2f27bc081ee908bb390b/src/Native/Unix/System.Native/pal_process.cpp#L494.

> this is fixed in 14936 Great! I tried validating this with our tests, but running those tests on 14936 seems to result in a BSOD. I assume this is...

It's entirely possible that we have a race condition that is only causing problems when we run on WSL. But when I looked at strace logs from my own runs,...

@jonfasking, can you collect a perf trace on Linux? Instructions are here: https://github.com/dotnet/coreclr/blob/master/Documentation/project-docs/linux-performance-tracing.md

I'm having trouble finding much specific information about the actual dotNET process in that trace. However, it does look like, at least in terms of CPU usage, the "bro" process...

@vancem, @brianrob, any chance one of you could help us make more sense of this trace?

Exception semantics are one issue; another is ExecutionContext semantics. Async methods save the current ExecutionContext on entry, and restore it at the first `await`. So, for example, if you set...

> Runtime it could be detected as not default I'm not sure that would help. Even if we _start_ with a default context, if the Async method modifies that context,...

What scenario is motivating this request? This isn't there now because it's not clear what the right way to do it across all OS platforms would be.

We should consider this when we have a concrete motivating scenario that requires it.