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

0
votes
1answer
13 views

Cached Memory but swap is being used

I've got a VM with 16gb of memory and recently it's been using some of the swap space. At first I thought this was because it was using all the memory but then I read some articles about the Cached ...
3
votes
1answer
20 views

Shared library mappings in /proc/pid/maps

Why does /proc/pid/maps contain a few records for the same library ? Here is an example: 7fae7db9f000-7fae7dc8f000 r-xp 00000000 08:05 536861 ...
1
vote
1answer
8 views

upstart jobs - privileged vs unprivileged

On one of my VMs, some upstart jobs were failing, and when I checked df, showed that I had run out of disk-space (Use% was 100 on /dev/sda1). What I did not get is: the jobs which were running with ...
1
vote
1answer
23 views

Why is IO so high when almost out of memory

On my work laptop with an SSD and no swap, I sometimes run out of memory when running RAM-expensive applications (virtual machine, etc). When that happens, the system becomes slow (expected) but what ...
1
vote
1answer
26 views

Memory usage of a given process (using Linux proc filesystem)

I want to know which files from /proc directory and which fields of these files I need to calculate the memory usage of a given pid. I've been using the "stat" file and the "vsize" parameter that is ...
4
votes
4answers
50 views

How do see the memory used by a program in ubuntu?

How can I see the raw memory data used by an application ? Like , suppose I have a file name something.sh . Now I run the command ./something.sh , and then I want see all the data its accessing in ram ...
0
votes
0answers
5 views

How to troubleshoot High VIRT and RES memory on a Standby Server

We currently run TIBCO EMS on our RHEL6 servers, it is Active-Passive setup, for some reason we are seeing a really high VIRT and RES usage by the standby instance (approx 198GB). The application ...
1
vote
1answer
16 views

tstime and memory usage

So I am interested in measuring the high-water memory usage of a process. I would love to be able to use tstime but am having troubles figuring it out. Does it work in Unix? When I go to ...
2
votes
1answer
45 views

How run free command by crontab

I want to run this command: free && sync && echo 3 > /proc/sys/vm/drop_caches && free -m by cron that why I'm able to free my RAM and cache in ubuntu system. I'm using ...
3
votes
2answers
90 views

Memory usage of an infinitely looping shell script

So, I have a shell script for updating a MySQL database that looks something like this: #!/bin/sh mysql -h "localhost" -u "root" "-p********" "database" < "update.sql" sleep 5 sh $0 It sleeps ...
3
votes
2answers
72 views

Physical Address Extension - how do virtual addresses work?

I'm running Debian Linux. uname -m says i686 which means 32-bit architecture machine with pae flag enabled. getconf LONG_BIT is 32. Installed RAM capacity is 6GB. My /proc/cpuinfo has an entry ...
0
votes
0answers
35 views

Storage allocator out of space error on unix shell script

While running the script called abc.sh, following errors are thrown. abc.sh: line 226: storage allocator out of space on 64946176 byte request ( region 64329285632 segments 1981 busy ...
0
votes
0answers
31 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
1answer
24 views

Can I trust in memory information of dmicode?

I want to buy 16gb memory for my notebook. I ran dmicode and found this information: Handle 0x0005, DMI type 5, 20 bytes Memory Controller Information Error Detecting Method: None ...
0
votes
0answers
7 views

/proc filesystem - getting useful information

I'm trying to understand the values in /proc/PID/status. I want to calculate cpu% & mem% used by PID, similar to top bash command. For Memory percentage usage I can do the following (correct me ...
3
votes
1answer
43 views

Resource (CPU time and memory) limitation and termination of a process upon violation in Linux

The problem: Given a process, limit the resources it and its child-processes can use. I.e. set CPU time and virtual memory quotas. When the process group exceeds one of the limits, terminate it, ...
2
votes
1answer
54 views

What does Linux spend memory on other than userland, caches and slab?

I have a system with 1 GB of physical RAM. Right now, free shows the following memory usage: total used free shared buffers cached Mem: 1026360 863660 ...
2
votes
0answers
42 views

Which process wrote to which memory address? [closed]

Recently, I've been seeing a wide variety of memory-related crashes at work (C++ applications on Ubuntu 14.04). Our applications use a properietary third party library to interface with real time data ...
1
vote
1answer
51 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
37 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
17 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
55 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
24 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
19 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
43 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
63 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
57 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 ...
13
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
39 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
38 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
504 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
90 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
497 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
31 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 ...
2
votes
2answers
68 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
100 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
59 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
230 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
43 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
33 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
105 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
190 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 ...
1
vote
0answers
26 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
25 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
60 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
37 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
149 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
146 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
54 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.