Skip to content
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

Pipelines.Sockets.Unofficial Thread Pool #2693

Open
joaooo opened this issue Apr 4, 2024 · 3 comments
Open

Pipelines.Sockets.Unofficial Thread Pool #2693

joaooo opened this issue Apr 4, 2024 · 3 comments

Comments

@joaooo
Copy link

joaooo commented Apr 4, 2024

Hello, im running a .net 8 app and i was profiling with dot trace and noticed a lot of the time spent is in ctor of Pipelines.Sockets.Unofficial.DedicatedThreadPoolPipeScheduler and within the .RunWorkLoop and

This is my redis DI:

IConnectionMultiplexer multiplexer = ConnectionMultiplexer.Connect(redisServer);
        services.AddSingleton(_ => multiplexer);
        services.AddStackExchangeRedisCache(o =>
        {
            o.ConnectionMultiplexerFactory = () => Task.FromResult(multiplexer);
            o.Configuration = redisServer;
        });

Also, i have 5 calls to redis, which im using WhenAll to parallel them, so im quite surprised my service is spending so much time within Pipelines.Sockets.Unofficial thread pool

image

@joaooo joaooo changed the title [Question] pipelines.sockets.unofficial [Question] Pipelines.Sockets.Unofficial Thread Pool Apr 4, 2024
@joaooo joaooo changed the title [Question] Pipelines.Sockets.Unofficial Thread Pool Pipelines.Sockets.Unofficial Thread Pool Apr 4, 2024
@mgravell
Copy link
Collaborator

mgravell commented Apr 4, 2024

it is hard to say, from the outside, whether this is a problem - the work needs to happen somewhere; however, I do agree that the IO core at the moment is subptimal and hard to get insight into; I'm investing some time currently to overhaul that entire path, for this and other reasons

@joaooo
Copy link
Author

joaooo commented Apr 5, 2024

Alright, thank you, i guess i will wait for the future news :)

@WolframCrem
Copy link

Also having this issue; Waiting for news in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants