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

2
votes
1answer
34 views

GNU Parallel Limit Memory Usage

Is it possible to limit the memory usage of all processes started by GNU parallel? I realize there are ways to limit the number of jobs, but in cases where it isn't easy to predict the memory usage ...
1
vote
1answer
27 views

take the DRAM performance of the processes into consideration when scheduling

The CFS scheduler in Linux schedules the processes based on the virtual runtime of CPU. But, the DRAM memory is the bottleneck in most of the emerging domains. Why not take the DRAM performance of ...
0
votes
1answer
21 views

Memory Required for SSH-only Linux Setup

I am attempting to set up a minimal Debian or CentOS installation for internal network access. The purpose of the setup will be to allow SSH access into the rest of the internal network—that's it. It ...
3
votes
0answers
14 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 ...
0
votes
0answers
39 views

Increasing ulimit stack size benefits?

Hello I'm new in Linux and at my work I have a server that runs a banking software. The company that made the software said that the stack size should be set to unlimited. Does this make the software ...
2
votes
3answers
74 views

Memory consumption Fail2Ban CentOS

Fail2Ban is using a huge amount of memory on my system (1.2 GB). There are several articles which describe how to reduce it. Below is an example for Debian. append the 1ulimit1 command to ...
0
votes
0answers
6 views

when I use ptrace to attach another process , the process I want to attached Crashed, Why? [migrated]

On Andorid device, i have got root permission. Then I use ptrace to attach another process , some application can be attached, and I can read its' memory successful, but some application will crash ...
1
vote
0answers
7 views

EACCESS writing /proc/self/oom_score_adj [migrated]

I'm trying to compile "slock" to implement some tweaks. It fails to start, on this: #ifdef __linux__ #include <fcntl.h> static void dontkillme(void) { int fd; fd = ...
3
votes
2answers
67 views

Less resource hungry alternative for piping `cat` into gzip for huge files

I have some files of which some are very large (like several GB), which I need to concatenate to one big file and then zip it, so something like this: cat file1 file2 file3 file4 | gzip > ...
1
vote
0answers
37 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 ...
5
votes
1answer
55 views

List all files that are present in the cache

This question answers to the question on how to find the what is part of cache. However, in the fincore executable you have to pass the filename to check if it is part of cache. Is there a tools or a ...
1
vote
1answer
42 views

Linux server Cpu,memory,swap,run que value to display in percentage

how to write a script to get a linux server below details: CPU |Memory |Swap |Run Queue Peak(%) Relative Avg(%)|Peak(%) Relative Avg(%) ...
1
vote
2answers
64 views

How to monitor use of Huge Pages per process

I'm trying to determine which process is using a large number of Huge Pages, but I can't find a simple Linux command (like top) to view the Huge Page usage. The best I could find was $ cat ...
1
vote
1answer
75 views

How to check which process is using most memory

When I check free in one of Prod server it showing 70% of memory is being used: total used free shared buffers cached Mem: 164923172 141171860 23751312 ...
0
votes
1answer
20 views

attaching to Unix shared segment

Can a UNIX program running as root attach to a shared memory segment created by another user with permissions allowing access only to creator?
1
vote
2answers
52 views

Find average CPU, vMem, sMem usage on 1, 5, and 15min

I am trying to find at time T the average CPU usage on 1, 5, and 15min, just like what you get from /proc/loadavg Same thing for virtual memory, and swap memory. I would be fine with a python ...
1
vote
3answers
104 views

Actual memory usage of a process

The following are the memory usage of mysql and apache respectively on my server. As per the output of pmap say, mysql is using about 379M and apache is using 277M. [root@server ~]# pmap 10436 | ...
0
votes
1answer
62 views

Opening files of size larger than RAM, no swap used.

I found myself asking this question while doing small experiments and reading upon how memory is managed in Linux. I have a 64-bit Centos 6.5 machine with 512M RAM and 1G SWAP. I created a 1GB file ...
0
votes
0answers
36 views

AIX Memory Limits

