• Unshare

    https://man7.org/linux/man-pages/man1/unshare.1.html The unshare command creates new namespaces (as specified by the command-line options described below) and then executes the specified program. If program is not given, then “${SHELL}” is run...

  • 逃避

    当问题不能逃避时,解决问题才是必要的。 如果能逃避的话,逃避多简单啊,逃避本身就是解决问题。

  • Kafka Get Topic Offset

    ./bin/kafka-run-class.sh kafka.tools.GetOffsetShell –broker-list node1.kafka.es.ops.fraaws.tripws.com:9092 –topic cloud-harbor-registry

  • Setuid

    File modes The setuid and setgid bits are normally represented as the values 4 for setuid and 2 for setgid in the high-order octal digit of the file mode. For...

  • Tcp Error Ack

    如果 tcp 数据里面的 ack 是错误的,会发生什么呢?

  • Golang Broken Pipe

    https://gosamples.dev/broken-pipe/ package main import ( "errors" "log" "net" "os" "syscall" "time" ) func server() { listener, err := net.Listen("tcp", ":8080") if err != nil { log.Fatal(err) } defer listener.Close() conn,...

  • Prlimit

    prlimit 可以通过系统调用更改一下进程的 limit 值。 /proc/pid/limit 查看进程 limit

  • Soft Hard Limit In Linux

    https://docs.oracle.com/cd/E19455-01/805-7229/6j6q8svfe/index.html You can set both soft and hard limits. The system will not allow a user to exceed his or her hard limit. However, a system administrator may set a...

  • Core

    core(5) — Linux manual page 官方手册里面讲了 core dump 的一些配置和行为特征,简单总结一下。 什么情况下,不会生成 core dump。 core dump 的名字配置 /proc/sys/kernel/core_pattern 主要通过这个配置 /proc/sys/kernel/core_uses_pid 一个更基础(更简单?)的配置 但这里有些疑惑,如果 pattern 不是用的默认值,那 used_pid 是不是还生效呢? 将 core 文件管道到另外的程序 哪些 mapping 可以被写到...

  • Linux Memory Contoller

    Memory Resource Controller - The Linux Kernel documentation Each cgroup maintains a per cgroup LRU which has the same structure as global VM. When a cgroup goes over its limit,...