In computing, memory refers to the state information of a computing system, as it is kept active in some physical structure.

learn more… | top users | synonyms

6
votes
0answers
209 views

Why are slab objects not reclaimed automatically

Everyday after a full system backup, various programs are failing with read errors until I run echo 2 > /proc/sys/vm/drop_caches to free reclaimable slab objects. For example, here's the output of ...
5
votes
0answers
26 views

How to specify memory region for ramdrive

We are setting up a linux based benchmarking cluster. Each node is going to be a headless, diskless machine, booted via tftp, the OS copied to a local ramdrive, and the same ramdrive is used as local ...
4
votes
0answers
34 views

Why does /proc/*/status not account for all swap used on a system?

I have a system that has been swapping recently and am unable to account for all swap that is shown as in use by tools like 'free' or 'top'. Specifically, I can account for 19GB of 28GB swap used (...
4
votes
0answers
269 views

How to read the output of the show-memory-usage SysRq?

I couldn’t find any (recent) documentation on reading the output of the show-memory-usage SysRq (Alt+SysRq+m). So what can one learn from looking at it? Here is an example output form my box (Kernel ...
4
votes
0answers
408 views

What does hierarchy support do in cgroup?

cgroup has 2 options for memory control: memory.use_hierarchy = 1 : use hierarchy memory.use_hierarchy = 0 : use flat hierarchy, according to this answer What is the difference between the two? I ...
4
votes
0answers
778 views

Are there any tools to test MTD/JFFS2 for Linux 2.4 kernels

I have some issues with a platform I support and I suspect memory problems. I wanted to check the Flash parts using some MTD JFFS2 test tools, I found a link to a bunch on this site. However they ...
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
27 views

Entire Harddrive to linux swap

I have an old hard drive that is less than 50Gb and a computer that only has about 4Gb of ram (and ~250Gb main HDD). I was thinking about using the second drive as an entire drive linux-swap partition....
3
votes
0answers
302 views

Boot rescue kernel at high memory address using kexec on arm

Summary: Crashkernel boots at 512MB address in RAM with kexec -e/-l but not with kexec -p - why? Embedded platform with Marvell Armada XP (MV78460) (ARMv7 with 4 cores) and 1GB of RAM. production ...
3
votes
0answers
127 views

Process killed by OOM killer when plenty of memory apparently free

I'm working on an embedded ARM-based platform. 32-bit, 512MB of RAM, no swap. Linux 3.10.53 (some variety of Ubuntu, if that's relevant). Some code I'm working on is getting consistently oom-killed, ...
3
votes
0answers
95 views

Memory consumption over variable period of time

There are a number of questions on this StackExchange about memory consumption, notably: How to check which process is using most memory How to display top results sorted by memory usage in real ...
3
votes
0answers
38 views

Which parts of Memory can Swap Support

For this question, "swap" does not include RAM and only refers to the configured space on the disk. According to, http://www.ualberta.ca/CNS/RESEARCH/LinuxClusters/mem.html, a program's memory usage ...
3
votes
0answers
190 views

Limit system processes using cgroups

My server runs several dozens of processes that are not in my control (mostly monitoring software). According to my application logs, sometimes some of the third party processes try to allocate too ...
3
votes
0answers
609 views

is THP good or bad for MySQL Server?

Linux kernel new feature called Transparent Huge Pages (THP) which is by default enabled on CentOS 6.x and above OS. Is THP good for MySQL DB machine? I am trying following to disabled THP but seems ...
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
245 views

Why message queues are not being used for any system level applications in Ubuntu OS?

In my Linux machine, when i run 'ipcs' command, I have the below information listed srinivas@srinivas-G41MT-S2:~$ ipcs -a ------ Shared Memory Segments -------- key shmid owner ...
3
votes
0answers
406 views

VMO Changes After Adding New RAM To AIX?

We have a server at a client site running AIX 5.3, which we just up the RAM to 32GB, from initially 16GB (if I'm not mistaken). This server is our Application server running J2EE applications on top ...
2
votes
0answers
37 views

GNU/Linux OOM (out of memory) freezes - solution ideas

Explanation While working with older machine with swap on and 2 GB ram, I frequently encounter behaviour well described as freeze: here, what is the best way to prevent out of memory oom freezes on ...
2
votes
0answers
37 views

OOM Killer: Processes have a score of over a 1000

All top links when Googling for OOM score seem to indicate that the values must be between -1000 and 1000. I tried to verify that with a simple cat /proc/*/oom_score | sort -n | less and I ...
2
votes
0answers
34 views

