获得VPS真正的CPU频率和RAM大小

有什么办法让VPS真正的CPU频率和内存大小(我对Linux和Windows感兴趣)?

哦,对不起,我没有彻底读过这个问题。 但是我想,你可以使用linux提供的信息来猜测它。 但这并不准确,因为根据虚拟化硬件的定义,可以“伪造”提供的所有信息。

假设你有直接的Linux ssh访问VPS

获取CPU / RAM信息

您可以使用:

cat /proc/cpuinfo 

为了获得CPU的速度和它的“起源”

 processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 2 model name : QEMU Virtual CPU version 0.12.3 stepping : 3 cpu MHz : 3074.290 cache size : 4096 KB fpu : yes fpu_exception : yes cpuid level : 4 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good pni cx16 popcnt hypervisor lahf_lm bogomips : 6148.58 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: 

获得Ram的大小,你可以简单地键入:

 free -m 

这会告诉你这个输出:

  total used free shared buffers cached Mem: 1003 177 826 0 14 130 -/+ buffers/cache: 31 971 Swap: 2053 0 2053 

有趣的是,lshw命令显示了一些不同的信息:

  *-cpu description: CPU product: QEMU Virtual CPU version 0.12.3 vendor: Intel Corp. physical id: 401 bus info: cpu@0 slot: CPU01 size: 2GHz capacity: 2GHz width: 64 bits capabilities: fpu fpu_exception wp de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx x86-64 up rep_good pni cx16 popcnt hypervisor lahf_lm *-memory description: System Memory physical id: 1000 size: 1GiB capacity: 1GiB *-bank description: DIMM RAM physical id: 0 slot: DIMM 0 size: 1GiB width: 64 bits 

猜测CPU

看bogomips,现在我们可以使用谷歌猜测CPU的制造商。 随着bogomips我们可以开始使用Googlesearch:在这种情况下,似乎是,

 Intel(R) Core(TM) i3 CPU 540 @ 3.07GHz 

我不太相信这一点。 由于这从一个VPS hetzner.de ..但是我们只得到一个2GHz的单CPU与3.07 ghz的4个核心。