会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
rincloud
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
10
下一页
2026年7月17日
bufpool 脏数据例子
摘要: package main import ( "fmt" "math/rand" "runtime" "sync" "time" ) var bufPool = &sync.Pool{ New: func() any { buffer := make([]byte, 0, 2) return &buf
阅读全文
posted @ 2026-07-17 16:43 rincloud
阅读(3)
评论(0)
推荐(0)
2026年6月13日
umount 什么时候sync
摘要: 一、先理清:只有卸载真实块设备挂载根、且 super_block 无其他引用时,才会触发 sync_filesystem 全局刷脏 mount --bind 只是别名,umount bind 目标不会刷;下面构造能真实触发 umount 时刷脏的完整可复现例子(XFS/ext4 通用)。 前置准备:
阅读全文
posted @ 2026-06-13 18:08 rincloud
阅读(15)
评论(0)
推荐(0)
umount 如何sync dir的
摘要: 1. static int do_umount(struct mount *mnt, int flags) 代码中 event++; if (flags & MNT_DETACH) { if (!list_empty(&mnt->mnt_list)) umount_tree(mnt, UMOUNT_
阅读全文
posted @ 2026-06-13 16:36 rincloud
阅读(4)
评论(0)
推荐(0)
2026年2月26日
fedora 启动例子
摘要: fedora 启动例子https://codeofconnor.com/booting-cloud-images-with-qemu/
阅读全文
posted @ 2026-02-26 19:48 rincloud
阅读(7)
评论(0)
推荐(0)
2026年2月13日
busybox vscode 环境
摘要: https://zhuanlan.zhihu.com/p/12982590356 CONFIG_MEMCG 要开启 memory 写不下去 CONFIG_BPF_SYSCALL 要开启 使用vscode单步调试 qemu-img create -f raw rootfs.img 512M mkfs
阅读全文
posted @ 2026-02-13 15:28 rincloud
阅读(6)
评论(0)
推荐(0)
2026年2月7日
golang 闭包
摘要: 一、闭包的通俗定义:带 “背包” 的函数 先给一个最容易理解的比喻: 普通函数就像一个空着手出门的人,只能用自己手里的东西(参数、内部变量); 闭包就像一个带着背包出门的人,背包里装着它从 “家里”(外层函数)带出来的东西(外层变量),不管走到哪里(被传到哪里调用),都能拿出背包里的东西用,还能修改
阅读全文
posted @ 2026-02-07 15:22 rincloud
阅读(43)
评论(0)
推荐(0)
2025年11月18日
nerdbox 进程树
摘要: root 3525 1.6 3.0 4557956 120436 pts/1 Sl 22:45 0:01 /usr/local/bin/containerd-shim-nerdbox-v1 -namespace default -id test -address /run/containerd/co
阅读全文
posted @ 2025-11-18 22:47 rincloud
阅读(13)
评论(0)
推荐(0)
2025年9月4日
crun-vm 进程树
摘要: 进程树 root 6128 1.0 1.9 2130200 78852 ? Ssl 22:48 0:03 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --selinux-enabled --userla
阅读全文
posted @ 2025-09-04 22:56 rincloud
阅读(14)
评论(0)
推荐(0)
2025年7月30日
nginx 文件服务器
摘要: 🔧 一、部署基础文件服务器 1. 创建本地目录 用于存放配置和文件: bashCopy Code mkdir -p /opt/nginx/conf /opt/nginx/html /opt/nginx/logs ▿ 目录作用: /opt/nginx/conf:存放 Nginx 配置文件 /
阅读全文
posted @ 2025-07-30 14:32 rincloud
阅读(339)
评论(0)
推荐(0)
2025年6月4日
docker 镜像
摘要: docker pull nginx@sha256:0d17b565c37bcbd895e9d92315a05c1c3c9a29f762b011a10c54a66cd53c9b31 /var/lib/docker/image/overlay2/layerdb/sha256 所有chainID目录(解压
阅读全文
posted @ 2025-06-04 17:46 rincloud
阅读(77)
评论(0)
推荐(0)
1
2
3
4
5
···
10
下一页
公告