Skip to main content

Questions tagged [memory-management]

1 vote
0 answers
113 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
2 votes
1 answer
79 views

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 ...
Padala Teja Sai Kumar Reddy's user avatar
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
60 views

I'm using trace-cmd on a Linux host running a qemu/kvm VM in order to check VM-exit events related to EPT_VIOLATION reason. root@eve-ng62:~# trace-cmd record -b 20000 -e kvm:kvm_page_fault -e kvm_exit ...
CarloC's user avatar
  • 385
0 votes
0 answers
229 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
1 vote
1 answer
299 views

I have a systemd service named vcoagent.service running on my Linux system, and I'm trying to understand how memory limits specified for the service (Memory: 300.3M (limit: 500.0M)) apply to the ...
Ackerman Shadow'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,965
5 votes
1 answer
6k views

I'm using Linux on my Steam Deck (SteamOS/Arch Linux). Is there a method to set a hard cap/limit on the maximum total RAM Chrome can use with command line arguments? (to 8 GB out of the device's max ...
JLHack7's user avatar
  • 51
0 votes
1 answer
122 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
0 votes
1 answer
118 views

I have two questions; Suppose a user space application/process is running in kernel mode. I understand if a context switch is happened now, the kernel stack pointer of that process is stored in the ...
Franc's user avatar
  • 309
5 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
  • 210
1 vote
1 answer
413 views

I use Linux only but I want to understand what this means: From the Linux Programming Interface: Blocks of memory allocated using memalign() or posix_memalign() should be deallocated with free(). On ...
Rick's user avatar
  • 1,257
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
0 answers
287 views

I am using Ubuntu 16.04, kernel: 4.17.4 I want to access the page table of a process. The idea is, inside a c code I will call a custom Syscall and the syscall will be able to access the page table of ...
Misbah's user avatar
  • 1
0 votes
1 answer
242 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