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.
370
questions
0
votes
0
answers
34
views
Clear RAM Memory Cache and buffer on production Hadoop cluster with HDFS filesystem
we have Hadoop cluster with 265 Linux RHEL machines.
from total 265 machines, we have 230 data nodes machines with HDFS filesystem.
total memory on each data-node is 128G and we run many spark ...
0
votes
0
answers
62
views
Recommended kernel parameters for zswap
There are a lot of proposals for this in the zram context, but not for zswap. What would be acceptable kernel parameters?
vm.swappiness=100 (or even higher?)
vm.vfs_cache_pressure=500 (really?)
vm....
0
votes
1
answer
36
views
What is using my RAM?
My laptop has started swapping like a cat: When I do nothing, it does nothing, but as soon as I do something it starts swapping.
$ free
total used free shared buff/...
0
votes
1
answer
48
views
How can I wipe RAM after shutdown
I have heard about memtest86 how can I install it to Debian ? Is it good ?
https://gitlab.tails.boum.org/tails/blueprints/-/wikis/more_efficient_memory_wipe/memtest86plus/
Or do I use ...
1
vote
0
answers
65
views
All memory consumed by nothing in Linux
I have a 8GB machine running Ubuntu 5.15 kernel. I only have 1GB of available memory even just after reboot. I tried free -m, cat /proc/meminfo and ps aux tricks to list the most memory consuming ...
0
votes
0
answers
98
views
How to cache downloads to RAM?
This is my first time posting on this forum, I apologise in advance if I inadvertently make any mistakes and welcome any suggestions for question improvements. I am running Ubuntu 22.04.1 on a laptop ...
1
vote
0
answers
25
views
How do i list all consuming program by cpu, memory
I wanna list down all consuming cpu, memory programs.
there are bunch of top and questions about it, but all of them not list them by programs.
like for example a python webservice could spawn ...
2
votes
1
answer
85
views
Is it better to have NO swap partition on a system which is installed on SSD and has 256GB RAM?
Of course, the purpose for swap is if your RAM runs out. But with 256GB RAM, I doubt this will happen.
A greater concern is that the frequent writing of the swap partition could wear out the SSD. As ...
2
votes
2
answers
52
views
VLC takes up 600 MB RAM. Why?
I have 2 instances of vlc running. One is playing. One is paused (and mostly swapped out).
top - 14:25:01 up 23 days, 19:19, 69 users, load average: 2.36, 2.61, 4.19
Tasks: 905 total, 3 running, ...
1
vote
1
answer
32
views
have clear screen clear konsole ram
how do I set it so clear command clears the output that was stored in ram
from my understanding, konsole keeps screen output in ram.
I want to clear that when I clear the visible part of the screen ...
2
votes
1
answer
327
views
How does large address aware (LAA) work in Wine?
Can anybody clarify how support for large address aware (LAA) for 32-bit applications works in Wine?
I know that by default in Windows, 32-bit applications are limited to a maximum of 2GB of RAM; ...
1
vote
2
answers
84
views
Why did 10 GB of RAM disappear?
I have a Lenovo IdeaPad 3-15ADA6 Laptop, Type 82KR, with Debian 11 Bullseye.
I have just installed a brand new RAM chip, Corsair Vengeance 8Gb DDR4 2400MHz, as from Lenovo specifications.
If I run ...
1
vote
1
answer
17
views
How to Get Total Count of Non-Swappable Pages in RAM?
I am trying to debug some ML code that requires pinned physical memory, and in order to help with this, I would like to figure out how much of physical RAM consists of pages that can't be swapped out (...
0
votes
1
answer
29
views
how to verify when RAM memory was update on RHEL machine
we have VM machines (machines are RHEL 7.9), and recently machines RAM memory was update from 32G to 64G
is it possible to verify on which date? memory was update?
1
vote
0
answers
108
views
A realtime priority application is consuming all of CPU
I am running PopOs 22.04 on my dell laptop [amd64, intel i3, 4GB ram]. The booting was taking so much time, so I run sudo dmesg in terminal and it shows error:
rcu: INFO: rcu_preempt detected ...
1
vote
2
answers
318
views
On AlmaLinux 8 or CentOS 7, does vm.swappiness=0 mean that Swap is fully disabled?
I've been having an issue for many years where I have vm.swappiness=1 in sysctl.conf, but even though there's plenty of RAM available (possibly almost full in terms of cached, although still 4GB free ...
0
votes
1
answer
88
views
how to copy text of file to ram (to do paste later)
I would like to copy the content of a file (string) to my ram memory. As in copy of a text so I can do paste later.
Example:
I have a file name: my_pub_key.pub and inside there's big amount of chars. ...
1
vote
1
answer
96
views
Is it possible to load up a binary into ram, without executing it?
Like I will use google chrome whenever I use linux (most probably) But I don't want it to auto start when ever I open it. I could open it manually, but I have HDD so it is pain to load for the first ...
0
votes
0
answers
19
views
free up unsed by vms in host kvm (libvirt)
i have a vm in kvm and have 16gb of ram, when i boot it up its not using so much ram on my host, but when i use the vm ram(like stress-ng), the usage on the host will raise up too, when i freeup the ...
4
votes
3
answers
1k
views
Auto detect RAM and create double the swap memory
I'm able to auto detect RAM in GB as below and round off to the nearest integer:
printf "%.f\n" $(grep MemTotal /proc/meminfo | awk '$3=="kB"{$2=$2/1024^2;$3="GB";} 1' | ...
3
votes
1
answer
610
views
Why is my system using swap when RAM fills up with cache?
I'm running openSUSE TW, 32 GiB RAM, 64 GiB swap (SSD).
Swap usage is zero up until the point when RAM gets fully filled up with cache.
I'm using htop to monitor it. Yellow/orange = cache
My system ...
0
votes
0
answers
63
views
XMP and GPU Crash
I have a question mostly related to hardware, if by any chance someone have an idea I might try.
I was experiencing random crash lately, 2/3 times a day, and logs pointed out GPU errors.
Never really ...
1
vote
1
answer
269
views
Abnormal RAM usage
from past several days, a weird problem is worrying me. My fedora takes too much RAM than usual, on idle the usual RAM usage is around 2 GB, but it hikes up to more than 5.2 Gb which mostly results in ...
0
votes
1
answer
115
views
Compilation taking too much RAM?
I'm trying to compile a custom Linux Kernel but when I get to the last step and compiling VMLinux.o, the make process gets killed and shows error137, which means that I'm out of memory.
I'm on 4gb RAM,...
1
vote
1
answer
33
views
Do linux processes actually separate cache?
It seems like every time someone complains about how a lot of memory is being used, all of the responses claim that it is just cache, it isn't harmful, it will be reallocated when needed, etc, even ...
0
votes
1
answer
256
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 ...
1
vote
1
answer
459
views
Is increasing the max_pool_percent parameter for zswap a smart idea to combine concepts of zram and zswap to increase memory and decrease disk usage?
I don't know if I'm missing something, but please take this with a grain of salt.
So, zram is used to reduce I/O operations on the disk by making a swap on the memory which eliminates system freezes ...
0
votes
1
answer
103
views
Mount filesystem with DAX enabled on RAM
I am trying to mount a filesystem with DAX feature on RAM.
I used this answer to load brd module and get /dev/ram0. Then I tried all 3 filesystems that support DAX: ext2, ext4 and xfs.
However, when I ...
0
votes
0
answers
484
views
Why does my system see 8gb ram, when I have 16gb installed
I've just assembled a new PC and I have 1 16gb plate installed, but my system reports that it has only 8gb available.
output of inxi -m:
Memory:
RAM: total: 7.23 GiB used: 3.51 GiB (48.5%)
Array-1:...
0
votes
0
answers
65
views
How to limit swap usage without using sysctl or resizing the partition?
There is the following scenario: I have an HDD disk that uses LVM and I cannot resize the partitions in it, in this disk, there is a swap partition that is 10gb. I also use zram apart from disk based ...
1
vote
0
answers
105
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 ...
3
votes
0
answers
379
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
...
0
votes
1
answer
1k
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 ...
0
votes
0
answers
189
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 ...
0
votes
0
answers
163
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 ...
1
vote
2
answers
386
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 ...
0
votes
1
answer
69
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 ...
2
votes
1
answer
123
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, ...
0
votes
0
answers
39
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 ...
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 ...
2
votes
0
answers
149
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, ...
0
votes
1
answer
395
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 ...
2
votes
1
answer
984
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 ...
0
votes
0
answers
72
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 ...
0
votes
2
answers
79
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
...
4
votes
0
answers
1k
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 ...
1
vote
1
answer
52
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 ...
0
votes
1
answer
120
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 ...
0
votes
2
answers
153
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 ...
0
votes
1
answer
263
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 ...