Questions tagged [memory]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
40 views

What is the minimum amount of memory required for starting a process on a Linux-based system?

Routines in both languages are inexpensive: goroutines are 2KB each, while Elixir processes are 0.5KB each. I understand that to start a process in BEAM requires 0.5KB of memory. This being so ...
user avatar
0 votes
0 answers
33 views

Swap memory not working

I work on a workstation Precision 7920 Tower Workstation in which I had recently upgraded the RAM from 96 GB to 416 GB (previously it had 12 dimms of 8GB and I added 10 dimms of 32 GB each) while ...
user avatar
  • 1
0 votes
1 answer
37 views

What unvisible process consumes almoust all RAM?

I am using Fedora but had this issue also with other distros for a long time and never found a solution. So while using my computer, mostly only browsing with Brave and coding with VStudio, memory ...
user avatar
0 votes
0 answers
43 views

how to detect memory leak in linux kernel due to slab leak

How to observe any memory leak in linux kernel due to any slab leaking? I just wanted to analyse how memory leak is detected due to increase in size of the active objects in one of the slabs in /proc/...
user avatar
  • 1
0 votes
0 answers
8 views

When slabtop shows USE 0% but ACTIVE is nonzero, should I be worried or is it just a bug?

Start of my slabtop -sc looks like this Active / Total Objects (% used) : 3305074 / 4014163 (82.3%) Active / Total Slabs (% used) : 110077 / 110077 (100.0%) Active / Total Caches (% used) ...
user avatar
1 vote
2 answers
42 views

Zero free swap but 56GiB free memory?

I have a CentOS7.9 system showing 56GiB free RAM (free -m) but only 1MiB free swap, and it's been in this state for three days. The original problem report was that a large (EE simulation) app keeps ...
user avatar
1 vote
1 answer
40 views

Linux memory allocation for user's process (buddy allocator)

I'm studying memory allocation in Linux and I have a question about the buddy allocator. Reading the documentation available on kernel.org I've learn that the buddy allocator is responsible for the ...
user avatar
  • 121
-1 votes
0 answers
24 views

Memory in / in dual boot

I booted Linux Mint to Windows 10. The memory ran out after installing TexMaker. What should I do? Is it possible to change the distribution of memory? The output of df -h is: Filesystem Size ...
user avatar
0 votes
0 answers
19 views

is it possible to compact centos 7.x memory

Today I am facing a problem when create kubernetes pod: Failed create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "statefulset-apollo-config-server-...
user avatar
  • 373
0 votes
1 answer
33 views

Can a process share unused memory with others?

I want to run about 200 processes with my experiments. Every of them really needs less than a GB: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 24688 rinkman 20 0 ...
user avatar
  • 103
0 votes
0 answers
30 views

In what order does kernel reclaim memory?

As far as my knowledge goes, when Kernel requires more memory for allocation for the processes it does a few things before entering OOM state. Such as freeing SlabReclaimable, Dropping annonymous page ...
user avatar
0 votes
0 answers
74 views

how to identify DIMM card problem from kernel messages

