2022 Developer Survey is open! Take survey.

Questions tagged [ram]

Random Access Memory is a fast and volatile data-storage bank used in computers to store data and machine code currently being used.

Filter by
Sorted by
Tagged with
1 vote
0 answers
49 views

Linux (Mint) eats all my RAM

I know, there are plenty of "Linux eat my RAM" threads all over the internet, but they can't help me to solve my problem. (I had a try with this question on askubuntu but I'm off-chart with ...
user avatar
3 votes
0 answers
84 views

Why creating files in /dev/shm is not faster than creating files in /tmp?

Let's say I have two bash files. The first one is called diskFile.bash: for i in {1..10000} do file=$(mktemp) cat > $file <<- "SIGN" "Hello World" SIGN ...
user avatar
  • 319
0 votes
1 answer
65 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
28 views

Running computations from SWAP without complete performance drop - Discussion on NVMe speeds and if they ever come in reach for RAM replacements

I have been setting up my Linux machine (currently pop-os) in several ways recently to upgrade my system to demands of specific data analysis done in R. In brief: The Data set I am working on is ...
user avatar
0 votes
0 answers
30 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
2 answers
48 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
1 answer
38 views

RAM used by apps doesn't sum up vs free RAM, why?

I ran some commands (in a script to be fast) and got this: $ ps -A | wc -l 513 $ echo "$((`ps -A -o rss |tr "\n" +`0))" 4368208 $ free total used free ...
user avatar
2 votes
1 answer
42 views

Linux server: How does memory get allocated to parallel processes?

I'm a complete newbie, so please excuse my ignorance and/or potentially wrong terminology. I'm using an Ubuntu server through ssh for brain image processing (one command with several programs, ...
user avatar
  • 29
0 votes
0 answers
34 views

Is there any configuration that I can change to make the system kill a process when RAM memory is full?

I work on a computer with 32GB of RAM using Ubuntu 20.04. I often open some VirtualBox machines and keep a lot of stuff open at once. Sometimes I accidentally fill all the RAM memory on the computer ...
user avatar
  • 319
0 votes
0 answers
25 views

smbd fill ram cache and trigger critical memory error

a user that connect to samba server, start to copy a file of 40GB from his device (Windows 10) to server. I see cached RAM that quickly increase (to 24GB which is the max), then server reboot. samba --...
user avatar
7 votes
1 answer
1k views

Has Linux kernel abandoned universally applying "RAM that isn’t being used for something is wasted RAM" approach (e.g for mobile devices)?

When I see that phrase (or similar), as e.g. today in How to Use the free Command on Linux (article with 2020 date): RAM that isn’t being used for something is wasted RAM I recall about LPDDR used ...
user avatar
2 votes
0 answers
47 views

java process consuming more RAM than total RAM

I have a server with docker container containing java processes. One of process is consuming memory more than 100%(117%) visible in top command. $ top ... MiB Mem : 515396.0 total, 149379.3 free, ...
user avatar
0 votes
1 answer
82 views

My RAM usage never goes over 75% when system is lagging and under heavy load

Linux matrix 5.15.2-xanmod1-1 #1 SMP Wed, 17 Nov 2021 02:36:25 +0000 x86_64 GNU/Linux NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS sda ...
user avatar
1 vote
1 answer
223 views

How to verify that my tmpfs/ramdisk is working?

I am setting up a RAM disk in CentOS 7, and by all tutorials, I am able to see the speed increase of writing to the disk. However I never see RAM usage increase either from free -h or from the System ...
user avatar
  • 1,025
0 votes
0 answers
48 views

no free/cached memory and no process consuming it

I can't manage to monitor where my RAM is hidden, it's not buff/cached and I'm not sure to understand the /proc/meminfo data What is sure is when I top or try to catch processes I can't find more than ...
user avatar
0 votes
2 answers
68 views

When to upgrade RAM based on free output [closed]

I have a java application that runs on a Linux server with physical memory(RAM) allocated as 12GB where I would see the normal utilization over a period of time as below. sys> free -h ...
user avatar
1 vote
0 answers
839 views

Debian 11 freezes with Firefox

I am new to Linux currently studying Computer Engineering and we were told we needed to install a Linux distro in our machines, I decided to install Debian 11. I've been able to resolve most problems ...
user avatar
1 vote
1 answer
32 views

How to purge in-memory disk cache

Linux uses free RAM to store pages of disk files to speed up overall disk access. However for the purposes of benchmarking, I want to test the disk read speed and I don't want that speed measurement ...
user avatar
  • 111
0 votes
1 answer
33 views

Ubuntu allow max ram usage for sbt java

sometimes during coding I realize that I have 100% ram used, and swap 100% ;) Is it possible to dissalow for some processes like java, sbt etc. not to use more when for example 90% of ram is used ...
user avatar
  • 111
