Archive

「我干了什么 究竟拿了时间换了什么」
Show All 116 OpenResty 24 Nginx 16 LuaJIT 9 gdb 5 FFI 4 Jemalloc 4 Lua 4 GCC 3 Memory 3 SSL/TLS 3 Shared Memory 3 Test 3 Valgrind 3 crash 3 curl 3 disk 3 glibc 3 performance 3 Address Sanity 2 Admin 2 C 2 GC 2 GDB 2 HTTP 2 Memleak 2 Mock 2 OpenSSL 2 Quality 2 TCP 2 VPN 2 client hello 2 coredump 2 deb 2 debug 2 debug_frame 2 eh_frame 2 eh_frame_header 2 epoll 2 logrotate 2 memory 2 nginx 2 picture 2 rpm 2 systemd 2 unwind 2 upstream 2 开发环境,How-To 1 Algorithm 1 BuildID 1 Cache 1 Certificate 1 Chrome 1 Coding 1 Copy 1 Cross compile 1 Curl 1 DDOS 1 DEB,Packaging 1 Dynamic link 1 EBPF 1 Errorlog 1 Escape Sequence 1 Go 1 HTTP proxy 1 HTTP3 1 Heap 1 How-To 1 KVM 1 LD_PRELOAD 1 Linux 1 Lua Script 1 Makefile 1 Memory leak 1 Network 1 OpenTelemetry 1 Performance 1 Perl 1 Process Memory 1 RPM 1 Ratelimit 1 Request Time 1 Search Path 1 Shdict 1 Stack 1 Thread 1 Upstream 1 Web 1 WireGuard 1 astyle 1 boot 1 boringssl 1 bridge 1 brk 1 bytecode 1 compilation 1 coroutine 1 cosocket 1 debugging 1 debuginfo 1 debuginfo-install 1 debuginfod 1 docker 1 dwarf 1 dynamic module 1 extension 1 ffi.copy 1 find 1 git 1 grubby 1 hooks 1 http3 1 ipset 1 iptables 1 jq 1 kvm 1 link 1 linux 1 location 1 luarocks 1 madvise 1 mempcpy 1 memset 1 metatable 1 mmap 1 munmap 1 ngx.shared 1 nmcli 1 objdump 1 ocserv 1 opencc 1 openresty 1 openssl 1 override 1 packaging 1 photorec 1 pool 1 proc 1 python 1 reading code 1 resty.core 1 sbrk 1 slice_range 1 snprintf 1 spec 1 ssh 1 stpncpy 1 strncpy 1 systemctl 1 systemtap 1 test 1 timing 1 tls 1 tokenizer 1 tools 1 transparent 1 tunning 1 ulimit 1 vscode 1 vsnprintf 1
2025

Why YYJSON has high performance


Print function name when entering a function using GDB


2024

Cross compile


lua_package_path of the OpenResty


Nginx Shared Memory Fragment


使用 OpenTelemetry 采集 Nginx 访问日志/错误日志/指标数据/Trace 数据


How to estimate Nginx shared memory size


parsing file by token


luarocks for openresty


resty.core not found


Lua 协程缓存池的实现


cosocket 的上游元表是如何生效的


为什么同一个上游的响应时间差别很大


Heap Algorithm and C implememtation


How to dump a process memory


Lua GC 接口探讨


How to debug web problem using curl


How to write error log when checking the arguments?


How to do request ratelimt on OpenResty?


使用 OpenResty 共享字典的注意事项


再论 C 语言的字符转义


vs code 使用


使用 git pre-commit hooks 做好代码提交前的检查


crash caused by vsprintf


Nginx location 匹配规则


Add Bridge Interface with nmcli


使用 GDB 跟踪 Lua 内存分配


如何安全拷贝字符串


使用软件包安装软件或者是通过拷贝的覆盖的方式安装软件


OpenResty interacting with Redis from a script


Perl notes


2023

自签名证书浏览器调试


多线程会产生多少额外的内存开销


为 OpenResty 编译 OpenTelemetry


how does nginx http slice module work


Add gnu BuildID for Go program


How to debug linux crash


Examples of Linux find command


An exmaple of ssl_certificate_by_lua


HTTP error emulator


DWARF op code


systemctl examples


gdb 读取 tls 变量


openssl 撤销证书


How to use OpenResty shared dictionary


how to build boringssl for HTTP3


5 分钟帮客户定位 52G 内存泄漏的原因


一个 LuaJIT 的 ffi.copy 内存越界导致进程崩溃的问题


我常用的 docker 命令


U 盘照片恢复


OpenResty 拦截并使用 HTTP 代理流量


build curl that support http3 from source code


Linux 网络调优


Linux coredump 配置


如何更改启动的内核


给 kvm 虚拟机扩展磁盘分区


Nginx EBPF 是怎么工作的


OpenResty 集成 lfs 模块


OpenResty 怎么做日志切割


ocserv 组网配置


wireguard 组网配置


mariner Linux 系统在 ssh 退出后杀死了手动启动的后台进程


OpenResty 过滤响应体


When Will Nginx Send 'Connection: close' Header


Unwinding the stack the hard way


C/C++/Rust 的堆栈回溯是怎么实现的


如何运行 systemtap 的测试用例


Get Memory from OS and Put Memory back to OS


Limit the Resource with ulimit


Makefile 问题记录


使用 jq 分析 json 文件


curl send client hello after 200ms


使用 Jemalloc 作为 nginx 的默认内存分配器


使用 Python 脚本删除重复的图片


Why got the TCP reset pakcet


proc of the linux


How to compile opencc


How to install debuginfo


KVM manage


LuaJIT 字节码学习


How to compile nginx dynamic module


使用 jemalloc 检测内存问题


使用 jemalloc 的 prof_leak 功能分析内存泄漏


astyle 格式化 C 代码


给 TLS 添加扩展头部


给 nginx 开启 TCP Fast Open 的支持


使用 jemalloc 的 prof.dump 功能分析内存泄漏


从一个小例子学习 Lua GC 回收是怎么回事


如何阅读代码 -- 巧借 GCC 选项分析真正使用的宏


如何阅读代码 -- LuaJIT GC 对象代码分析


OpenResty Lua GC 优化


SSL/TLS 握手开销测试


如何利用多块不同规格的磁盘来打造高效的缓存


使用 ipset 打造低成本的 IP 防火墙


Google Baidu 哪家强


Add Open Telemetry Support for OpenResty


OpenResty 是怎么保证软件质量的


OpenResty 是如何打包的


动态链接是怎么回事


OpenResty 开发环境搭建


LuaJIT 代码片段


LuaJIT FFI 的注意事项


LuaJIT 的参数传递


使用 GDB 验证动态链接的过程


LuaJIT 的参数传递


查看添加到 epoll 的文件描述符对应的事件


通过 LuaJIT FFI 接口集成原有的 C 模块


排查 PostgreSQL 慢查询发现 mlocate-updatedb 导致的 IO 瓶颈


谁占用了我的磁盘空间


怎么选择内存分配器


SSH 打造开发环境


nginx worker_shutdown_timeout 是怎么工作的


2022

Socket 的选项详解


Glibc Memory Allocation Tune


2021

为什么 CURL 没有收到响应


2020

epoll 的一些学习笔记