The tag has no usage guidance.

learn more… | top users | synonyms (1)

4
votes
3answers
2k views

Discrepancy between reported used memory and sum of application memory usage

I'm running a desktop system that quite regularly suffers from lack of memory, this prompted me to investigate what causes the issue in the first place. Problem is, there's no single process that ...
1
vote
1answer
133 views

Linux always hangs when out of physical memory

I'm using ArchLinux, with 3.18.6-1 kernel, when a software uses more than physical memory (when total memory used is >5.8 GB), it always lags, unresponsive, and all that I can do is reset the computer....
1
vote
1answer
192 views

How does the kernel know how much user addressable memory to set aside?

I was reading up on a rather-dated article on the kernel managing memory and had this question on where the Page Table Entries (PTE) would go into. For this example, the author assumes we are on a ...
5
votes
0answers
141 views

How do I vmtouch a directory (not the files it contains)?

The vmtouch(8) tool allows locking a file or files in memory. It has recursive mode, but the directories are used just for discovering files and are not locked themselves. How do I lock a directory ...
4
votes
0answers
985 views

How extended (4MB) and regular (4KB) paging coexist?

On x86 architecture, "Extended paging" allows page frames (physical memory) to be 4 MB instead of 4 KB. The book "Understanding the Linux Kernel, 3rd" at chapter 2 "Memory Addressing", sub-chapter "...
3
votes
0answers
400 views

Why does saving a KVM-QEMU VM requires additional memory?

I have three VMs running on Red Hat Enterprise Linux with 8 GB RAM, each of the VMs has 3 GB allocated, and I also run a 512 MB VM. If we also consider the guest OS's memory usage (usually 1.5 GB due ...
3
votes
0answers
252 views

Virtual kernel memory layout in dmesg linux kernel 2.6.31

I'm working on a embedded linux project for ARM architecture, kernel version is 2.6.31.12-rt21. In dmesg, I cannot see the virtual kernel memory layout like this: virtual kernel memory layout: ...
2
votes
0answers
39 views

Read another processes memory using ptrace() in C/CPP [RaspberryPi]

So, initially, process A created a file containing data (37 Bytes) read from a stream(UART). Process B has to acquire that data, which is stored in /dev/shm. Process A has an absolute maximum of 4ms ...
2
votes
0answers
56 views

What does it mean when a private VM page is none of `rwx`?

UPDATE: It's a padding: every such non-rwx area is preceded with a readable and/or writable area and together they constitute a 64Mb segment (for 64bit architecture). A relevant question on SO: http:...
2
votes
0answers
61 views

When waiting on a pagefault, in what kind of sleep is a task?

Are tasks put into interruptible/uninterruptible/killable sleep when waiting on a pagefault? Does it matter, what kind of pagefault is it?
2
votes
0answers
49 views

Print kernel memory layout

Userland memory layout can be inspected by looking into /proc/self/maps. I am wondering if there is a similar facility allowing to inspect runtime kernel memory layout?
2
votes
0answers
73 views

JVM low-memory tuning

What command-line options would provide the lowest memory-footprint JVM, in OpenJDK, or possibly other JVMs (Linux/Debian)? I'm willing to disable JIT, live with slow or choppy garbage collection, ...
2
votes
0answers
97 views

How can I let high priority processes continue when low priority processes are causing free memory to be low

Ok I'm not sure if this is the correct place to post this. It is more of a 'why not' question than a 'how to' one (assumption is that it isn't/can't be done). Why don't we allow RAM to be partitioned ...
2
votes
0answers
631 views

Xorg consuming 1.1GB, is it a leak?

I am facing a problem wherein Xorg starts to consume more and more memory and finally eats up the whole swap space. As shown below, Xorg's virtual memory is about 1.1GB. My system runs only one GTK ...
2
votes
0answers
144 views

Disk page cache size in Linux for integrity purposes

I am trying to bound corruption in a block-based disk format in the presence of plausible machine failures in a Linux-specific application. That is, the file is read and written in application-defined ...
1
vote
0answers
39 views

Pagemap on memory mapped devices not working

I am trying to find the physical addresses of heap variables, stack variables and memory mapped peripheral addresses using the /proc/{pid}/pagemap file using the steps detailed in the file: http://lxr....
1
vote
0answers
67 views

Does Linux maintain a system RAM high water mark?