0 votes
2 answers
84 views

What makes a program load so fast? [closed]

I have this question that I need an answer to. What makes programs like st, zathura, sxiv, and feh load instantly and what makes programs like VS Code and Google Chrome load so slowly in low-spec ...
user avatar
0 votes
1 answer
139 views

Why is RAMFS much slower than Ram?

I have a 64GB DDR4 3200MHz memory installed on my PC. When I run sysbench, I get the following results: # sysbench memory --memory-block-size=1M --memory-total-size=10G run sysbench 1.0.20 (using ...
user avatar
0 votes
0 answers
55 views

htop command displays 996GB instead of 1024GB for RAM

I have a little issue that I can't understand. I have 8x128GB sticks of RAM, which makes 1024GB of RAM. But the command htop displays 996G and not 1024G as expected. You can see the following ...
user avatar
2 votes
0 answers
118 views

memtester error when testing two RAM memory cards together but successful test on each one

I have bought a new 8GB memory ram with the same part number as the one my computer already has. After mounting the new memory, I see that Ubuntu has detected it and that the system has 16 GB of RAM. ...
user avatar
  • 121
2 votes
1 answer
515 views

Why the difference in neofetch and free (RAM) output?

wadewayne@Cheetah:~$ neofetch MMMMMMMMMMMMMMMMMMMMMMMMMmds+. wadewayne@Cheetah MMm----::-://////////////oymNMd+` ----------------- MMd /++ -sNMd: OS: Linux Mint 19....
user avatar
0 votes
0 answers
780 views

“you are in emergency mode,, After logging in type ”journalctl -xb“ti view…”

my os (pop os , ubuntu based) gets freezed due to a RAM exceed, I reboot my system and only have CLI, were I got the tittle mentioned message: “you are in emergency mode,, After logging in type ”...
user avatar
1 vote
0 answers
59 views

Why is writing to a RAM drive so much slower than expected?

I testing writing data to a RAM drive on my linux machine, and I'm seeing much lower numbers than the RAM speed would suggest. So I would like to ask: why am I seeing slower speeds? Could be that I'm ...
user avatar
  • 11
9 votes
1 answer
369 views

Tell Linux what to use swap for

I am using Ubuntu 20.04 Server edition. I have a 512GB of RAM, with about 130GB typically used for a process running on the machine. I also have two ramdisks (tmpfs) both configured as 500GB. As tmpfs ...
user avatar
1 vote
1 answer
201 views

Linux box with 100% used swap and 60% available RAM - is it normal?

Recently I saw a box (actually, web server VM) that has exact 0 (zero) bytes unused in its swap, while available ram (which is not free, but the sum of free+buffers+cache) is at 60% of total VM ram. ...
user avatar
  • 141
3 votes
1 answer
535 views

Does mounting squashfs put the whole filesystem in RAM?

Situation: I've got a larger (>10GB) read-only collection of small files with loads of duplicates that I need to have available on multiple machines, even on different file systems. We can assume ...
user avatar
0 votes
1 answer
103 views

(Almost) Complete System Freeze, Swap Related

Overview & Symptoms My system freezes almost completely whenever my system runs out of RAM and starts hitting the swap partition heavily. Everything freezes including the mouse and keyboard with ...
user avatar
  • 103
0 votes
1 answer
479 views

How to use swap less often?

I use an SSD swap just to avoid full memory related crashes. There are limited erasures that can occure on SSDs. The memory related crashes have stopped, but my system uses swap constantly and vmstat ...
user avatar
  • 115
0 votes
1 answer
111 views

dotnet Segmentation Fault on Ubuntu: i have only 174 MB free RAM

