“man top”所说的是: RES = CODE + DATA
q: RES -- Resident size (kb)
The non-swapped physical memory a task has used.
RES = CODE + DATA.
r: CODE -- Code size (kb)
The amount of physical memory devoted to executable code, also known as the 'text resident set' size or TRS.
s: DATA -- Data+St
我在R中加载了一个6 GB的数据集,运行在Centos Linux 6.3,128 GB RAM,16核机器上。同时,我使用top命令监视RAM的使用情况。大约104分钟后,在top命令的输出中,VIRT列显示189 GB。
现在,我不能理解VIRT列为什么显示超过128 is (这是限制)。是否正在使用某种类型的共享内存?
public class Main {
public static void main(String[] args) {
System.out.println("Hello World!");
try {
Thread.sleep(10000);
} catch(InterruptedException e) {
/* ignored */
}
}
}
下面是我运行这个小程序时top所说的话:
PID USER PR NI
我试图看看库伯内特斯吊舱占用了多少内存和CPU。为此,我运行了以下命令:
kubectl top pod podname --namespace=default
我得到了以下错误:
W0205 15:14:47.248366 2767 top_pod.go:190] Metrics not available for pod default/podname, age: 190h57m1.248339485s
error: Metrics not available for pod default/podname, age: 190h57m1.248339485s
我该如何处理这个错误