[GH-ISSUE #4318] Can this set the number of cores on the cpu? #2693

Closed
opened 2026-04-12 13:01:00 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @ghost-him on GitHub (May 10, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4318

My server has 24 cores, but each time it can only use a portion of them. If I could use all of these cores, it would run much more efficiently!

Originally created by @ghost-him on GitHub (May 10, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4318 My server has 24 cores, but each time it can only use a portion of them. If I could use all of these cores, it would run much more efficiently!
GiteaMirror added the feature request label 2026-04-12 13:01:00 -05:00
Author
Owner

@lengrongfu commented on GitHub (May 13, 2024):

@ghost-him Can you describe whether only part of the cpu cores are used during the pull model or the run model?

<!-- gh-comment-id:2106491135 --> @lengrongfu commented on GitHub (May 13, 2024): @ghost-him Can you describe whether only part of the cpu cores are used during the pull model or the run model?
Author
Owner

@ghost-him commented on GitHub (May 13, 2024):

Now that the computer isn't with me, it's a random part of the cpu core as far as I can remember. But the same number at full load.

<!-- gh-comment-id:2106539353 --> @ghost-him commented on GitHub (May 13, 2024): Now that the computer isn't with me, it's a random part of the cpu core as far as I can remember. But the same number at full load.
Author
Owner

@lengrongfu commented on GitHub (May 14, 2024):

I have reason to believe it is the maximum value. https://pkg.go.dev/runtime#GOMAXPROCS

<!-- gh-comment-id:2109163907 --> @lengrongfu commented on GitHub (May 14, 2024): I have reason to believe it is the maximum value. https://pkg.go.dev/runtime#GOMAXPROCS
Author
Owner

@ghost-him commented on GitHub (May 14, 2024):

Thank you very much, I'll try it out in a while

<!-- gh-comment-id:2109214100 --> @ghost-him commented on GitHub (May 14, 2024): Thank you very much, I'll try it out in a while
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2693