xcp-ng / xcp

Entry point for issues and wiki. Also contains some scripts and sources.
https://xcp-ng.org
1.25k stars 74 forks source link

Is there a way to get the ram information from the machine and not the control domain? #258

Closed bhfmts closed 5 years ago

bhfmts commented 5 years ago

Hello guys,

I have 2 machines that have 6GB but the below command it is showing that is has 600MB... You can also see the attached image how much ram does it has my machine. [root@xcpserver1 ~]# cat /proc/meminfo MemTotal: 609292 kB MemFree: 71456 kB MemAvailable: 250244 kB Buffers: 15820 kB Cached: 154644 kB SwapCached: 1568 kB

imagen

nagilum99 commented 5 years ago

This is by design and only info for the control domain (aka Dom0). You should read more about how XCP-ng works, as it seems there's mucht you would learn. Also using a Notebook PC has good chance, that hardware (sooner or later) might not work as expected, as Notebooks are an unsupported and not targeted platform.

bhfmts commented 5 years ago

Thank you so much for your response. I would read further. Yes, I know a notebook it is not the correct hardware to work with xcp-ng, but I am using this for lab purposes at home. And at the moment it has been working very well and it has exceed my expectations.

What I wanted to do is to monitor that machine with check_mk. Is there a way to get the ram information from the machine and not the control domain? Thanks, Bernardo

olivierlambert commented 5 years ago

There is total RAM available for a virtual machine (eg 6GiB) that's "reserved" for it. Even if you use 500MiB inside, the total RAM space used will be 6GiB anyway.

There's so advanced mechanism to have a more dynamic allocation, but it's not for general use cases.

bhfmts commented 5 years ago

But the main total ram available it is not showing that on the output of cat /proc/info Please see attached image

El El mié, 14 de ago. de 2019 a las 09:58, Olivier Lambert < notifications@github.com> escribió:

There is total RAM available for a machine (eg 6GiB) that's "reserved" for it. Even if you use 500MiB inside, the total RAM space used will be 6GiB anyway.

There's so advanced mechanism to have a more dynamic allocation, but it's not for general use cases.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xcp-ng/xcp/issues/258?email_source=notifications&email_token=ADDHGUBTAWDQCK4SJERWWH3QEO3LRA5CNFSM4ILPII32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4IAKFY#issuecomment-521143575, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDHGUDXX4PUEA6E4V2VX3DQEO3LRANCNFSM4ILPII3Q .

-- Mvh, Bernardo Troncoso

olivierlambert commented 5 years ago

Sorry I don't understand what you mean.

bhfmts commented 5 years ago

My machine has 6GB RAM... but it is showing 600MB... but above he told me that reflects the control domain RAM... I am wondering if I can get the real memory ram information of my machine... ?

El El mié, 14 de ago. de 2019 a las 11:29, Olivier Lambert < notifications@github.com> escribió:

Sorry I don't understand what you mean.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xcp-ng/xcp/issues/258?email_source=notifications&email_token=ADDHGUHRNPTF24BLQACEFP3QEPF5XA5CNFSM4ILPII32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4IHSHI#issuecomment-521173277, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDHGUCJD653SKVCZTWVHY3QEPF5XANCNFSM4ILPII3Q .

-- Mvh, Bernardo Troncoso

olivierlambert commented 5 years ago

The control domain isn't your whole physical machine. It's a virtual machine. This virtual machine got a max amount of RAM that's not your 6GiB otherwise how on earth you'll be able to start another virtual machine?

Take a look at your screenshot, in the host view and just scroll down, you have a progress bar filled with the RAM usage.

You won't start a VM inside your control domain. You need to get first how Xen works:

https://wiki.xen.org/wiki/Xen_Project_Software_Overview#What_is_the_Xen_Project_Hypervisor.3F

bhfmts commented 5 years ago

You are not understanding me either. Could you please read again my first question and you will see what I really want to know Thanks

El El mié, 14 de ago. de 2019 a las 11:38, Olivier Lambert < notifications@github.com> escribió:

Closed #258 https://github.com/xcp-ng/xcp/issues/258.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xcp-ng/xcp/issues/258?email_source=notifications&email_token=ADDHGUHQVO5CORNZSU3DX4LQEPG75A5CNFSM4ILPII32YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTBMV6DA#event-2555993868, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDHGUEU4XWBDCTGEDVPTF3QEPG75ANCNFSM4ILPII3Q .

-- Mvh, Bernardo Troncoso

Wescoeur commented 5 years ago

You can see the total physical memory with: xl info

olivierlambert commented 5 years ago

There isn't any question in your first post. I suppose you meant your 2nd post:

Is there a way to get the ram information from the machine and not the control domain?

  1. Please rename the issue title to reflect that question
  2. You posted a screenshot with the answer in big (Xen Orchestra), displaying 5.95GiB (there's always a 512MiB shift in XCP/XS API for host memory info). We display the rounded number in the Home/host view, if you use the "expand" button to see host details.
  3. You can get the info via xe CLI or xl info as @Wescoeur said
bhfmts commented 5 years ago

The facts.

olivierlambert commented 5 years ago

In short, your question is: "how could I get the host installed RAM reported to check_mk", right?

bhfmts commented 5 years ago

In short yes... I will edit the issue as you mentioned

El El mié, 14 de ago. de 2019 a las 11:52, Olivier Lambert < notifications@github.com> escribió:

In short, your question is: "how could I get the host installed RAM reported to check_mk", right?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xcp-ng/xcp/issues/258?email_source=notifications&email_token=ADDHGUFLEESE4UELSBNYZPDQEPIT7A5CNFSM4ILPII32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4IJNNY#issuecomment-521180855, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDHGUDDRFHVWMXE7MQQWJLQEPIT7ANCNFSM4ILPII3Q .

-- Mvh, Bernardo Troncoso

olivierlambert commented 5 years ago

So this is not a bug nor a feature request, the best place to ask for this would be https://xcp-ng.org/forum

See you there!

bhfmts commented 5 years ago

Thank you Olivier. See you there!