Advanced Search
Search Results
3 total results found
CPU Memory Stat
K8s
Commands
Node Stat #!/bin/bash echo -e "NODE\t\t\tCPU Requests\tCPU Limits\tMemory Requests\tMemory Limits" for node in $(kubectl get nodes -o name | cut -d'/' -f2); do kubectl describe node "$node" | awk -v node="$node" ' BEGIN { cpu_req = cpu_lim = m...
OOM Score
Linux
Process
修改 oom_score 可以在某些情况下有用,特别是在管理进程的内存回收优先级时。oom_score 是 Linux 内核用于选择哪个进程应该在内存不足时(触发 OOM Killer 时)被终止的一个指标。 oom_score 的作用 oom_score:表示进程被杀死的优先级。数值越高,表示该进程在 OOM(Out of Memory,内存不足)时被杀死的可能性越大。每个进程都有一个 oom_score 值,表示该进程在 OOM 情况下的杀死优先级。 值范围:0 到 1000,越高的值表示进程越容易被 O...
Memory Pagesize
Linux
Troubleshooting
某些 ARM 机器的内存分页为 64K,会导致 C 语言编写的程序无法运行,因为一般编译的时候宿主机器的分页为 4K,可以使用下面的命令查看。 getconf PAGESIZE macOS 也是 4K