I cannot find these numbers anywhere on the IBM Web site or even random blogs that Google finds. Questions What is the maximum physical memory size a POWER7 CPU supports? What is the maximum ...
2
votes
1answer
31 views

How do I find the resident memory size of a process on busybox?

I run top on busybox and it shows all processes and their virtual memory size. How do I determine how much RAM is being used by each process?
13
votes
3answers
234 views

How to force Linux kernel to “freeze” (or nearly freeze) for a few hundred milliseconds

We are running a real-time process on a non real-time kernel (CentOS 6), and this is probably not going to change. We have a streaming video application that requires about 500 MB/s of PCIe traffic ...
1
vote
1answer
67 views

Why can't I see my file in RAM?

In nano, I created a simple text file named 'blue_pink_red_orange_green' with the following contents: red blue orange green pink I then opened the file again and did: sudo strings /dev/mem | ...
0
votes
0answers
30 views

Zone Normal range in system with 4G RAM

I have a 4GB RAM in my system. Following is my BIOS provided RAM map. [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009d7ff] usable [ 0.000000] BIOS-e820: [mem ...
1
vote
2answers
413 views

Using only 3.3GB but I have 8GB RAM even on Ubuntu 14.04 64bit

I have 2x 4GB(8GB) RAM installed on my motherboard and BIOS/UEFI can confirm it, but on Ubuntu 14.04 64bit only has 3424776kB or 3.266120911GB. uname -a returns: 3.13.0-36-generic #63-Ubuntu SMP Wed ...
1
vote
2answers
71 views

How to get a procesess's actual memory usage (including data in swap)

I'm trying to check how much memory strain a process is actually putting on the system, but ps, top and friends are almost useless for that purpose as they only report 3 statistics: RES - the ...
0
votes
0answers
18 views

«nm» shows zero VMA: where is the symbol will be mapped?

I am look at the functions of my compiled application via «nm» — I need to find an address to set a breakpoint to the «send()» function. The problem is that this function accordingly to «nm»'s output ...
1
vote
1answer
42 views

benefits of huge pages on a laptop/desktop

I have read about huge pages and its the (potential) benefits. However, I am still confused whether this is mostly beneficial on a server with lots of RAM, or if it can be advantageous on a ...
2
votes
1answer
120 views

How to get the Physical memory usage in Solaris using commandline

I need to show physical memory statistics in Solaris, like total memory, used and free memory. Don't want to create a script, so is it possible to get all these details using commandline only?
4
votes
2answers
222 views

Centos 6.5 only using 24GB/48GB of memory

I recently installed an additional 32GB of memory in my Dell PowerEdge R900 home virtual machine server. Memory check passed and I booted into CentOS. When I opened the Virtual machine manager and ...
0
votes
1answer
70 views

Fedora 20 memory.limit_in_bytes not working

Fedora 29 (kernel 3.15.10-201.fc20.x86_64) This worked in F19. I'm trying to use cgroups to limit memory usage for some apps that are prone to misbehaviour, and I'm encountering problems. I'm ...
0
votes
0answers
28 views

How fast is a process reading/writting virtual memory?

So, we have top, htop, iotop, iostat, vmstat, etc, to measure many different things on Linux, but how can one measure how much MB/s a process is reading and writting to/from RAM, i.e., virtual memory? ...
2
votes
1answer
68 views

Find something that is occupying lots of memory and not visible in `ps` or similar

I have a VM that's having memory issues. One of the tasks I'd like to run in it is crashing with out-of-memory errors. However, when it crashes, the system still stays memory starved. I'm not sure if ...
2
votes
1answer
144 views

Dirty in /proc/meminfo for dd

I read from here that the below command gives me the amount of data that needs to be written to the disk. grep ^Dirty /proc/meminfo It particularly says Ever ask yourself "How much data would be ...
5
votes
2answers
163 views

How can I force bash to deallocate a brace expanded variable without name?

For benchmarking, I ran the command: for i in {1..100000000}; do echo "$i" line >> file done Bash expanded the braces and stored the list 1 2 3 4 5 6 ... 100000000 in memory. I thought ...
4
votes
1answer
408 views

How OOM killer decides which process to kill first?

This answer explains the actions taken by the kernel when an OOM situation is encountered based on the value of sysctl vm.overcommit_memory. When overcommit_memory is set to 0 or 1, overcommit is ...
1
vote
1answer
34 views

RHEL 5 Server running with 8 core. Load is always 0 or 1. but RAM (8GB) always occupied

I am seeing load is 0 or 1 since a few weeks on my RHEL5 server with 8 cores. But RAM always fully occupied. I am trying to debug the issue. How can we diagnose where memory is going?
1
vote
1answer
44 views

Memory usage stays high after compilation jobs

I am operating a small Linux VM with 1Gb of RAM. It is a fairly typical LAMP setup which takes about 16% of memory on normal usage I used the box to compile stuff yesterday, the memory went up to 60% ...
0
votes
0answers
31 views

how to limit dma address to specific range in linux kernel?

I want to limit the dma address the device can access to 0x0100_0000~0x03ff_ffff. But I don't know how to set the dma_mask and coherent_dma_mask. It's easy to set the "dma mask" for a range start ...
2
votes
1answer
64 views

What is being cached?

I have an embedded system with a low amount of memory. The system has allocation issues. Maybe due to fragmentation: Memory allocation issue on NOMMU? The platform is a NOMMU platform and so I suspect ...
10
votes
2answers
211 views

Reserve fixed RAM memory region as a block device ( with a given start physical address)

There have been a lot of questions about RAM Disks and I am aware of ramfs and tmpfs which allow the use of ram as a block device. However my interest is in using a fixed memory address range as a ...
2
votes
2answers
509 views

find out the memory allocated for a particular process in ubuntu

Could anyone please tell me how to find out the memory allocated for a particular process in ubuntu?
1
vote
0answers
80 views

Swap appears to not be in use

(I am currently using Ubuntu 14.04 LTS, GNOME environment) tl;dr How can I force more memory swapping (swappiness already at 100)? I have recently been experiencing a lot of system freezes/crashes. ...
1
vote
1answer
34 views

Reserve memory for a program

Is it at all possible to set aside say 50MB of memory so that in an emergency where something uses all my memory or loads the CPU I could open a terminal, find the offending process, and kill it?
0
votes
3answers
108 views

Lots of free memory, but Java won't start (SunOS 5.10)

vmstat gives: swap free 37489684 110178592 Still I have issues, while trying to run Java process with 10g heap: > java -Xmx10g -Xms10g -d64 HelloWorldApp Error occurred during ...
2
votes
2answers
79 views

Memory allocation for sparse array in awk

I have searched but didnt reach to any conclusion that when i defined an sparse array does it reserve all the contiguous memory upto maximum index or it allocate the memory at that particular index ...
0
votes
0answers
101 views

Inexplicable high memory usage (apparently not caused by programs, buffers, cache, or slab cache)

I've got a server that claims 1.7 of its 2 GB of RAM are used, but the combined memory usage of the running processes doesn't come anywhere near that figure: $ free -m total used ...
0
votes
2answers
86 views

Use/See whole the flash memory space

When we bought a N Giga Byte flash memory, the free space that the OS provide for us, is less than N GigaBytes. For example, for a 2 GB flash memory, total space that we can use, is 1.86 GB. As far ...
0
votes
0answers
26 views

Is there anything in RHEL 6.5 that would affect I/O speed for something <24K vs >24K?

Generally, transactions for my app of setting and getting data internally are measured in a couple of millis. However, over 24K in size, that time can jump to just over 100 millis. Is there anything ...
1
vote
1answer
75 views

Fastest and Safest way to increase Swap Space on Scientific Linux

Memory Swap Ratio Company System Today, a monitoring system indicated that one of the systems in the company has run out of memory. Executing htop on this system indicated that the Memory was nearly ...
-1
votes
1answer
67 views

How to prevent certain memory location to be accessed [duplicate]

I have 2 corrupted RAM module, on offset: 46xx MB and 13xxx MB (from memtest on boot) How to prevent Linux to access/alloc/read/write into those offset? Here's the result of memtester on ~1000 MB to ...