In computing, memory refers to the state information of a computing system, as it is kept active in some physical structure.
0
votes
0answers
7 views
How is available memory calculated on centos? [duplicate]
I have two separate centos boxes, a 5.9 and a 7.0 box. I'm writing a piece of code that needs to look at the amount of available memory on the machine. For portability reasons I'm looking at the ...
0
votes
1answer
13 views
How to reduce the memory utilization by lsof.log?
lsof.log is consuming lot of space. The log file size has increased up to 7 GB.
How do I optimize the space utilization by lsof.log file. Should I delete it on regular basis or is there a way around....
0
votes
0answers
20 views
mySQL memory usage increasing day by day
I'm using New Relic to monitor our servers, one for web, another for mysql, and the mySQL one worries me because the physical memory usage increases everyday. Every week it uses up 2% more than the ...
3
votes
0answers
31 views
OOM Killer keeps killing mysqld
I run a CentOS vps to host a few websites with cPanel/WHM but every now and then, my websites stop working because it can't establish a connection to the mysql database.
Looking at the messages log, ...
0
votes
0answers
40 views
How to scan IP address for hardware information?
If I have an IP address on my local network, is there a linux command or utility to scan it to reveal information about its processors and memory?
3
votes
1answer
25 views
Measuring peak memory usage of many processes
I have a bash script that calls various other scripts, one of which has a bunch of commands that launch scripts inside a screen session like this:
screen -S $SESSION_NAME -p $f -X stuff "$CMD\n"
...
2
votes
0answers
68 views
OpenStack/KVM - monitor memory ballooning from within the affected VM
I have the same question like an other user on serverfault.com, but not for VMware. We use KVM/OpenStack.
Is it possible to detect from within a Linux VM that memory is being
reclaimed by the ...
3
votes
1answer
27 views
How can a process eat more/less virtual memory (according to top) then the page size makes available?
The operating system runs on physical memory and provides an individual, virtual address space to each process, for storing data. To make the transfer between virtual and physical memory easier.
The ...
1
vote
0answers
14 views
Discrepancy between shared memory from /proc/meminfo and ipcs
Running free -hm outputs:
total used free shared buffers cached
Mem: 15G 15G 389M 321M 169M 11G
-/+ buffers/cache: ...
0
votes
0answers
23 views
In Linux, How much physical memory is allocated for stack when a program is run?
How is vma_start and vma_end determined for a user-space process stack? Is it defined at compile time?
I guess when the program is run , the kernel would allocate, physical memory = vma_end - ...
4
votes
1answer
69 views
On Linux, (how) can I “hot-unplug” memory?
This is what I've tried:
sudo zsh -c 'echo offline >/sys/devices/system/memory/memory109/state'`
and got the following error:
zsh:echo:1: write error: device or resource busy
Do I perhaps need ...
0
votes
1answer
30 views
unreasonable memory usage [closed]
I run a multi-process python program on CentOS. The program doesn't require a lot of memory. The wired thing is my 64GB memory machine is almost out of memory and have no ability to run other ...
1
vote
1answer
46 views
Accessing /dev/mem freezes Ubuntu
I am using the latest Ubuntu Linux with a custom kernel (4.2.0-36-generic), in which I have disabled the CONFIG_STRICT_DEVNEM, because I need to dump and search some terms in memory during a project.
...
0
votes
1answer
19 views
Shell Script (in Crontab) : Saving Memory print into text file always gives blank
In my CentOS, i'm trying to print the CPU USAGE and FREE MEMORY output numbers into a text file. But when i typing in the terminal, it is all fine. But when it is executed via the crontab the MEMORY ...
4
votes
1answer
35 views
Decline malloc for memory hungry application
Is it possible to deny malloc instead of killing process selected by OOM killer? I think out of memory can be at least logged by the process which is better than being killed. Also, part of the ...
0
votes
0answers
24 views
GlusterFS : Kernel Out of memory
I'm running GlusterFS 3.7.6 on 3 Nodes (3 CentOS Servers) to serve as Apache WebServers. Nowadays i'm keep getting errors something like:
kernel: Out of memory: Kill process 30883 (glusterfs) score ...
0
votes
0answers
40 views
How to see which PHP script is consuming the most memory? [migrated]
I'm trying to see which of my PHP scripts uses the most memory and CPU when it's viewed by a browser. I can only find methods like top and free that show per-process usage, but I need it narrowed down ...
2
votes
0answers
32 views
Creating CPU/GPU/Memory load average history
In our research group we are running a computing server for deep learning with a number of NVIDIA Titan X graphics cards and quite some CPU cores. Given that it is a research lab and we have ~10 ...
5
votes
4answers
2k views
How to tell if a file is memory mapped?
I am confused about memory-mapped files, so I have a couple of questions which I would be very glad if you could help me out.
Let's say I browse to a directory in my file system and there is a file ...
-1
votes
1answer
30 views
Find heap memory after process
How can we find heap memory of a process(in Linux) which we ran three days before. Will it be stored anywhere? by chance
1
vote
0answers
39 views
What is the meaning of `shared` memory in the `free` shell command?
The fourth column in the output of free is named shared. On most outputs I can see in internet, the shared memory is zero. But that's not the case on my computer:
$ free -h
total ...
0
votes
2answers
60 views
OOM situations handled horribly - better to disable swap?
I am running Ubuntu 16.04.1 LTS, with a 4.4.0-36 kernel. I don't think that this matters a lot though, because I've seen terrible kernel behaviour across many distributions/kernel versions.
Consider ...
0
votes
1answer
60 views
Red hat 6 (guest host from vmware) lost memory
VMware Virtual Center 2.5.0
Resource allocated to GuestOS: RHEL 5 (64-bit)
Memory: 4608 MB
Memory overhead: 261 MB
[root@stend-mcstesb /]# cat /etc/redhat-release
Red Hat Enterprise Linux Server ...
-1
votes
1answer
417 views
Kali won't save. Adding Persistence to Kali Linux Rolling
Normally I use my Kali Linux live usb boot using a 32gb usb stick. This time I wanted more space so I successfully wrote Kali Linux 2016 iso image onto a new 64gb stick using Win32DiskImager.
I have ...
1
vote
1answer
45 views
buffer (not cache) usage growing, find the process using it
I've a system where the buffer usage is growing over the time.
I trace it while monitoring the memory usage with dstat ex:
# dstat -t -m
----system---- ------memory-usage-----
time | used ...
0
votes
2answers
166 views
Linux Inactive memory
When I fire command vmstat -s on my linux box , I got stats as :
vmstat -s
16305800 total memory
16217112 used memory
9117400 active memory
6689116 inactive memory
88688 free memory
151280 ...
1
vote
1answer
76 views
How heavy is elementaryOS over classic Ubuntu? [closed]
I feel that with all the additional apps pre-installed, and relying heavily on deriving elements from Ubuntu and Gnome, elementary must be heavy.
So I would like to know an as-quantitative-as-...
2
votes
0answers
58 views
11 GB of GPU RAM used, and no process listed by nvidia-smi
In my GPU #0, 11341MiB of GPU RAM is used, and no process is listed by nvidia-smi. How is that possible, and how can I get my memory back?
Thu Aug 18 14:27:58 2016
+-----------------------------------...
3
votes
1answer
36 views
Doubt about mmap
I'm trying to build a cache package for golang that relies on mmap to store large amounts of content in memory, even more than the system has.
The cache doesn't need to be persistant; every time the ...
0
votes
1answer
28 views
can i use the udev folder to copy my files so i can free up my /dev/sda1
I have the below space utilization can i move some of my files to udev to free up my space ?
Filesystem 1K-blocks Used Available Use% Mounted on
udev 15432144 8 15432136 ...
1
vote
2answers
46 views
Why QEMU can't use the linux memory buffers memory?
I have a system without swap, and 16 GB of memory.
To my knowledge, Linux dynamically allocates the buffers memory allocation, depending on how much free RAM there is in the system.
In this very ...
2
votes
1answer
35 views
When does the swap get emptied, after being used?
I just ran 4 instances of a memory (and CPU) intensive task, which pretty much ate up all 16 GB memory and took a big bite out of the swap (2GB) as well. Now that the program is finished I noticed (...
0
votes
2answers
82 views
How much disk space I need for Win10/Kali dual boot?
So, I recently got a new laptop with a 256 SSD and I want to dual boot Win10 and Linux Kali on it. How much space do Kali and Windows need? Just the operating systems after installation.
Thanks.
0
votes
0answers
19 views
Amazon EC2 medium instance memory consumption doesnt make sense
Above is a screenshot of the Linux command top sorted by Memory. Its a simple Ningx/Mysql setup to run a web app Im testing. The Linux version is Ubuntu 14.04 and is running on Amazon EC2 as medium ...
1
vote
1answer
29 views
Accessing a file system cache that is not in ram but i/o to disk is already issued
Linux has a file system cache where it keeps as many data as possible in RAM as a buffer.
A thread tries to read a page block in file system. If the page is in cache, it fetches the data from the ...
0
votes
0answers
15 views
RES shown by 'top' not matching with CODE + DATA
I am trying to diagnose the memory consumed by processes. I am running top and as per the man page of top, RES should be = CODE + DATA, but in my case it is not matching.
I am seeing that VIRT = RES +...
1
vote
1answer
80 views
how do I know if and why linux is killing my processes?
I'm working on one of amazon's linux distros (4.4.11-23.53.amzn1.x86_64). (1gb ram)on that instance
I am running node.js with the forever module. (It makes sure to restart the node.js process if it ...
0
votes
0answers
153 views
How to Study Effect of zram on Memory Size and Paging?
Situation: to study the effect of zram's virtual memory compression (wiki) on memory's size and its speed; when swap is not on HDD/SSD; use zswap if you want to have swap on HDD/SSD
Motivation: I ...
1
vote
0answers
93 views
“swap cache” of vmstat vs. “SwapCached” of /proc/meminfo
On my Fedora 24, I executed two commands to examine the memory information, however, I got two different results about swap cache's size.
The first command is as follows:
[root@localhost ~]# vmstat -...
6
votes
3answers
302 views
Less RAM Available than installed on Centos 7
I can't seem to figure out why do I have less RAM usable than installed. I am running 64bit Centos 7 with 1 RAM module of 4096MB on a Lenovo x230. Some information from the machine in question:
$ ...
2
votes
1answer
29 views
performance comparison of multiple commands excutions
I've got three different programs written in three different languages, and I'm trying to compare their performance in terms of runtime, and memory consumption. What I'm looking for is some command ...
1
vote
0answers
54 views
Is there a more efficient way of defragmenting Linux memory other than rebooting?
I am running Gentoo Linux with kernel 4.4.8-hardened-r1, QEMU-KVM version 2.5.1 and 3227 MB of system-visible RAM (without considering RAM taken by BIOS and my AMD APU's graphics). I have a VM that ...
5
votes
2answers
154 views
Where the remaining memory of vm.overcommit_ratio goes?
If I disable memory overcommit by setting vm.overcommit_memory to 2, by default the system will allow to allocate the memory up to the dimension of swap + 50% of physical memory, as explained here.
I ...
0
votes
0answers
58 views
Questions on /dev/mem, dumping using dd, and .bin and .rom formats
Following @ack 's answer on How to dump BIOS data to a file I would like to know:
1) when one is dumping memory from /dev/mem, is the file data in binary or some other format?
I have done a dump ...
0
votes
0answers
62 views
Flash an OS to an eMMC, from uSD with larger capacity than eMMC
With a Debian distro installed into a 8GB uSD (although uSD memory is almost free), I need to flash this distro into the 4GB eMMC of a BeagleBone Black board, based on AM335x SoC.
The S2 switch ...
0
votes
0answers
15 views
i whant to clean the shared and the buff/cache memory [duplicate]
I want to clean the shared and the buff/cache memory, I'm not expert in linux but I want to learn.
I have 2 gb of ram
when i go through firefox the memory used is 900-1000 mb is this normal??
...
1
vote
1answer
49 views
Embedded Linux OOM - help with lost RAM
I have little Linux system with 256MB RAM. I'm little bit confused, where the RAM may be lost? It is running old linux kernel 2.6.38 and I'm not able to ubgrade it (some specific ARM board).
SHM and ...
2
votes
0answers
70 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 ...
1
vote
2answers
58 views
How to use top in a shell script to track memory consumption of a process?
I was wondering if there was a way to use top or another program to track the memory consumption of a script I will be running. I was using
runtime.totalMemory - runtime.freeMemory
But that's ...
5
votes
0answers
48 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 ...