0
votes
1answer
26 views

Is Inactive memory related to the Commited but unused?

From the Linux procfs documentation: Active: Memory that has been used more recently and usually not reclaimed unless absolutely necessary. Inactive: Memory which has been ...
4
votes
2answers
64 views

1GB huge page - Is writing occurring in 1GB chunks?

I'm trying to understand the relation between huge page size and how data is actually being written to RAM. What happens when a process uses a 1GB huge page - does writing occur in 1GB chunks? I ...
1
vote
1answer
80 views

Clear Memory Cache on Amazon EC2

In our project we have a few tests which run for about 3-4 hours continuously. In due course, the tests fail as they couldn't find enough memory. On googling, I found that running the following ...
2
votes
3answers
120 views

How can I find the amount of memory consumed by a process?

How can I find the amount of main memory consumed by a process using ps aux? I have a process which runs for half an hour. Is it possible to find the maximum amount of main memory consumed by it ...
5
votes
1answer
746 views

The meaning of output of pmap

I wrote main.c in Linux: int main() { while (1){} } When I compile and start it, I can pmap it: # pmap 28578 28578: ./a.out 0000000000400000 4K r-x-- /root/a.out 0000000000600000 4K ...
2
votes
0answers
115 views

GNU/Linux swapping blocks system

I have used GNU/Linux on systems from 4 MB RAM to 512 GB RAM. When they start swapping, most of the time you can still log in and kill off the offending process - you just have to be 100-1000 times ...
7
votes
1answer
1k views

Zswap, Zram, Zcache desktop usage scenarios

I've been trying to understand the difference in use cases for Zswap, Zram, and Zcache. Apologies in advance for the long/slightly sloppily worded question. I've done a bunch of googling, and I ...
4
votes
1answer
168 views

Spike in swap utilisation without high swap rate

Every Saturday, for reasons unknown to me, one of my servers experiences a spike in swap utilisation. It's not necessarily a problem as there is plenty of free memory available, but I'd still like to ...
10
votes
6answers
2k views

Can Linux “run out of RAM”?

I saw several posts around the web of people apparently complaining about a hosted VPS unexpectedly killing processes because they used too much RAM. How is this possible? I thought all modern OS' ...
0
votes
2answers
182 views

Linux kernel with absolutely no virtual memory [duplicate]

I am interested in obtaining (or building myself) a version of the Linux kernel that has absolutely no virtual memory and none of its attendant overhead. No swap file, no nothing. What are my ...
1
vote
0answers
82 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
votes
1answer
38 views

get Various types of address used [closed]

How to get various address ranges of a running machine or a crash dump? User virtual address Physical address Bus address Kernel logical address Kernel virtual address I don't need the bus ...
1
vote
3answers
594 views

Linux / JVM - OutOfMemoryError: unable to create new native thread

I have a memory problem with a Linux server (CentOS). It is a VM. Below is the context. It has 70Gb of RAM. There are 2 tomcat running on it. One tomcat is given a heap of 13Gb and the other one a ...
3
votes
2answers
283 views

Where is the virtual memory stored on hard drive?

If a process wants to access a memory address that is not in physical memory, the OS outsources a page frame from physical memory to the hard drive for later use. Where on the hard drive is this data ...
1
vote
2answers
230 views

TLB cache flusing when a page is swapped out

I recently heard that Linux simply flushes the TLB cache when the corresponding data in that physical address is swapped out, resulting in underutilization of the TLB. I don't know whether all OSes do ...
1
vote
2answers
795 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 ...
4
votes
3answers
124 views

What is contained in these addresses?

I am working on MUlti-processor record-replay feature of a virtual machine. I have a log of non-deterministic memory access done in the virtual machine by virtual CPUs. A very high proportion of these ...
1
vote
1answer
1k views

Drop_caches doesn't drop caches?

Sometimes I see my swap file is a bit bigger then usual. I tried sync && echo 3 > /proc/sys/vm/drop_caches to no avail. But when I tried swapoff -a it takes a bit longer but the swap file ...
2
votes
1answer
1k views

How to debug Linux kernel panic?

I am trying to debug a kernel panic. Panic message says unable to handle kernel paging request for address 40025694. At the time of panic it was executing ldreq r10, [lr, #-4] @ get SWI instruction. ...
6
votes
2answers
1k views

An oom killer thats baffling me

I am not able to understand why would kernel issue this oom killer when I see enough memory is available: Also why are there so many kernel cache pages allocated? I say enough memory is available ...
3
votes
1answer
433 views

Rationale for making user space text segment start at 0x8048000

I read somewhere that (at least since Linux v. 2.6) all user-space code is placed at load address 0x8048000 in the virtual memory address space. My own observations confirm this. I have done a cat ...
2
votes
1answer
142 views

Memory Management: Faulting virtual addresses

I came across the following on http://tldp.org/LDP/tlk/mm/memory.html If the faulting virtual address is invalid this means that the process has attempted to access a virtual address that it ...
1
vote
2answers
437 views

NAND flash memory wear & virtual memory page swap

For a linux kernel with virtual memory and disk storage, pages are swapped back and forth into swap area. But embedded systems generally use NAND flash instead of disk. A NAND flash has a limited ...
2
votes
1answer
797 views

How often is PSS value updated for a given process in /proc/pid/smaps

So if n processes are sharing a library L with size M then the contribution to their PSS is M/n. Now imagine one of the process terminates. So the contribution would be M/(n-1). Q1: My question is ...
17
votes
1answer
11k views

Getting information about a process' memory usage from /proc/pid/smaps

For a given process in /proc/<pid>/smaps, for a given mapping entry what are: Shared_Clean Shared_Dirty Private_Clean Private_Dirty Is Shared_Clean + Shared_Dirty the amount of memory that ...
0
votes
1answer
249 views

Reading virtual memory

Is it possible to read virtual memory even if /dev/kmem is not available? I know that I can recompile kernel to allow this file, but that's not the solution I'm looking for. Is there some tricky way I ...
2
votes
1answer
588 views

tmpfs and vm.swappiness

I have started tuning a bit Linux VM performance on my system (yes. I know that vm.swappiness=0 will kill kittens but I found 30-40 as much better for me as it improved my latency - probably at cost ...
6
votes
1answer
715 views

User Kernel split in 64bit Linux

What is the default user/kernel split in the 64bit linux ? I read Documentation/x86_64/mm.txt (which someone pointed out), but I could not make out. Can somebody provide a direct answer (something ...
7
votes
1answer
8k views

Setting /proc/sys/vm/drop_caches to clear cache

As part of doing some cold cache timings, I'm trying to free the OS cache. The kernel documentation says: drop_caches Writing to this will cause the kernel to drop clean caches, dentries and inodes ...
5
votes
3answers
2k views

How to set up properly zram and swap

I'm configuring & compiling new 3.0 kernel. One of the goodies I planned to use for some time (by patching) that was merged into 3.0 is zram. Is it possible to set both hdd swap and zram swap so ...