• 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'}"

  • Write String To Stdout Benchmark

    使用 os.Stdout.Write 并不比 fmt.Println 快,甚至还慢了一点点儿。

  • 没有Accept的Socket是不是显示在ESTABLISHED

    在 MACOS 测试,会显示。 import socket import time HOST = "" # Symbolic name meaning all available interfaces PORT = 50007 # Arbitrary non-privileged port with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.bind((HOST,...

  • Sb

    萌和傻逼是绝对对立的,如果一个行为傻逼,那绝对就不会是萌。

  • Slice Thread Safe Test

    package main func main() { arr := make([]int, 0) go func() { for i := range arr { print(i) } }() go func() { for i := 0; i <...