[PR #15476] [CLOSED] discover: fix available memory calculation for cgroups #25706

Closed
opened 2026-04-19 18:22:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15476
Author: @k8ieone
Created: 4/10/2026
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • 9b5b6f6 discover: fix available memory calculation for cgroups

📊 Changes

1 file changed (+66 additions, -6 deletions)

View changed files

📝 discover/cpu_linux.go (+66 -6)

📄 Description

Fixes #15474

Please, keep in mind that this code was generated by an LLM. I am not a Go programmer.

That being said, it seems to work quite well and fixes my issue. I have tested on

  1. Bare metal without a memory limit
  2. Running in a Docker container without a memory limit
  3. Running in a Docker container with a memory limit

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/15476 **Author:** [@k8ieone](https://github.com/k8ieone) **Created:** 4/10/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`9b5b6f6`](https://github.com/ollama/ollama/commit/9b5b6f61bd580eac74ed31525dcce047a9974060) discover: fix available memory calculation for cgroups ### 📊 Changes **1 file changed** (+66 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `discover/cpu_linux.go` (+66 -6) </details> ### 📄 Description Fixes #15474 Please, keep in mind that this code was generated by an LLM. I am not a Go programmer. That being said, it seems to work quite well and fixes my issue. I have tested on 1. Bare metal without a memory limit 2. Running in a Docker container without a memory limit 3. Running in a Docker container with a memory limit --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 18:22:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#25706