[PR #6854] server: Add OLLAMA_NO_MMAP to disable mmap globally #58944

Open
opened 2026-04-29 13:49:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/6854
Author: @yubingjiaocn
Created: 9/18/2024
Status: 🔄 Open

Base: mainHead: main


📝 Commits (2)

  • a75db38 Add OLLAMA_NO_MMAP to disable mmap globally
  • ea31b85 Merge branch 'main' into main

📊 Changes

2 files changed (+5 additions, -1 deletions)

View changed files

📝 envconfig/config.go (+3 -0)
📝 llm/server.go (+2 -1)

📄 Description

Close #4895

This PR added an environment variable OLLAMA_NO_MMAP to ollama serve. When this environment variable is set to 1, --no-mmap param is always added to llama runner.

This PR will not bring any breaking change. If this environment variable is not set, mmap will keep enabled except pre-defined condition.


🔄 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/6854 **Author:** [@yubingjiaocn](https://github.com/yubingjiaocn) **Created:** 9/18/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`a75db38`](https://github.com/ollama/ollama/commit/a75db38bdb59008b87d2a5b23590a60dd6fa046b) Add OLLAMA_NO_MMAP to disable mmap globally - [`ea31b85`](https://github.com/ollama/ollama/commit/ea31b85a64495a50408c93f0d04b10966319b264) Merge branch 'main' into main ### 📊 Changes **2 files changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `envconfig/config.go` (+3 -0) 📝 `llm/server.go` (+2 -1) </details> ### 📄 Description Close #4895 This PR added an environment variable `OLLAMA_NO_MMAP` to `ollama serve`. When this environment variable is set to `1`, `--no-mmap` param is always added to llama runner. This PR will not bring any breaking change. If this environment variable is not set, mmap will keep enabled except pre-defined condition. --- <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-29 13:49:34 -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#58944