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

1
vote
1answer
26 views

How to find the page size of physical memories from userspace?

I want to understand the page size, sector size, block size (if applicable) of a usb flash drive. Is there a way for me to inspect those with Ubuntu? mount /dev/sda1 /mnt ? umount /dev/sda1 Edit ...
0
votes
0answers
22 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 ...
1
vote
0answers
11 views

How can Profile/Benchmark ram performance?

Effectively I would like to know if my memory hardware it a bottleneck of my system performance. I am dealing with really old hardware (late 2000), mind you. If there is room for improvement I would ...
3
votes
1answer
38 views

How do I forbid access to physical memory in Linux?

I'm on an embedded system (Zynq from Xilinx. It uses ARMv7, Cortex-A9), and running Linux. I need to ensure that no access to a certain physical memory range is ever made, either accidentally by the ...
1
vote
0answers
11 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
0
votes
0answers
6 views

Page Fault Frequency Algorithm - Compute number of frames and mean resident set

I'm reading about Page Fault Frequency algorithm but I don't understand how can I compute the number of frames. For example I have my reference string: 112233444412412214432255543 and control ...
0
votes
1answer
34 views

Substantial portion of memory used is not accounted for by user processes

I recently installed a copy of Ubuntu Server 14.04.2 LTS on a cluster. All appears to be working fine, but a large portion (around half) of our total available RAM is being used. I.e., when I run ...
0
votes
0answers
56 views

How to determine the memory usage of a single process?

There a few helpful scripts out there, which give some useful information. But I would like to calculate those values myself. I am interested in values like USS and PSS. I already had my first attempt ...
3
votes
2answers
54 views

Sum the memory usages of all the processes of a program?

How can we sum the memory usages of all the processes of a program? For example, I have opened many Chrome tabs for webpages, and each tab runs a different process. How can I get the total sum of ...
12
votes
8answers
3k views

Memory problems when compressing and transferring a large number of small files (1TB in total)

I have 5 million files which take up about 1TB of storage space. I need to transfer these files to a third party. What's the best way to do this? I have tried reducing the size using .tar.gz, but ...
1
vote
2answers
25 views

What unit is used for the memory values from top command in Linux?

I have the following snippet shown as my top command output. One real quick question here being, the values of Mem are shown in what granularity? Are they the number of bytes? Mem: 8191488k total, ...
-2
votes
1answer
35 views

Memory utiization

I use free -m to check memory status. In this pic we see total used & memory. I want the result in %. Like Used memory - total memory x by 100. And whenever I want to check the memory status, it ...
1
vote
3answers
271 views

How to calculate the memory consumed by a “C” program in linux

I have written two C programmes one is using function pointer, and the other without function pointer. Now i want to know the memory consumed by the two programmes , to see how memory can ...
0
votes
2answers
64 views

Linux Mint 64 bit eating ram

I have a Mint 17.1 install. It has 2x2Gb memory sticks. I have verified this with sudo dmidecode --type memory. My problem is that I don't see all the memory I expect.I would expect 4194304 kB. (i.e. ...
7
votes
3answers
416 views

When a process forks is its virtual or resident memory copied?

The standard way of making new processes in Linux is that the memory footprint of (parent) the parent process is copied and that becomes the environment of the child process until execv is called. ...
0
votes
1answer
18 views

/dev/mapper/vg00-var maxing out

Over the past few years we have had multiple Linux servers have the same problem time and time again: our /dev/mapper/vg00-var folder maxes out at 100%, which means all sites on the server die. We ...
1
vote
2answers
40 views

CRON Job To Execute Command On Low Memory

I have a situation where I may need to execute an SAP command line tool hdbsql when memory gets too low (to help clean out the HANA table cache). I'm not well versed in Unix/Linux, and was wondering ...
0
votes
0answers
64 views

Kill the process and restart server when memory is exceeded - bash and cron

I have a site on webfaction, using django and python. However, I have problem with memory. The problem arises, because I use external library, that can run forever (consuming much time and memory). ...
1
vote
0answers
11 views

How to recover data after memory module errors [duplicate]

My linux PC has suffered the occasional application crash, desktop crash, and kernal panic over the last few months. I also started noticing error dialogs on login, and some parts of the desktop do ...
3
votes
1answer
50 views

Linux doesn't drop FS Caches. Instead Memory starts Swapping

I'm quite confused about this behaviour of linux memory caching. total used free shared buffers cached Mem: 15953 14188 1765 64 ...
0
votes
1answer
89 views

what does mean by HardwareCorrupted, DirectMap4k, DirectMap2M fields in “/proc/meminfo” file of Linux?

I am looking for description of following terms: HardwareCorrupted, DirectMap4k, DirectMap2M fields in "/proc/meminfo" file of Linux. I could find the following description for the fields from ...
1
vote
1answer
41 views

Who are the Linux Memory “subsystem” developers?

After an hour of googling, I still cannot find Linux Memory subsystem developers contact e-mail. Question: Where is the webpage that shows who develops the Linux kernel, specifically the Memory ...
0
votes
1answer
24 views

What is kernel memory and user memory? (question about the term kernel page and the page cache)

