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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-31-2018, 09:15 AM
|
#1
|
LQ Newbie
Registered: Dec 2018
Posts: 2
Rep: 
|
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
|
|
|
12-31-2018, 09:40 AM
|
#2
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,955
|
Quote:
Originally Posted by kn87
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.
|
01-10-2019, 03:42 PM
|
#3
|
Member
Registered: Apr 2007
Posts: 423
Rep:
|
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.
|
|
|
01-11-2019, 04:54 AM
|
#4
|
Senior Member
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
|
He probably means memory slots/cards, and how the Kernel divides and reserve memory among them when using memory for the OS.
|
|
|
01-11-2019, 05:03 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,276
|
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.
|
|
|
01-11-2019, 05:44 AM
|
#6
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,976
|
Member Response
Hi,
Welcome to LQ!
Quote:
Originally Posted by kn87
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.
|
01-11-2019, 06:05 AM
|
#7
|
Senior Member
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
|
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...
|
|
|
All times are GMT -5. The time now is 04:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|