we have RHEL 7 server , and from dmesg log we can see the following details [13901018.980859] {9}[Hardware Error]: Hardware error from APEI Generic Hardware Error Source: 4 [13901018.980868] {9}[...
user avatar
  • 11.1k
0 votes
0 answers
85 views

zathura - The not-so-lightweight pdf reader

Long time user of zathura since it really is 'lightweight' in that there are no extraneous features. However, I often find myself running out of memory due to having several pdf's open at once. From ...
user avatar
  • 107
0 votes
1 answer
44 views

Understanding maps file in /proc directory for a process

In linux, when I access /proc for a particular program it shows memory mapping for the program in maps file. Something like this: address perms offset dev inode ...
user avatar
0 votes
0 answers
14 views

Instrumentation Tools for Collecting Data in Memory Accesses

We can use instrumentation tools, such as Pin tool, to collect memory accesses of an application. The type (read or write) and memory address can be collected. How about data? Can we use Pin tool to ...
user avatar
0 votes
2 answers
79 views

Explanation about free, available and buff/cache and how to find what process is buff/cache saved for in a server in the command "free -mh "

I see explanation for free -mh as: free displays the total amount of free and used physical and swap memory in the system, as well as the buffers and caches used by the kernel. The information is ...
user avatar
  • 1
0 votes
1 answer
23 views

Is vmalloc() allocate bytes of memory which is virtually contiguous maps to memory area from different physical pages?

vmalloc(size) allocates a memory of size long which is virtually contiguous but the physical mapping would not be contiguous. Does that mean the the virtually allocated size long memory actually lies ...
user avatar
  • 137
1 vote
2 answers
69 views

why do we need to pass buffers to system calls in order to have information returned? Why can't system calls allocate the buffer internally?

I'm reading TLPI, and in section 4.4: System calls don’t allocate memory for buffers that are used to return information to the caller. Instead, we must pass a pointer to a previously allocated ...
user avatar
0 votes
1 answer
50 views

ERROR: Unrecognized option: --host_jvm_args=-Xmx4g

OS: Linux Distrib: Debian GNU/Linux 10 (buster) bazel: v3.1.0 I try to get the memory limit to 4GB for bazel, but I get the error: ERROR: Unrecognized option: --host_jvm_args=-Xmx4g The whole ...
user avatar
  • 394
1 vote
1 answer
63 views

Does Linux keep the memory on the same physical location?

Assuming the Linux kernel doesn't swap out my process's memory pages, can I assume their physical location in RAM will not be changed, or is it possible the kernel will move them around? The reason I'...
user avatar
  • 1,490
0 votes
0 answers
72 views

How can i access the files in the nand flash memory through linux terminal?

I have files in the nand flash memory of my Gumstix Overo that i want to copy to a SD card, but i can't access them through the overo terminal, so i wanted to copy them through the linux terminal but ...
user avatar
1 vote
1 answer
172 views

Hardware error from APEI Generic Hardware Error Source (ECC RAM)

[58306.633900] {1}[Hardware Error]: Hardware error from APEI Generic Hardware Error Source: 1 [58306.633905] {1}[Hardware Error]: It has been corrected by h/w and requires no further action [58306....
user avatar
0 votes
1 answer
130 views

How does RAM get divided into Kernel Space and User Space

I understand that with Linux, RAM gets divided into kernel space and user space. Kernel space is reserved for running the kernel, and user space applications should not have direct access to the ...
user avatar
0 votes
0 answers
34 views

Memory runs out and PC freezes

I have been having issues playing video games on my PC, as I keep running out of RAM (8GB). When I run out of RAM, my displays and everything else freezes, except playing audio keeps looping. I have ...
user avatar
  • 67
0 votes
0 answers
33 views

Automatically Kill high-resource utilization programs

In our company, we use a headless Linux machine as development machine. However, sometimes users use up all resources (CPU, RAM) on that machine, which influences the work of others. Hence, we want to ...
user avatar
4 votes
1 answer
298 views

Speeding up `badblocks` by tweaking its `-c` switch

I have just tried upon tweaking the badblocks utility to use more RAM and possibly achieve a bit higher performance. The exact command I am running is (without HDD's S/N): badblocks -v -b 4096 -c ...
user avatar
0 votes
1 answer
50 views

Available memory seems unusually low on CentOS 7 server

I realize there have been a number of discussions about relationship of "free" to "available" memory in the output of free. However, what I'm currently seeing seems particularly ...
user avatar
0 votes
2 answers
78 views

Limit a process's memory by name forever

I am developing using webpack. The problem is, my current project is huge, and takes around 6GB of memory (~30% of RAM according to top). Is it possible to run a command restricting it's memory ...
user avatar
0 votes
0 answers
14 views

AWS Ubuntu 20.04 memory 4G: not enough memory for running any app?

AWS E2 Ubuntu 20.04 memory 4G: not enough memory for running any app? $ top Tasks: 119 total, 1 running, 118 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, ...
user avatar
  • 101
0 votes
0 answers
75 views

Is there any command in Gumstix Overo that allows me to copy from NAND memory to sd card?

So i am trying to copy all the data in the NAND memory of my Gumstix Overo, through this link https://www.gumstix.com/community/support/faq/write-images-flash/ i know that there is a command, nand ...
user avatar
0 votes
0 answers
28 views

Whats the difference of the available memory shown by using sar (system activity report) command and /proc/meminfo?

On the same machine, entering "sar -r ALL" shows: kbmemfree kbavail kbmemused %memused ... 157096 232380 561828 56.48 ... Then, entering "cat /proc/meminfo" shows: ...
user avatar
1 vote
1 answer
88 views

Retrieve the virtual page id from a virtual address

We know this following function from Linux kernel, which takes a pointer to the struct page and outputs the virtual address of the page frame: void * page_address(struct page *page) So I wonder if a ...
user avatar
0 votes
0 answers
75 views

ipcrm won't delete some shared memory blocks

I have shared memory I am trying to delete using ipcrm on a Mac. I managed to delete all segments except the below: T ID KEY MODE OWNER GROUP Shared Memory: m 2359296 ...
user avatar
0 votes
1 answer
215 views

How can I list AMDGPU VRAM usage by process?

I've got an AMDGPU on Linux and want to be able to see which processes are utilising my precious 4GB of VRAM I need for gaming. I'd like this to be presented in a similar manner to top listing all ...
user avatar
  • 335
0 votes
1 answer
78 views

Dirty page accounting in linux kernel /proc/$PID/maps

TLDR; How exactly does the kernel is able to do dirty page accounting in /proc/$PID/maps. Consider the following program statement in C static char page1[PAGE_SIZE] __attribute__ ((aligned (PAGE_SIZE))...
user avatar
2 votes
0 answers
165 views

New computer running arch linux gets weirdly loud

I have a relatively new computer and I just installed Arch linux. From the moment I start the computer, it starts with a loud noise that is very similiar to a computer running on 100% of the CPU. From ...
user avatar
0 votes
0 answers
22 views

Is it possible to partially virtualize the physical address space?

I'm currently working on systems that include FPGAs. We've various IP cores that support the AXI-Bus. To communicate with the IP cores of PL (programable logic), we need to map them onto the address ...
user avatar
0 votes
0 answers
21 views

Why doesn't smem show docker memory usage?

docker stats -a CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS 75b8a5cf510e xxx 0.00% 22.38GiB / 62.68GiB 35.71% 0B / 0B 813MB / ...
user avatar
  • 394
0 votes
2 answers
43 views

Does the time command include the memory claimed by forked processes?

I want to benchmark some scripts with the time command. I am wondering if this command catches child processes' memory usage. command time -f '%M' python my_script.py If not, what are my options? Is ...
user avatar
  • 1,295
2 votes
1 answer
185 views

Cgroup and process memory statistics mismatch

I am trying to set up some monitoring to see when a service is using too much memory. The memory usage can be read from two places: the /proc/<pid>/status for the pid, or the /sys/fs/cgroup/<...
user avatar
  • 562
0 votes
0 answers
34 views

Where has my RAM gone? (comparing system just booted with one that worked for some time)

I decided to finally investigate and understand why I have less available memory than when the system is booted. I'm currently comparing two systems booted from IIFC same liveUSB stick based on Linux ...
user avatar
0 votes
0 answers
64 views

Memory: Used very high but not used by processed, Buffer/Cache low

there is something going on I don't understand on my system, where ~20 GiB of memory are reported as "used" but not by processes, buffers nor cache. What could eat it that much memory? How ...
user avatar
  • 1
0 votes
0 answers
201 views

Debian stalls at boot: "Freeing unused kernel image (initmem) memory: 2656K"

I am running: ThinkPad T500 Intel Core 2 Extreme QX9300 × 4 Libreboot 20211122 (Coreboot 4.15) Debian testing (bookworm), Linux 5.15.0-2-amd64 (Debian kernel) I did not update Libreboot or ...
user avatar
0 votes
0 answers
47 views

only 2.2GB memory is available on 64-bit Ubuntu

My laptop has 8GB memroy which can be detected in Windows. But after installing 64-bit Ubuntu 20.04.3 LTS, I check dmesg | grep Memory. It shows that the kernel only uses 2.2GB memory. [ 0.029467] ...
user avatar
3 votes
1 answer
177 views

Clamav - can you only load the linux-specific definitions from /var/lib/clamav/*.cld?

We're investigating applications that seem to use large amounts of memory, one of those being clamav. We noticed that there are lots of av definitions for windows, osx, xls, doc, rtf etc. in /var/lib/...
user avatar
0 votes
0 answers
53 views

LZMA compressed squashfs image bit-error fix algorithm

Long story short: NAND dump from embedded device. The device uses ubifs as a filesystem. Now, after fixing the dump, I'm left with the partitions inside it. Almost every partition inside has "A&...
user avatar
  • 1
0 votes
0 answers
20 views

I am confused the fields 'available' and 'shared' after keying in command of 'free -h'

As my title announced, I looked up their meanings and get that the field 'shared' has been dropped and my available memory = free + buffer/cache. Maybe owing to the old version, I haven't found the ...
user avatar
0 votes
0 answers
96 views

qemu and memory compression - guest or host?

Are there any benchmarks or performance measurements regarding using compressed memory such as zram when running multiple qemu-kvm VMs? On a general grounds as with swap I assume disabling any memory ...
user avatar
0 votes
1 answer
163 views

When should I alter overcommit_memory and what should I take into consideration when doing so?

I'm having a PC freeze issue that I can't seem to figure out. I have three identical PCs. They are each custom builds with i7 and 64GB of RAM. The OS drives are 512GB nvme drives. They each run ...
user avatar
  • 253
1 vote
1 answer
580 views

How to Boot Memtest86 from a Ventoy USB

I downloaded memtest86 with the intention of adding it to my Ventoy usb, so that I could boot a machine for a memory test. Although Ventoy claims to support img files, it wouldn't boot the memtest86-...
user avatar
  • 4,327

1
2 3 4 5
27