I have to collect cpuinfo and meminfo from hundreds of machines in preparation of updating our inventory and Xen version. Since we pin cpu and ram for dom0, this mangles the info. Is there way to get the real information? I know that xm top will give me the true RAM, but I need a non-interactive method. Specifically, I need the following real, unobfuscated/hidden info: Total RAM Processor (from cpuinfo) or anything else that can give me a true count of vCPUs. CPU MHz (from cpuinfo) model name (from cpuinfo) flags (from cpuinfo) I realize that CPU MHz and model name are still there and usable as is, I just listed them for completeness sake.
On Mon, 2012-11-19 at 18:02 +0000, Jeff C wrote:> I have to collect cpuinfo and meminfo from hundreds of machines in preparation of updating our inventory and Xen version. Since we pin cpu and ram for dom0, this mangles the info. Is there way to get the real information? I know that xm top will give me the true RAM, but I need a non-interactive method. > > Specifically, I need the following real, unobfuscated/hidden info: > > Total RAM > Processor (from cpuinfo) or anything else that can give me a true count of vCPUs. > CPU MHz (from cpuinfo) > model name (from cpuinfo) > flags (from cpuinfo) > > I realize that CPU MHz and model name are still there and usable as > is, I just listed them for completeness sake.I think the output of xm info contains everything want which isn''t already in cpuinfo. Ian.
----- Original Message -----> From: "Ian Campbell" <Ian.Campbell@citrix.com> > To: "Jeff C" <jeff@8bitnet.com> > Cc: xen-users@lists.xen.org > Sent: Monday, November 19, 2012 3:00:16 PM > Subject: Re: [Xen-users] Finding real cpuinfo and meminfo > > I think the output of xm info contains everything want which isn''t > already in cpuinfo.Thanks, I believe that info will work. Can anyone tell me if any cpuflags other than vmx/svm are removed from the /proc/cpuinfo output? I forgot to previously mention that I''m using xen-3.4.3 on centos-5.x, if that matters.
On Mon, 2012-11-19 at 20:24 +0000, Jeff C wrote:> ----- Original Message ----- > > From: "Ian Campbell" <Ian.Campbell@citrix.com> > > To: "Jeff C" <jeff@8bitnet.com> > > Cc: xen-users@lists.xen.org > > Sent: Monday, November 19, 2012 3:00:16 PM > > Subject: Re: [Xen-users] Finding real cpuinfo and meminfo > > > > I think the output of xm info contains everything want which isn''t > > already in cpuinfo. > > Thanks, I believe that info will work. Can anyone tell me if any > cpuflags other than vmx/svm are removed from the /proc/cpuinfo output?I think that will vary across both hypervisor and kernel versions, e.g. various versions of both will mask things like xsave I think. If it is important to you I think the best bet would be to execute the cpuid instruction yourself from userspace.> I forgot to previously mention that I''m using xen-3.4.3 on > centos-5.x, if that matters.