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

[Performance] Multiple Sessions on Same GPU is very slow #21365

Open
AdnanEkici opened this issue Jul 16, 2024 · 2 comments
Open

[Performance] Multiple Sessions on Same GPU is very slow #21365

AdnanEkici opened this issue Jul 16, 2024 · 2 comments
Labels
ep:TensorRT issues related to TensorRT execution provider performance issues related to performance regressions stale issues that have not been addressed in a while; categorized by a bot

Comments

@AdnanEkici
Copy link

Describe the issue

Hello I am trying to deploy onnxruntime with TensorRT execution provider. When I deploy my session with GPU 0 everything works perfect (50 ms) but When I try to deploy same Yolo model with 2 sessions (subprocess arch) inference speed drastically slows down to 200 - 300 ms

To reproduce

Urgency

No response

Platform

Linux

OS Version

22.04

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.16

ONNX Runtime API

Python

Architecture

X64

Execution Provider

TensorRT

Execution Provider Library Version

TensorRT 8.6.1

Model File

No response

Is this a quantized model?

Unknown

@github-actions github-actions bot added the ep:TensorRT issues related to TensorRT execution provider label Jul 16, 2024
@sophies927 sophies927 added the performance issues related to performance regressions label Jul 18, 2024
@skottmckay
Copy link
Contributor

Why 2 sessions? An inference session is stateless so can be called concurrently.

I would suspect resource contention between the sessions might be a problem, as each session has its own memory arenas and threadpools.

Copy link
Contributor

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ep:TensorRT issues related to TensorRT execution provider performance issues related to performance regressions stale issues that have not been addressed in a while; categorized by a bot
Projects
None yet
Development

No branches or pull requests

3 participants