Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
e41a0fa3
Unverified
Commit
e41a0fa3
authored
Sep 04, 2025
by
Nick Hill
Committed by
GitHub
Sep 04, 2025
Browse files
[Perf] Freeze core engine proc heap after init (#24008)
Signed-off-by:
Nick Hill
<
nhill@redhat.com
>
parent
37241077
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
vllm/v1/engine/core.py
vllm/v1/engine/core.py
+6
-0
No files found.
vllm/v1/engine/core.py
View file @
e41a0fa3
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import
gc
import
os
import
os
import
queue
import
queue
import
signal
import
signal
...
@@ -536,6 +537,11 @@ class EngineCoreProc(EngineCore):
...
@@ -536,6 +537,11 @@ class EngineCoreProc(EngineCore):
self
.
step_fn
=
(
self
.
step
if
self
.
batch_queue
is
None
else
self
.
step_fn
=
(
self
.
step
if
self
.
batch_queue
is
None
else
self
.
step_with_batch_queue
)
self
.
step_with_batch_queue
)
# Mark the startup heap as static so that it's ignored by GC.
# Reduces pause times of oldest generation collections.
gc
.
collect
()
gc
.
freeze
()
@
contextmanager
@
contextmanager
def
_perform_handshakes
(
def
_perform_handshakes
(
self
,
self
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment