新增RustFs文档,修改了一些文件
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2025-12-25 00:39:45 +08:00
parent b44594def6
commit e5581862c5
10 changed files with 435 additions and 4 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/bash
#############################################################################################
# 用途: 查看当前inotify实例使用情况
# 作者: 丁辉
# 编写事件: 2025-12-25
#############################################################################################
echo "=== Inotify 实例使用统计 ==="
echo "当前配置限制: $(cat /proc/sys/fs/inotify/max_user_instances)"
echo ""
# 按用户统计
sudo find /proc/*/fd -lname anon_inode:inotify 2>/dev/null | \
cut -d/ -f3 | xargs -I '{}' ps --no-headers -o '%U' -p '{}' | \
sort | uniq -c | sort -nr | head -20
echo ""
echo "=== 推荐值计算 ==="
current_used=$(sudo find /proc/*/fd -lname anon_inode:inotify 2>/dev/null | wc -l)
echo "当前使用: $current_used 个实例"
recommended=$((current_used * 3))
echo "推荐配置: $recommended (当前使用量的3倍)"
echo "最小安全值: $((current_used * 2))"