Questions tagged [memory-usage]

Questions related to memory usage related to RAM, swap; issues expansion, in Ubuntu.

Filter by
Sorted by
Tagged with
4 votes
1 answer
7k views

How do I fix high memory usage on Ubuntu 20.04.3 LTS?

Ubuntu 20.04.3 LTS is using a lot of memory, (10.1GB out of 12GB of RAM). The RAM fills up over time and reaches dangerously high levels of usage, even when I am using only 2 applications. I've tried ...
0 votes
0 answers
55 views

lubuntu - Live USB Installation Keeps Warning "No Space Left on Device" But Swap, RAM, and Data Partition Have Space

I installed lubuntu on a flash drive along side a few other distros using ventoy, there is also a ~10GB partition for data. But it seems the storage space is shrinking. Its a new drive, 64 gigs, but ...
-1 votes
1 answer
82 views

Ubuntu high memory usage [duplicate]

Ubuntu 22.04.2 LTS I just installed Ubuntu Linux today without any programs to install But 90% of my memory is still full Do you have any way to help me?
470 votes
3 answers
901k views

How do I configure swappiness?

I need a step-by-step, simple and easy way to configure swappiness.
0 votes
0 answers
161 views

Way to high virtual memory usage

So, I recently notices that on Ubuntu, programs are using way too much virtual memory. system monitor screenshot How is MS Edge even using 1.2 TERA BYTES?? of Virtual Memory. I've 16 GB physical ...
0 votes
1 answer
163 views

dealing low memory in hadoop 3.1.3 in vmware virtual machine ubuntu 19.10

I installed Hadoop on a Ubuntu virtual machine. I downloaded the source file that means among the releases available on this page https://hadoop.apache.org/releases.html I downloaded 3.1.3 file https:...
10 votes
1 answer
20k views

ZRAM vs. regular swap partition

I don't fully understand the functionality and the potential advantages of zram. For example: once zram is activated, what percentage of memory will be dedicated to paging? Another issue: obviously ...
6 votes
1 answer
14k views

bash fork: retry: Resource temporarily unavailable

I am trying to run a shell script which will create process using a shell script. I get Resource temporarily unavailable error. how to identify which limit (memory/process/filecount) is creating this ...
4 votes
2 answers
6k views

MariaDB killed by OOM Killer every couple days

my MariaDB server is being killed every couple days. × mariadb.service - MariaDB 10.6.12 database server Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled) Active: ...
1 vote
1 answer
158 views

Available memory low despite no process using a lot of memory

so I fired up my personal Ubuntu 22.04 server today, and noticed that it was extremely slow in comparison to yesterday. I checked via commands what was going on and am really confused: As you can see ...
3 votes
2 answers
1k views

Where is the memusage command in Ubuntu?

On my Ubuntu LTS system, I have a manpage for memusage: $ man memusage MEMUSAGE(1) Linux user manual MEMUSAGE(1) NAME ...
2 votes
1 answer
5k views

Amazon EC2 instance Ubuntu 16.04 : Cannot create temp file for here document. No space left on device

I have an EC2 instance running Ubuntu 16.04, which keeps on running out of memory killing my mongod process in turn. Doing df -h gives udev 2.0G 0 2.0G 0% /dev tmpfs 396M ...
0 votes
1 answer
51 views

Root folder is running out of space

I am getting an error: / is running out of space when I work with the creation of docker images. Then I tried to list the top 10 large files on my computer's filestystem. It listed out 10 files/...
5 votes
2 answers
20k views

Very high cache usage causing slowdown

I'm trying to identify the culprit of what's causing my personal computer to be extremely sluggish. The biggest suspect is memory. When the computer is running fast my cache memory looks normal. ...
-1 votes
1 answer
169 views

What is soaking up my free memory?

I have computer handling various functions for our community radio station, including processing the program audio for broadcast. It's running remotely and sends daily health emails for me to keep an ...
2 votes
1 answer
166 views

Why low swappiness (10) leads to system crashes? [duplicate]

As I have 128 GB of RAM, I wanted to minimize swap usage by setting vm.swappiness to 10. I ran a bath (snakemake -j 1) of memory-heavy operations in Python: subtracting two arrays up to 15 GB each, ...
0 votes
2 answers
366 views

Why does memory-heavy processes lead to system crashes when swap is available?

I run a bath (snakemake -j 1) of memory-heavy operations in Python: subtracting two arrays up to 15 GB each, then calculating norms of the difference. Surprisingly my system started to misbehave: ...
16 votes
6 answers
2k views

