• 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,...

  • Sb

    你怎么傻逼都行,但请不要连累我。

  • Kafka Healer

    https://programmer.group/kafka-golang-client-introduction.html 看到一篇文章,里面有一点点提到了 healer,这介绍还真的是非常准确。 Client name Advantages and disadvantages sarama The number of users is relatively large, but it is relatively difficult to use, with better performance confluent-kafka-go The encapsulation of...

  • jsonpath 里面的转义

    如果一个字段名字带点,可以这样转义 kd get pod -n redis 808098-2 -o jsonpath="{['metadata']['labels']['statefulset\.kubernetes\.io/pod-name']}" 如果要输出换行要: kd get pod -n redis 808098-2 -o jsonpath="{['metadata']['labels']['statefulset\.kubernetes\.io/pod-name']} {'\n'}"