When i run dotnet or dotnet --list-sdks or dotnet --list-runtimes it works, but if i run a project or even dotnet --help or dotnet --info , i get Segmentation fault In /var/log/syslog i see: [ 3110....
user avatar
1 vote
1 answer
73 views

Can Linux take advantage of removable ram?

Some RAM pci-e card were manufactured https://linustechtips.com/topic/1118940-wtf-is-this-thing-ram-on-a-pci-card/ Say I got a removable 16gb version of this card that is available 95% of time (eg: ...
user avatar
  • 111
-1 votes
1 answer
148 views

How to get memory info without sudo command on bash

No idea how to create a bash script, without using sudo, that shows Memory Info like 8 x 16384 MB DIMM-1600 MT/s Samsung. number of memory + size of each + type + manufacturer
user avatar
2 votes
0 answers
93 views

What dmidecode Bank Location: PO CHANNEL means?

When I run command sudo dmidecode -t 17 I see : Bank Locator: P0 CHANNEL A What this means ?? I searched dmidecode site and docs but not found any information. I just wanted to check memory mode, ...
user avatar
  • 121
1 vote
2 answers
171 views

Clean RAM after some days of PC usage

I have 8GB RAM, and use my PC (Debian 10, KDE plasma 5.14.5) "normally" but with many programs running in parallel: Firefox (≈ 250 Tabs) Chromium (10 Tabs) Thunderbird 10x Okular 2x Pycharm ...
user avatar
  • 130
0 votes
3 answers
111 views

dmesg shows 8GB memory as 6059MB real

free -h and dmesg commands show real memory as about 6GB while I installed an 8GB ram. The following is the output of the commands dmesg | grep -i mem real mem = 6353747968 (6059MB) avail mem = ...
user avatar
1 vote
2 answers
269 views

How much swappiness I need with 4GB ram [duplicate]

I am a bit confused because everyone says to reduce the swappiness to about 10; but if I have only 4GB RAM than how much swappiness would be the best? and also If I had 8 and 16GB ram? and also I am ...
user avatar
  • 145
0 votes
1 answer
35 views

The RAM load is constantly increasing. Is it possible to reduce it?

RAM load rises to 85% from 32G I have varnish and nginx installed on my server. Recently I noticed that the load on RAM is very high. I am afraid that it will continue to grow and the site will stop ...
user avatar
  • 3
0 votes
1 answer
89 views

Varnish duplicate process 170 once

I am using nginx + varnish. I noticed that I have ~ 22GB / 32GB in use. I looked in htop and noticed that there are about 170 duplicate varnish processes. Tell me what could be the problem? Where to ...
user avatar
  • 3
1 vote
1 answer
279 views

How to decipher decode-dimms output

I want to find out real RAM timings. The stick is 2400Mhz, but memory clock is limited to 2133MHz on this cpu. I can confirm it with: $ sudo dmidecode ... Handle 0x0004, DMI type 17, 40 bytes Memory ...
user avatar
1 vote
2 answers
308 views

Maximum RAM - do I listen to dmidecode or the manufacturer?

I have a nice laptop - 32 GB of RAM, M2 (SATA) and 2.5' SSD (also SATA) - dual boot, Fedora 33 & Windows 2019 Server. I ran dmidecode and found a Maximum Capacity of 64GB - but the manufacturer (...
user avatar
1 vote
0 answers
18 views

RAM, CPU, Disk limiter per user

I recently bought a VPS server which is running ubuntu-16.04-x86_64. This VPS has 4 GB of RAM, 2 threads i7-6700K 4.00 GHz processor and 30 GB SSD. Is there some way to easily reduce RAM usage, disk ...
user avatar
1 vote
1 answer
146 views

Arch Boot Hook: Allocation zramctl fails to allocate

OS Version: 5.9.14-arch1-1 Kernel I am trying to figure out how I can load the whole / directory into the RAM when starting up. I found a little helper here: https://github.com/arcmags/ramroot So, ...
user avatar
1 vote
1 answer
58 views

Is RAM usage of IPC a part of the RAM usage of a program

I'm learning how to use Message Queue in Linux and I've found a simple example: https://www.geeksforgeeks.org/ipc-using-message-queues/. With the reader and writer in this link, I can read and write ...
user avatar
  • 2,819
-2 votes
1 answer
37 views

Who starts a program to run?

Who starts a program to run on RAM? Is it Kernel? Suppose I hit 'ls' command in linux, I know it is running on RAM processed by CPU-Core and make sys-call (to Kernel) whenever necessary and flush the ...
user avatar
0 votes
0 answers
31 views

Is it possible to resume a LINUX hibernation putting the disk (with the swap file or partition) in another computer?

Can I put my work computer into hibernation (when the RAM is copied to disk and the computer is shutdown), wait it to switch off, take the hard drive, put it into another (similar, but not identical) ...
user avatar
  • 151
2 votes
2 answers
390 views

badram kernel parameter not working?

I have bad ram which is soldered on so I can't replace it. I have run memtest86+ and got the output in badram format. I added this to the current kernel with: sudo grubby --args=badram=...
user avatar
  • 143
0 votes
0 answers
171 views

Pre-Caching large files

I have a CPython routine which is time critical, it reads large binary files to generate dynamic spectrum, it's slower if the files are not cached previously. When I use vmtouch to pre-cache, it takes ...
user avatar
3 votes
3 answers
834 views

Loading a large Linux distribution such as Ubuntu into mapped partitions on RAM such as DDR4

Is there any way of booting from SSD/USB/NVMe/eMMC to have a Linux OS, such as Ubuntu, plus applications, services and containers load entirely into partitions created in RAM such as DDR3 or DDR4. ...
user avatar

1
2 3 4 5
7