gpt4 book ai didi

amazon-s3 - S3FS - 递归 CHOWN/CHMOD 需要很长时间

转载 作者:行者123 更新时间:2023-12-02 23:17:29 25 4
gpt4 key购买 nike

当您有几个目录(大约 70 个),每个目录都包含相当多的文件时,s3fs 挂载上的任何递归 chownchmod 命令都会花费很长时间。

这两个命令都可能需要近 24 小时。我必须这样做,否则 Apache 进程无法访问这些文件/目录。正常挂载的命令大约需要 20 秒。

安装方式:

/storage -o noatime -o allow_other -o use_cache=/s3fscache -o default_acl=public-read-write

/etc/fuse.conf中:

user_allow_other

使用最新版本:1.78

关于如何更快地做到这一点有什么想法吗?

最佳答案

过了一段时间,我发现并行进程可以加快速度。示例:

find /s3fsmount/path/to/somewhere -print | xargs --max-args=1 --max-procs=100 chmod 777

它仍然很慢,但远没有以前那么慢。

关于amazon-s3 - S3FS - 递归 CHOWN/CHMOD 需要很长时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30733158/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com