Questions tagged [memory]
In computing, memory refers to the state information of a computing system, as it is kept active in some physical structure.
1,532 questions
0 votes
0 answers
27 views
Linux kernel “BUG: Bad page state / Bad page cache in process python” during PyTorch distributed training (NVidia 5090 + Ubuntu 22.04)
I’m encountering a recurring kernel memory error while running heavy PyTorch training workloads . The system eventually becomes unstable, training stops, SSH disconnects, and the machine needs a ...
1 vote
1 answer
55 views
Why is there a discrepancy between the stack address in /proc/PID/maps vs. /proc/PID/stat?
Why does there appear to be a discrepancy between a process stack address within /proc/PID/maps compared to the stack start address within /proc/PID/stat, where the latter is a smaller subset of the ...
1 vote
1 answer
52 views
Discrepancies for entries for the same map in different /proc/*/smaps files
The snippet below: shows statistics for what appears to be the exact same memory mapping: same device number, same inode, same offset, same length (0x7f8656e78000-0x7f8656cbb000 = 0x7f2f4ef6a000-...
5 votes
2 answers
453 views
Is MemoryHigh throttling per process or per service?
When a service has configured a MemoryHigh value and this value is exceeded, the documentation says that this happens: Memory usage may go above the limit if unavoidable, but the processes are ...
14 votes
1 answer
1k views
How does the Linux kernel decide whether to deny memory allocation or invoke the OOM killer when a cgroup exceeds its memory limit?
This question comes from my curiosity about how Kubernetes handles resource requests and limits, especially memory constraints defined for pods. I understand that Kubernetes uses cgroups under the ...
0 votes
0 answers
46 views
Analysis of memory consumption in Linux
I am analyzing issues with unexpected increase of memory consumption in Linux. It is an embedded system with no swap. What is happening is over some period of time around 2GB of MemFree/MemAvailable (...
1 vote
0 answers
97 views
Too slow Tiered Memory Demotion and CPU Lock-up(maybe) with cgroup v2 memory.high
We are currently testing tiered memory demotion on a machine equipped with a CXL device. To facilitate this, we created a specific script (https://github.com/hyun-sa/comem) and are using the memory....
4 votes
1 answer
229 views
Why are 6GB unavailable on 32GB? (Debian 12)
(This is updated with each new information) My HP Proliant ML350 Gen 10 server has 32 GB RAM, that seem correctly detected. But only 26GB are available, according to free/htop/proc.meminfo… free -m ...
4 votes
2 answers
254 views
How to find out a process's proportional use of system-wide Committed_AS memory on Linux?
On Linux, it's possible to disable overcommitting memory which makes it behave like Windows, in that malloc() will fail once all physical memory is used up. As explained in this insightful and good ...
2 votes
1 answer
61 views
Are the page tables of the process preempted swapped out if there is a dearth of memory for new process
Suppose process A has been preempted to allow process B to run. If system memory is low and the kernel needs to reclaim memory for process B, is it possible for the page tables of process A to be ...
1 vote
1 answer
233 views
Disabling overcommitting memory seems to cause allocs to fail too early, what could be the reason?
I tested out echo 2 > /proc/sys/vm/overcommit_memory, which I know isn't a commonly used or recommended mode, but for various reasons it could be beneficial for some of my workloads. However, when ...
9 votes
1 answer
762 views
When suspending to disk, does memory cache got dumped to disk?
My system has 64GiB of memory. I noticed it usually uses about 20GiB for cache. I wonder if I do "suspend to disk", does the cached part get dumped to disk as well, or is it written to disk ...
0 votes
0 answers
38 views
BUG: Bad page state in process swapper pfn:801bd while booting linux (5.15.68, arm64)
I'm tyring to boot linux on an SoC (arm64 based) and seeing trap in early stage. Here is the boot message. Booting Linux on physical CPU 0x0000000002 [0x411fd401] Linux version 5.15.68 (etri@AB21-T07) ...
1 vote
1 answer
69 views
Obtain memory values in SAR the same way as in FREE
I'd like to know if I can get memory in sar the same way I get it from free. Currently free shows me a memory usage of 47.06% (16956/36027)*100 [used/total x 100]. Whereas sar is showing me a usage of ...
1 vote
1 answer
214 views
How can I calculate the memory usage on linux?
If I check my memory use, normally done like... $ free -h total used free shared buff/cache available Mem: 62Gi 10Gi 53Gi 864Mi ...