LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-04-2021, 06:13 PM   #1
dptzippy
LQ Newbie
 
Registered: Dec 2020
Posts: 28

Rep: Reputation: Disabled
System Is Not Using All Available RAM.


Hello! I hope I am posting this in the correct section. I have built my own distro, based (initially) on LFS, but I have since spent countless hours expanding its usefulness. That being said, I can generate reports/logs, as long as somebody can tell me what programs/packages to use (I am still kind of new to Linux).

Today's issue comes from my system being incredibly slow, despite having (IMO) pretty good hardware. At the very least, I would expect that 32GB of DDR4 RAM (I can't remember what the frequency is), and a 10th gen i5 processor could keep up with literally just an empty AbiWord window, a Konsole window, and XFCE (with nothing running). I checked system stats, and I noticed that none of my 12 cores came under even 3% usage, and my disk usage stayed below 10% (I was using wget to download a directory), yet memory usage was consistently at 99%.

I would think my system is at fault, given that I built it, but I have no issue running games, browsers, tons of tabs, stuff in the backround, etc., so this whole issue must be from something in the operating system. I saw wget was using ~95% of memory, so I killed it, but given the aforementioned 32GB of DDR4, I really shouldn't have to, especially when it seems to work when in the shell.

That being said, how can I check if my system is using all available memory? I boot into my OS, so I don't need to save any for a host system or anything. Thanks for the help!
 
Old 03-04-2021, 06:23 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Having excess RAM will not give you any boost, most Linux systems work fine under 2-4 GB of RAM and adding more RAM won't improve a thing. Your bottleneck lies elsewhere.
 
Old 03-04-2021, 06:46 PM   #3
dptzippy
LQ Newbie
 
Registered: Dec 2020
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Having excess RAM will not give you any boost, most Linux systems work fine under 2-4 GB of RAM and adding more RAM won't improve a thing. Your bottleneck lies elsewhere.
I get that excess RAM won't fix anything. The issue is that my system is not using my RAM, despite it being available.
 
Old 03-04-2021, 06:54 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
RAM and its usage, kernel sees all that RAM and tries to make sure it is not a complete waste, uses it for file cache.
 
Old 03-04-2021, 08:48 PM   #5
dptzippy
LQ Newbie
 
Registered: Dec 2020
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
RAM and its usage, kernel sees all that RAM and tries to make sure it is not a complete waste, uses it for file cache.
While I appreciate the link (I really do, I didn't know that), my issue is not being addressed. Regardless of what Linux is trying to do, my computer is freezing and is virtually unusable. To put it bluntly, I don't really care what it should be doing, all I know is that the system is unable to open any programs, windows freeze, processes stall, and the entire thing is screwed.


How do I stop my system from freezing?
 
Old 03-05-2021, 11:29 AM   #6
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,361
Blog Entries: 7

Rep: Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936
Quote:
32GB of DDR4 RAM
That is tons of RAM for linux box.
Quote:
(I was using wget to download a directory), yet memory usage was consistently at 99%.
Show the wget command string that you are using.

Quote:
I saw wget was using ~95% of memory, so I killed it,
Show what you are doing with wget. That is weird. Are you downloading to file? Or are you trying to download something, and not writing to file until it is done? How big is the something?

Quote:
That being said, how can I check if my system is using all available memory?
Look at:
Code:
free
cat /proc/meminfo
Quote:
How do I stop my system from freezing?
If you are filling up 32GB of RAM, then you need to find what process is doing that.
Also, how do you have swappiness set? Are you sure that you are filling up your RAM? Could some of the slowdown be because you are swapping, and trying to read from swap.

What are you using to measure RAM usage? How do you know that your RAM is fully in use? Are you swapping? Need a lot more info to diagnose this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux VPS using up all available RAM SeSoX Linux - Server 5 07-12-2012 10:52 AM
Why size of swap space is 2x of RAM??? Why not 1.5x of RAM or 2.5x of RAM??? Saurav Ghosh Linux - Newbie 7 11-01-2011 04:49 AM
[SOLVED] Extracting a file in RAM File system when RAM dump is available sudheendrasp Linux - Embedded & Single-board computer 3 04-19-2011 09:58 AM
All RAM not being recognized on Linux RHEL after adding RAM manouche Linux - Enterprise 4 04-18-2008 11:31 AM
Kernel not reading all available RAM Emil Linux - Hardware 2 05-29-2003 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration