Linux - HardwareThis 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.
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.
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?
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.
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.
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.
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.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.