The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
0answers
10 views

VMap Fedora 12 equivalent

I'd like to see how Fedora manages the Virtual Memory. I was used to VMap on Windows, however I can't find anything to download on Fedora 12 that could fit my needs. I can't find something like ...
3
votes
1answer
35 views

program executing for 2 days

I have a java program which implements the Hungarian algorithm. I made changes to the existing code in such a way that the input is read from file. I have a pretty huge input around 32,000 rows for ...
1
vote
1answer
52 views

Iotop shows swapin but vmstat si is zero

I run iotop and vmstat on a CentOS server. Under some load the iotop swapin column starts to display values around 5% to 20% for some processes. But vmstat si an so remain zero. I thought that vmstat ...
2
votes
2answers
48 views

Is there a good benchmark for virtual memory performance?

Aside from running memory benchmarks, has anyone used a benchmark that stresses the virtual memory subsystem? I'm curious to see how performance differs in virtual machines with and without EPT ...
1
vote
1answer
62 views

Do VmPeak & VmHWM have any measurement periods?

While reading kernel documentation I came across VmPeak & VmHWM, and it's a bit unclear to me. VmPeak in /proc/<pid>/status is described to be peak virtual memory size. Peak for what ...
0
votes
1answer
85 views

How to find the page size, associativity, and TLB size and number of entries?

Under an Ubuntu system, are there commands for looking up: the page size, n in n-way cache associativity, TLB cache's size and number of entries?
2
votes
3answers
80 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 ...
1
vote
1answer
87 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 ...
2
votes
1answer
85 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
965 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
61 views

kernel address space mappings with respect to virtual address space - a question based on text by Robert Love

In LKD 3rd edition, chapter 12 under Zones, Robert Love says: In particular, Linux has to deal with two shortcomings of hardware with respect to memory addressing: Some hardware devices ...
4
votes
1answer
111 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
1k 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
127 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 ...
0
votes
0answers
117 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 ...
1
vote
2answers
212 views

Viewing virtual memory usage

I started 700+ threads from a single program And my /proc/[PID]/status file shows the following output. VmPeak: 7228104 kB VmSize: 7228104 kB VmLck: 0 kB VmHWM: 3456 kB VmRSS: ...
1
vote
0answers
55 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
1answer
230 views

private memory calculated by pmap, a combination of virtual memory size and resident memory size?

You can use the ps command to get the virtual memory size and the resident memory size of a process: $ ps aux | grep apache2 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME ...
2
votes
1answer
184 views

pmap and memory usage

On Ubuntu 12.04, I have several apache2 processes running (the 1130 parent and the children it spawned), and as you can see, they have around 300-400 mb of virtual memory and 10 mb of resident memory: ...
1
vote
0answers
115 views

Understanding the Buddy Allocator [closed]

I have a conceptual doubt in understanding the way Linux Kernel manages Free blocks. Here is what I interpreted through reading so far. The Buddy Allocator implementation is allocation scheme that ...
-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
2answers
439 views

Change the size of my memory pages?

I would like to change my kernel's page size from 4KB to 4MB as I have had a large addition of RAM to my computer and I am never running out of anymore. The idea is that programs requiring large ...
0
votes
0answers
41 views

Is ZONE_NORMAL mapped on the kernel space only?

In several textbooks I've stumbled upon a strange phrase, that "if the amount of physical RAM available is small, the ZONE_HIGH might not exist at all and all the memory would belong to ZONE_NORMAL". ...
2
votes
1answer
493 views

Why is brk(0) called?

On a first shell I run the command tail with no argument. On a second shell I kill the first tail using strace to monitor the system calls. qdii@nomada ~ $ strace kill 1713 execve("/bin/kill", ...
1
vote
3answers
452 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
225 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
1answer
147 views

What information exactly is in the access control bits of a page table?

I'm currently learning for an exam in operating systems. This includes learning some basics about page tables, which lead me to the question Why using hierarchical page tables? which mentions that ...
2
votes
1answer
580 views

Huge page and performance improvemnt

How can using huge page improve performance? I have read that huge pages improve performance by reducing TLB lookups and reducing the size of the page table. Can someone tell me how this helps with ...
1
vote
2answers
203 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
676 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 ...
5
votes
3answers
2k views

Why is the theoretical RAM limit for RHEL 6 128 TB and how is this determined?

I'm studying for RHCSA and am confused by a statement I came across in some training material: There is no practical maximum RAM, as theoretically, you could run 128 TB of RAM on RHEL 6. But ...
1
vote
0answers
281 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 ...
3
votes
2answers
218 views

Misleading explanation of Virtual Memory in TLDP

I'm completely confused about explanation of virtual memory in TLDP: http://www.tldp.org/LDP/tlk/kernel/processes.html#tthFtNtAAB They say: Each individual process runs in its own virtual ...
0
votes
1answer
509 views

What does m represents in VIRT column using TOP command

When we run top command it shows all the processes information. But under VIRT column there is m written against some values what does that m represents, is it MB . If yes then why it is only showing ...
4
votes
3answers
123 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 ...
0
votes
1answer
957 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 is ...
-1
votes
2answers
479 views

What would be a light weight, memory non-intensive distro for virtual server use?

I have come across several posts talking about light weight distros from a general context, but none of them are really hitting the nail on the head for me. Specifically, I have PHP script that I run ...
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
405 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 ...
1
vote
2answers
215 views

Sudden burst in free memory

I'm experiencing some strange memory management behaviour on Squeeze with Kernel 2.6. I'm trying to get to the bottom of this with nmon. Sometimes this will freeze up the system for 30 seconds to 5 ...
3
votes
0answers
473 views

Memory mapping of the Linux kernel : 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 ...
2
votes
1answer
127 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
399 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
2answers
685 views

How much RAM can an application allocate on 64-bit x86 Linux systems?

Is it true that a single application can not allocate more than 2 GiBs even if the system has GiBs more free memory when using a 32-bit x86 PAE Linux kernel? Is this limit loosened by 64-bit x86 Linux ...
2
votes
1answer
655 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 ...
15
votes
1answer
9k 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
241 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
549 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 ...
5
votes
1answer
606 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 ...