LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-31-2018, 09:15 AM   #1
kn87
LQ Newbie
 
Registered: Dec 2018
Posts: 2

Rep: Reputation: Disabled
Relationship Between OS and Memory


Hi All,

Need some helps with the relation ship between Operating system(OS) and Memory. My question are how OS will assign or access to the Memory ? basically when we have 2 memory vs 10 memory, We do see the Size is getting bigger. But how do we know which memory is in use or idle?


Any one has any idea please share it.


Best Regards,
kn87
 
Old 12-31-2018, 09:40 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by kn87 View Post
Need some helps with the relation ship between Operating system(OS) and Memory. My question are how OS will assign or access to the Memory ? basically when we have 2 memory vs 10 memory, We do see the Size is getting bigger. But how do we know which memory is in use or idle?
Hello and welcome to LQ,


Sorry but your questions don't seem to make a lot of sense.


What do you mean by "2 memory" and "10 memory"?


The other parts about "what memory is in use", there are commands for Linux, and probably for Windows and MAC, but I don't know them all, which will tell you what memory is in use, as well as other details.


For Linux, I suggest you look up the "free" command. Also suggest you review the man page for that command and look at the bottom of the man page in the SEE ALSO section. There are related commands cited there.


As far as how OSes access and use memory. That's a very open and broad topic. You really should read information about things about those topics, for the OSes which you are interested in. There is a whole section in Linux documentation about the memory management portion of the kernel, and I'm sure there's tons of discussions one can find which contain thoughts about how to do it differently.
 
1 members found this post helpful.
Old 01-10-2019, 03:42 PM   #3
dave67
Member
 
Registered: Apr 2007
Posts: 419

Rep: Reputation: 67
If you want to how much ram is being used in a linux system you can use Htop. On the Htop pic I sent the ram the system is using is 1.87Gb out of my 6GB total.
Attached Thumbnails
Click image for larger version

Name:	Htop with my ram usage.png
Views:	7
Size:	130.4 KB
ID:	29443  
 
Old 01-11-2019, 04:54 AM   #4
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
He probably means memory slots/cards, and how the Kernel divides and reserve memory among them when using memory for the OS.
 
Old 01-11-2019, 05:03 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,802

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
if you are interested here is a link which explains how memory is handled by linux kernel: www.linuxatemyram.com
If you want to know something else please describe your problem better.
 
Old 01-11-2019, 05:44 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Member Response

Hi,

Welcome to LQ!

Quote:
Originally Posted by kn87 View Post
Hi All,

Need some helps with the relation ship between Operating system(OS) and Memory. My question are how OS will assign or access to the Memory ? basically when we have 2 memory vs 10 memory, We do see the Size is getting bigger. But how do we know which memory is in use or idle?


Any one has any idea please share it.


Best Regards,
kn87
To make things easier and to better serve future questions, I suggest that you look at https://www.linuxquestions.org/quest...#faq_lqwelcome so you can compose a better query that will provide information so we can help you.

Another good reference would be How to Ask Questions the Smart Way

Several good links in my signature that will help you to learn.
Hope this helps.
Have fun & enjoy!
 
1 members found this post helpful.
Old 01-11-2019, 06:05 AM   #7
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Maybe the better question is; what is the role of memory to begin with?

In a nutshell: to support the processor, otherwise things would be very, very slow. Because it's only memory the processor has a direct path to, it does not have a direct path to your disk, it therefore must go through the drive's controller(s) to get to the disk - any disk. Have a look on the back of your motherboard/mainboard/mobo/whatever else you want to call it, and you'll see a line going from one of the memory pins directly to one of it's processor pins.

As far as the OS is concerned, it uses memory because of the above - that's pretty much the "relationship" in a nutshell, and to put it all very simply.

But of course there is always a far more "in depth" answer...
 
  


Reply



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
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 04:05 AM
Relationship between /usr/bin and /usr/lib glume Linux - Newbie 4 04-16-2004 08:11 AM
Relationship between X and clients. unholy Linux - Software 1 11-24-2003 02:38 PM
What is relationship between fvwm and gnome? ICO Linux - Newbie 1 11-23-2003 04:47 AM
Relationship between threading and Beowulf clustering ? Pres Linux - General 0 06-22-2003 10:46 AM

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

All times are GMT -5. The time now is 02:46 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