Check memory usage of process which exits immediately

I have built an application which takes less than 1 sec to execute. I want to check the memory usage of this application. What are the tools which can be used in this scenario?
34 votes
2 answers
8k views

Can a vanilla Ubuntu 16.04 LTS Server run without snapd?

I've been running out of memory on some of my small-footprint Ubuntu appliances. I noticed that snapd was running and using lots and lots of RAM. I took a chance and stopped the snapd service and ...
1 vote
0 answers
216 views

Why is this bus error occurring when reading through a shared memory object?

Version: Ubuntu 22.04.3 GCC: 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) Hi, I'm trying to create a program with a very large shared memory object. This is being done on an AWS EC2 instance with 130GB of ...
2 votes
0 answers
2k views

Unexpectedly high memory usage in Ubuntu 22.04.3 LTS

I have noticed for a while now that my system seems to be using up my memory much more quickly than I would expect. When it gets like this, I do notice it slowing down a bit at time, and my fan starts ...
0 votes
1 answer
153 views

How to check how much memory is being used for a software and how to increase memory for it?

Specifically, I'm using Ubuntu 22.04 and since the Rstudio software gets laggy sometimes, I want to check how much memory is being used for Rstudio and how to grant more memory for it. How should I do ...
38 votes
7 answers
70k views

How do I use oom_score_adj?

On 11.04, /proc/[pid] contains oom_score_adj, but man proc describes the old oom_adj. I have googled unsuccessfully for any information on how to use this. What I need to arrange is that processes ...
0 votes
1 answer
816 views

How do I decrease shared memory usage?

I am suffering from frequent lock-ups of my desktop system (see Memory full, mostly taken by "shared", GUI unresponsive). Example output of free -m: total used ...
0 votes
0 answers
161 views

Twitch.tv Slowly Uses 100% Memory and then Freezes Computer

Every time I try to access twitch.tv through Vivaldi, the memory usage on my system will slowly increase to almost 100% while the twitch.tv homepage does not finish loading. If I do not close the tab ...
0 votes
0 answers
32 views

How to fix a partially balanced memory configuration?

We have an Intel Xeon Gold 6230 based server under Ubuntu 20.04.5 LTS with a specific memory configuration. It has 2 sockets with 6 memory channels in each and 8 memory slots all filled with 32G DIMM ...
3 votes
2 answers
1k views

Automatically manage swap / memory

When filling up all memory and swap my experience the most recent years has been that: Windows and macOS go "oh, let's fix that for you" and then presumably increase the swap size. Opening ...
19 votes
4 answers
138k views

How to clean up dev/sda1 as it's full

I've been doing jmeter tests and have had a few OutOfMemoryExceptions, so I've bumped up the heap memory in JMeter. But now it seems I can't run anymore tests as it says I'm using 94.9% of 14Gb. When ...
2 votes
0 answers
90 views

Skype taking too much virtual memory

When starting skype under Ubuntu 22.04.2 LTS it starts several processes. Two of them occupy 41.2GB and 32.6GB of virtual memory. Is that really needed? Are there files that can be deleted freeing ...
0 votes
0 answers
286 views

Ubuntu root partition is full, system won't boot, and "sudo apt-get clean" isn't working

I set up an Ubuntu rig to host Plex and act as a file server on my local network. I'm new to Ubuntu, so I followed directions and things seemed to be running fine--no problems with boot up or memory. ...
0 votes
0 answers
255 views

Memory comsumption of 22.04 is abnormally high and unstable

I've been using 22.04 LTS on a VMware virtual machine. The host OS is macOS 10.15 Catalina and the hardware is iMac Late 2013 (21.5inch). VMware Fusion is used for the supervisor. 4GB memory is ...
0 votes
1 answer
2k views

Out of memory at early stage of boot

I have a Ryzen 9 with 32 GB of RAM. Often, just after the GRUB menu, this message appears in the top left corner of the screen: Error: out of memory Press any key to continue... Pressing a key leads ...
7 votes
2 answers
6k views

Memory usage doesn't add up - what is using my memory?

My computer (which is running Ubuntu Server 16.04) is currently using 13.4 GB out of 15.4 GB of RAM (according to htop) but I'm struggling to understand what is using that memory. free -m reports: ...
4 votes
1 answer
8k views

Out of memory: Killed process

I got from dmesg Out of memory: Killed process 24502 (python) total-vm:19568804kB, anon-rss:14542148kB, file-rss:4kB, shmem-rss:0kB, UID:1000 pgtables:31232kB oom_score_adj:0 How can I increase the ...
5 votes
2 answers
3k views

Changing to another distro: can the -home partition be kept?

I want to change from Ubuntu 11.04 to another distro and I have /home on a different partition than the other folders. I want to ask if it's possible to keep the same /home partion with another distro ...
0 votes
1 answer
782 views

What is the delete target of "echo 2 > /proc/sys/vm/drop_caches" command

sync echo 2 > /proc/sys/vm/drop_caches After I execute above command, available memory is significantly increased than below consumed Slab memory. cat /proc/meminfo | grep Slab Slab: 6169212 kB ...
-1 votes
1 answer
2k views

Why does the sum of my processes RAM usage not match the total? [duplicate]

When I look in gnome system monitor after a fresh boot, it says I am using 2.1 gb of RAM. When I go into the processes tab, and sum the memory usage of all of the processes, it only totals to about ...
0 votes
1 answer
108 views

after changes in CPUQuota my system became very slow

I changed the CPUQuota=50% so that my system could use mimimum CPU resources but due to these changes my system became very very slow could anyone please help me to revert these changes and bring my ...
3 votes
3 answers
14k views

What is the minimum safe value for the swappiness setting?

I want to set swapiness to the minimum value such that Ubuntu 16.04 will still run without crashing. How can I do that? Here is the output of ls -alt /var/crash: drwxrwsrwt 2 root whoopsie 4096 ...
4 votes
1 answer
1k views

How can I correctly calculate the sum of memory used by all processes?

There recently was a couple of questions asking why Ubuntu is seemingly using more memory than accounted for by processes/services - here and here. However, I have the exact opposite situation. On my ...
1 vote
1 answer
226 views

How to calculate used memory of 'free' command

How to calculate used memory? In below case, 15784520(RSS memory of 'top' command) + ? = 16031516(used memory of 'free' command) root@host:~# free -w total used free ...
37 votes
8 answers
36k views

How to know each TAB memory usage ?

Hi, is it possible to know that, if Firefox or any browser is opened, whats the amount of memory taken up by each TAB of web-browser ? I am just curious to know.
0 votes
0 answers
85 views

RAM not detected correctly

I just installed Ubuntu 22.10 in my laptop with 8 GB of RAM. I was doing some tests to test the performance of the pc when I notice that Ubuntu see only 6.7 GB instead of 8, and I don't understand why....
63 votes
4 answers
88k views

How to interpret output of "free -m" command?

The output of free -m is: total used free shared buffers cached Mem: 595 482 112 0 63 324 -/+ buffers/cache: ...
2 votes
1 answer
1k views

Memory over-consumption: gnome-shell? google-chrome? slack?

I am having issues on a ubuntu 19.04 computer: regular freezes, ... Monitoring screenshots (htop) During a memory overload... (Unfortunately I didn't think of hiding userland threads on the 1st, ...
0 votes
0 answers
410 views

Memory leak while playing minecraft on Kubuntu 22.04

So I recently switched from Windows 11 to Kubuntu in order to, ironically attempt to fix a bizarre graphical glitch in a specific minecraft modpack (GT:NH) I was playing that made it unplayable. That ...
4 votes
2 answers
8k views

OOM score for every process

In response to this. Take a look to the questions about configuring the OOM killer. For example: https://unix.stackexchange.com/q/153585/21101 I am looking for what process would be killed first in ...
0 votes
1 answer
2k views

Large /var/log/syslog.1 file. What should i do?

I have an ubuntu 22.04 LTS, I've notice that i'm running out of memory so I've analized the disk and found a file called /var/log/syslog.1 of 11,5Gb, can i delete it? I also have noticed a backups ...
0 votes
1 answer
337 views

Multiple Un-killable Looping Processes Spawning

I'm desperately trying to work this one out, so thanks for taking a look. Context: Whilst trying to make a large file transfer from my Ubuntu PC to an external hard-drive, using rsync I believe, I ...
0 votes
0 answers
49 views

Deleted files from external SSD but it will not let me write new files to SSD - Ubuntu 18.04.5 LTS

Ubuntu version 18.04.5 LTS My external SSD filled up in memory so in an attempt to clear up space on my drive I decided to delete many files permanently. I deleted about 1.4TB and after running df -h. ...

1
2 3 4 5
10