Any way to specify process to call on Linux when OOM activates?

On my embedded system I'd like to record when the system OOM killer actives, e.g. by setting an env. variable in u-boot. Is there any way to specify a hook function to call on the OOM event?
2
votes
0answers
321 views

Is unreclaimable memory allocated to slab considered used or available cache?

After evaluating /proc/meminfo, I see the following information: $cat /proc/meminfo MemTotal: 197852592 kB MemFree: 64755992 kB MemAvailable: 65655112 kB Buffers: 4388 kB ...
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
263 views

Portable way to parse /proc/meminfo

I'm having trouble finding a generic code that work, here, for both CentOS 5/6 and CentOS 7 versions pc the /proc/meminfo file. I Want to compute the "Real Used memory" like free does. (amounts ...
2
votes
0answers
304 views

How can the RES memory reported for a Java process be higher than the VIRT memory?

I've been monitoring a Java process (Oracle Weblogic) using TOP and have observed that sometimes the following will happen: RES will increase from it's usual stable level of 2,097,152 KB up to ...
2
votes
0answers
63 views

What uses Linux “application memory”?

Just for fun, I wanted to watch what ls -lR / does to my "buffers" memory on a Linux system. As expected, the value increased. But I noticed that the "application memory" (i.e. "used" - (buffers + ...
2
votes
0answers
115 views

Cgroups - memory subsystem

I want to set the memory.limit_in_bytes parameter for a control group and disable OOM, so processes freeze when the limit is reached. But i want to change that limit dynamically, if there is more ...
2
votes
0answers
127 views

Getting non-stored password from Icedove

I've recently changed my mail password (because of Heartbleed), but I've forgotten the new one. When entering the new password in Icedove, I didn't think of clicking "remember password", but the ...
2
votes
0answers
430 views

Debian 64-bit sees less than 4GB of RAM

I have a Debian wheezy (7.4) amd64 virtual machine running under VirtualBox 4.3.10 on a Win7 x64 host with AMD A10-5700 processor. The virtual machine is configured with 16GB of memory (the host has ...
2
votes
0answers
523 views

What is the structure of Libvirt Qemu VM dump/save files?

I need to do some exploration of Qemu-KVM virtual machines physical memory (particularly I need to check the fact of the physical memory intersection). In order to do that I'm trying to save VM's ...
2
votes
0answers
161 views

Automatically memtest and then boot

Is there some way to reboot server, so it runs memtest (say, 1 or 2 passes) and then reboots back to Linux and writes report to some log? This feature in Windows Server 2012 helped me to diagnose bad ...
2
votes
0answers
150 views

Why does the kernel boot faster with less memory allocated?

This is not a important question, I'm just curious. Something strange happened, which isn't quiet clear to me: In the kernel command line, the amount of the memory can be set statically with the mem=...
2
votes
0answers
823 views

CentOS memory allocation

I was running my VPS with CentOS on 1G memory, but I saw the memory was getting "full" so I had 1G extra installed. This VPS is one I rent at a hosting company. That company did most of the ...
2
votes
0answers
541 views

Odd Inode/Ram cache drops happening in CentOS

I run a CentOS 5.7 machine (64bit) with 24GB ram and 4x SAS drives in RAID10 setup. This machine runs nginx/1.0.10, php-fpm & xcache. About a month back the RAM usage of this machine has changed. ...
2
votes
0answers
888 views

How to decide how much memory to allocate per core for MPI app GENE?

This is required information for some MPI using app that I am working with... From its Makefile template: #insert memory per core and uncomment the following line #PREPROC= -D'MB_PER_CORE=750' ...
2
votes
0answers
1k views

Linux kernel slab usage growing on embedded system

I'm in the process of QA/debugging a project on a custom embedded linux system. The problem we're VERY tight on memory, and even a couple megs can cause issues with our software. What I'm seeing (...
1
vote
0answers
39 views

Total memory decreased when increasing swap file?

I am running a low-end server with about 1GB RAM and I was trying to optimize my ram. But after increasing my swap file and emptying the buffers, my total ram, judging from free -m, have lowered from ...
1
vote
0answers
37 views

Possible slab memory leak related to bio and btrfs?

I'm currently running a rebuild on a btrfs NAS (~20TB) that had a drive failure. It's going to take a few days. My problem is about once every 24 hours the RAM filled up and the kernel starts killing ...
1
vote
0answers
42 views

How can I mount remove /dev/mem to local

This question is relate to this, but more general. Currently I mount remote root by sshfs sshfs -o sshfs_sync,sync_readdir,reconnect,follow_symlinks,direct_io,sync_read root@pi:/ pi /proc is ok, ...
1
vote
0answers
108 views

Memory Leak trackdown

I have a server running Red Hat Enterprise Linux Server release 6.7. The server runs a number of java processes including a tomcat server with nginx webserver. The server has 12 GB of ram allocated ...
1
vote
0answers
115 views

Creating a sparse (automatically expanding and contracting) swap file with hole-punching support

I have this crazy idea, and want to know the pitfalls of such an approach (or whether it can even work with no deadlocks.. etc). The goal is to create an automatically expanding and contracting ...
1
vote
0answers
20 views

How to check if an application uses my video card memory?

We can check the core, cpu utiliztion, memory etc of a particular process. Can we check if it uses video card too and if it is how much memory it is using?
1
vote
0answers
23 views

Working my way through dmesg output on a custom 3.5.4 kernel

Having read this thread here: What does the Virtual kernel Memory Layout in dmesg imply? It sounds like 'lowmem' is exclusively meant for kernel-space. [ 0.000000] virtual kernel memory layout: ...
1
vote
0answers
2k views

Bash session errors on commands: “fork: Cannot allocate memory”

I have a bash session open to a remote server and something is wrong. I created a directory "test" and touched the files inside touch 1 2 3 4 5. I then tried to copy the directory cp test/ test2/ and ...
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
48 views

How can I profile/benchmark RAM performance?

I would like to know if my memory hardware is a bottleneck of my system performance. I am dealing with really old hardware (late 2000). If there is room for improvement, I would like to upgrade. ...
1
vote
0answers
93 views

What is kswapd_low_wmark_hit_quickly from /proc/vmstat

What does this parameter mean? # cat /proc/vmstat | grep low kswapd_low_wmark_hit_quickly 2
1
vote
0answers
268 views

Ubuntu 14.04 using 100% swap space, with more than 40GB free memory, why?

I'm a bit at a loss trying to figure out why this would be the case. Can anyone provide some helpful ideas on troubleshooting this? $ free -m total used free shared ...
1
vote
0answers
141 views

Out of Memory with unused memory and swap

I have a strange error on my Raspberry Pi2. System is archlinuxarm. Short after boot (about 30 secs), the system states that it is out of memory, resulting in closing many applications, most time ...
1
vote
0answers
364 views

Java process gets killed frequently by OOM - Killer on upgraded hardware

I am running solr on an Ubuntu server along with 4 other java processes. Current index size is 30 GB. My solr process gets killed frequently in few hours. It clearly mentions that its an OOM killer. I ...
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 ...