Skip to main content

Recently Updated Pages

Memory Pagesize

Linux Troubleshooting

某些 ARM 机器的内存分页为 64K,会导致 C 语言编写的程序无法运行,因为一般编译的时候宿主机器的分页为 4K,可以使用下面的命令查看。 getconf PAGESIZE macOS 也...

Updated 3 months ago by kugarocks

Inodes Are Exhausted

Linux Troubleshooting

Errors Tabcannot create temp file for here-document: No space left on device docker exec -it f1...

Updated 3 months ago by kugarocks

VIM

Linux Tricks

Paste Mode :set paste Space Tab set tabstop=4 " 设置 tab 键为 4 个空格 set shiftwidth=4 " 设置自动...

Updated 3 months ago by kugarocks

TCP/IP Pseudo Files in Bash

Linux Tricks

TCP/IP pseudo-files are a special feature in Bash that allow you to open network connections usin...

Updated 3 months ago by kugarocks

TCP Conn Test

Linux Tricks

code-praefect-86dc6b4f4f-ns6dj:~/code/code-gitaly# nc -zv code-gitaly-0-0 9999 code-gitaly-0-0 (1...

Updated 3 months ago by kugarocks

System Profile

Linux Tricks

Centos echo -e "\n=== OS ===\n$(cat /etc/redhat-release)\n\n=== Kernel ===\n$(uname -r)\n\n=== C...

Updated 3 months ago by kugarocks

getent

Linux Tricks

If pod has no curl or nslookup, use getent instead. getent ahosts foobar.namespace.svc.cluster.lo...

Updated 3 months ago by kugarocks

Clear File Content

Linux Tricks

Both methods can be used to clear a file's content, but they differ in implementation and details...

Updated 3 months ago by kugarocks

Logical Volume Manager

Linux Storage

LVM 是 Logical Volume Manager(逻辑卷管理器)的缩写。 它是一种在 Linux 系统中管理磁盘存储空间的技术,主要功能包括: 把多个物理磁盘或磁盘分区(Physica...

Updated 3 months ago by kugarocks

OOM Score

Linux Process

修改 oom_score 可以在某些情况下有用,特别是在管理进程的内存回收优先级时。oom_score 是 Linux 内核用于选择哪个进程应该在内存不足时(触发 OOM Killer 时)被终...

Updated 3 months ago by kugarocks