Skip to main content

Questions tagged [memory-management]

1 vote
0 answers
97 views

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....
Hyunsa's user avatar
  • 11
10 votes
3 answers
1k views

According to Linux Kernel Development by Robert Love, p. 233: Because of hardware limitations, the kernel cannot treat all pages as identical. Some pages, because of their physical address in memory, ...
Andymang's user avatar
  • 103
0 votes
0 answers
195 views

0 I need a kernel module that allocates 8MB of physically contiguous memory using 2MB huge pages, in response to a user-space mmap() request. While I’ve successfully used alloc_pages() with 4KB pages ...
ReturnAddress's user avatar
4 votes
1 answer
1k views

I see in the web many conflicting or unclear descriptions of the memory layout of a Linux process. Usually the common diagram looks like: And a common description would say that: The data segment ...
aviro's user avatar
  • 6,955
0 votes
1 answer
117 views

Why linux /proc/meminfo show:" 1 MemTotal: 7038920 kB " (proc most likely is to mean Kibibyte) in a PC of 8 GB memory RAM, although its Kibibyte is 7812500 ?
user avatar
4 votes
1 answer
3k views

I am trying to understand how IO devices are mapped into the 'regular' memory address space on modern x86 machines running Linux. Some details which I am trying to make sense of are: cat /proc/iomem ...
shafe's user avatar
  • 200
2 votes
1 answer
2k views

Can a Linux swap partition be too big? I'm pretty certain the answer is, "no" but I haven't found any resources on-point, so thought I'd ask. In contrast, the main Windows swap file, ...
ebsf's user avatar
  • 399
0 votes
1 answer
227 views

vmalloc(size) allocates a memory of size long which is virtually contiguous but the physical mapping would not be contiguous. Does that mean the the virtually allocated size long memory actually lies ...
Franc's user avatar
  • 309

15 30 50 per page