I know there is VmHWM entry in each process's /proc/[PID]/status file, however is there an aggregate of this that contains the high water mark for the system? I understand the free command give the ...
1
vote
0answers
51 views

Transparent Huge Pages, Pagetable size and /proc/<pid>/status

TL;DR; My pagetable is far bigger than it should be when using transparent huge pages (THP). I have a program (see below), that allocates 50 GiB of memory, requests transparent huge pages and faults ...
1
vote
0answers
15 views

FORTRAN executables: heap maxed out

I am trying to run a FORTRAN program on stampede (xsede machine). The error message I am getting is 'heap maxed out'. I think it has something to do with virtual memory allocation. So I use the ...
1
vote
0answers
61 views

Linux kernel running only with use of physical address

Is it theoretically possible to make Linux which for its own kernel (include modules) uses only physical addresses? (it means it completely omits MMU) For processes how would you know if there was ...
1
vote
0answers
65 views

Why process is killed while a lot of memory is free?

I am running a python script in ipython. This script will take about 8GB RAM. The system has more than 80 GB free RAM but the swap is nearly 0. My script was killed after it runned for a while. I want ...
1
vote
0answers
70 views

In the Linux Kernel what file/process controls the assignment of permissions to memory pages?

A given memory page may be writable, readable or executable. What kernal source code file in the linux kernal describes the setting of these rights? What process or kernal data structure would set the ...
1
vote
0answers
1k views

About mem and vmem

I am working with a cluster machine running under linux. I have a shell script that uses mpirun to submit my jobs to the cluster machine. In that same script, I can choose the number of nodes that ...
1
vote
0answers
61 views

How fast is a process reading/writing virtual memory?

We have top, htop, iotop, iostat, vmstat, etc, to measure many different things on Linux, but how can one measure how much MB/s a process is reading and writing to/from RAM, i.e., virtual memory?
1
vote
0answers
231 views

Virtual address of Global variables in Kernel code

If my understanding is not wrong, every process has a Kernel Address space associated with it (which is typically 1GB). As far as local variables are concerned, they are assigned on the kernel stack ...
1
vote
0answers
799 views

Where does the Linux kernel reside in memory ?

From some book I have, I have in my notes that the Linux kernel resides at 0xc00000000 on 32-bit systems, and is mapped into user space for performance reasons. Is this accurate ? How can I verify ...
0
votes
0answers
14 views

Understanding shared objects in virtual memory, in the output of top

In the output of top, does SHR for a process consist of only the following parts all the shared objects in RAM, e.g. shared libraries and shared data in RAM, shared between the process and any ...
0
votes
0answers
20 views

Strange PFN read from pagemap

I m trying to find the physical page to which a range of virtual addresses are mapped in a piece of C code that I ve written. I m using the /proc/self/pagemap to read the mapping. I ve used the code ...
0
votes
0answers
10 views

How to mmap file w/ HUGE_PAGES to specific memory location (via “memmap=4G$4G”)

Presently working: Device driver to mmap to specific memory location (isolated by boot parameter "memmap=4G$4G") via the remap_pfn_range call. Desired solution: Same/similar outcome using 2M pages ...
0
votes
0answers
28 views

Why does .text region of shared libraries is not flagged as VM_SHARED?

When I'm using shmem/mmap to share memory between processes I can see with pmap that it creates virtual memory area that marked as shared. Example: Address Kbytes RSS Dirty Mode ...
0
votes
0answers
39 views

How do I find corresponding kernel virtual addresses and userspace virtual addresses for a coreboot table driver?

How does kernel virtual addresses relate to userspace virtual addresses and is there a way to map the two with a kernel function? Some background: Coreboot puts some information in a table structure ...
0
votes
0answers
88 views

Where can I find the MMU,CR3 and TLB for creating virtual addresses?

I want to understand virtual addressing and read many times the terms: MMU TLB (Translation Lookaside Buffer) and CR3 But currently I'm a bit confused. My confusion is: MMUThe MMU is hardware. ...
0
votes
0answers
100 views

Is High Virtual Memory usage a problem or may cause problems?

In our server, we have a python based code that listen ports. The amount of Virtual Memory it uses is increased greatly with time Like: USER PID %CPU %MEM VSZ RSS TTY STAT ...
0
votes
0answers
549 views

swap space allocation vs swaptotal

I created a Red Hat 9 virtual machine on VMware Workstion 9 by allocated the physical memory of 256MB. See pic. When installing Linux, I created the swap partition with a size of 256MB. See ...