Today, I have read through some documents about file system (http://tekrants.me/2014/07/14/linux-file-system-write/). And the term kernel page is mentioned several times in this article. I am now ...
2
votes
0answers
58 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 ...
0
votes
1answer
77 views

git Fatal: Out of memory, malloc failed on branch push

I know this has been asked a lot but I did not manage to get any solution to solve my problem. My coworker assigned me on a new project. The application is hosted on test Debian server with git ...
0
votes
0answers
22 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 ...
2
votes
2answers
22 views

Utility which gives line from /proc/id/maps by specific address

Is there an utility that gives me specific line from /proc/id/maps when given specific address from this process? For example when given 0x7fb4a84f6008 it returns: 7fb4a84f6000-7fb4a84fd000 r-xp ...
3
votes
0answers
46 views

Limit the inode cache used by a command

I want to run a task with limits on the kernel objects that they will indirectly trigger. Note that this is not about the memory, threads, etc. used by the application, but about memory used by the ...
3
votes
1answer
33 views

Can swap space accomodate single process?

From what I understand, the swap space can be used to swap out inactive processes to free up memory. But can a single process take advantage of swap space? For example, if my system has little memory, ...
10
votes
1answer
108 views

Does anyone actually use and benefit from transparent huge pages?

I've been struggling with transparent huge pages performance issues of late, and noticed many database systems recommend turning it off. I am talking Oracle, Postgresql, MySQL, Cassandra, NuoDB, ...
1
vote
0answers
104 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 ...
3
votes
1answer
32 views

Does /proc/[pid]/status always use kB?

Particularly, does proc always list the VmRSS value in kB? I can't find a solid answer on the documentation, although it appears that it sticks to one unit.
1
vote
1answer
39 views

How to check if allocated memory was freed?

Does anyone know which command I need to enter on the terminal, so I can check whether all allocated memory was successfully freed?
5
votes
1answer
39 views

What memory is not used by processes and freed by `echo 3 > /proc/sys/vm/drop_caches`?

Without programs open, my computer uses about 512M of memory. Yesterday, I had nothing open, yet 2 GB of mem use (used - cache = 2153): total used free shared buffers ...
0
votes
0answers
20 views

How to draw memory consuption plot

I am running one pipeline on ubuntu 12.4 platform and i would like to draw a memory consumption plot. Can anyone give some idea some idea. Thanks advance.
1
vote
2answers
81 views

What proportion of memory does the Linux kernel use of the installed RAM?

I'm developing a compute cluster and I'm trying to determine the maximum amount of RAM I can give to a single process. On a machine with 16GB of ram, the answer is that I can allocate (and touch) ...
1
vote
1answer
42 views

How are the values represented with the “free” command

I am interested in the totals of the 3 lines. Specifcally, if the "used" values can be counted as what's going on in real time, or if that's just a running total since the OS was started? How does ...
2
votes
1answer
62 views

How to track down the source of I/O spikes?

I am using Linux as a desktop, and keep getting seemingly random I/O Spikes. The machine becomes unusably slow. At first I thought it was just that I don't have enough memory. But looking at the ...
0
votes
0answers
58 views

How can I find how much RAM are VMware Player VMs using on Linux?

I am running Debian Jessie 64-bit on a computer with 8 GB of RAM. This is my memory usage according to htop(with a fairly large Firefox session) before starting a guest VM that has 4 GB allocated. ...
21
votes
4answers
829 views

Making Linux read swap back into memory

The Linux kernel swaps out most pages from memory when I run an application that uses most of the 16GB of physical memory. After the application finishes every action (typing commands, switching ...
2
votes
0answers
58 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 ...
4
votes
2answers
44 views

Determining maximum memory usage for an extremely short process

I have a program I am testing and I need to determine the maximum memory used by the process. I know that in general ps -aux can give me this information, but the process runs in under 1/10 seconds ...
1
vote
1answer
62 views

Kernel's cached memory can't be freed, even dropping caches

All host's memory is cached and there's no way it can be freed. /dev/ram1 is used for storing testing files, but after each build we run freeramdisk. $ freeramdisk /dev/ram1 $ echo 3 > ...
1
vote
0answers
48 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 ...
0
votes
1answer
96 views

Process Being Killed due to low swap

I'm running a python (2.7) script on mac osx yosemite. The script is fairly computationally intensive, certainly bumping up against my machine's RAM limitations. The computer crashes and restarts ...
4
votes
1answer
70 views

Why am I missing 2% of my ram

I am running grep MemTotal /proc/meminfo to determine the RAM installed on a system, however instead of reporting a number corresponding to an even number of GB, it is slightly off. I.e. on my 64 GB ...
1
vote
0answers
89 views

How can I find which process is eating my memory? [duplicate]

My Linux system sometimes reaches 90% memory usage. We are running some Java processes, and top shows overall usage as 45%. If I stop the running processes, usage reduces to 5-10%. I want to list ...
6
votes
1answer
171 views

Is there any relationship between memory fragmentation and whether or not swap is enabled on a system?

One of the answers to Do I need swap space if I have more than enough amount of RAM? got me wondering if there is any relationship between memory fragmentation as measured by cat /proc/buddyinfo and ...
1
vote
1answer
27 views

Distributing CPU cores between cgroups and outside world

Is it possible to manage access to CPU cores in a similar fashion that memory limiting works? In particular I need to be able to dynamically create and destroy cgroups that will limit a particular ...
0
votes
0answers
26 views

Is there any dynamically produced .log file showing up the memory usage on FreeBSD?

I am using FreeBSD 10.1-RELEASE and I was just wondering if there is any .log file produced by default from the system because I am using ELK and I want to pass this file to logstash and then ...