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,530 questions
5
votes
2
answers
417
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
43
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
85
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
218
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
232
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
57
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
198
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
756
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
29
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
66
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
183
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 ...
4
votes
0
answers
114
views
How to find out what’s using 10GiB of my RAM when ps is only showing ~1GB?
I’ve had mysterious memory usage on a Thinkpad E495 for the longest time. Starting with Ubuntu 20.04, through several Ubuntu versions with default kernels and xanmod kernels and now under openSUSE ...
0
votes
2
answers
166
views
How to stop a running memtester (without risking to have to reboot)?
Extremely "noob" question: I have a running sudo memtester ... on an Ubuntu 22.04 machine, but I gave it too much memory to test and it's taking too much time (I see it running and updating, ...
1
vote
1
answer
152
views
How does the linux kernel know where to put its heap?
When setting up dynamic memory allocation, the Linux kernel has got to choose a place to put its heap, no? How does it avoid overriding its own stack or the stack growing and overriding the heap later?...