Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ossfs 挂载文件数量疑问 #39

Closed
DeadLion opened this issue Sep 2, 2016 · 4 comments
Closed

ossfs 挂载文件数量疑问 #39

DeadLion opened this issue Sep 2, 2016 · 4 comments

Comments

@DeadLion
Copy link

DeadLion commented Sep 2, 2016

oss 中没有分文件夹,根目录下文件很多。
那用 ossfs 挂载到一个文件夹的话会超过文件数量限制吗?

@DeadLion
Copy link
Author

DeadLion commented Sep 2, 2016

@rockuw

@rockuw
Copy link
Contributor

rockuw commented Sep 3, 2016

会。http://stackoverflow.com/questions/8238860/maximum-number-of-files-folders-on-linux

而且如果文件个数多的话,list文件会非常慢。

@DeadLion
Copy link
Author

DeadLion commented Sep 3, 2016

@rockuw 那就意味着如果 oss 中没有按文件夹分的话,其中文件数量超过 linux 限制的话就会出现异常咯

@GeekStyle
Copy link

不会,根据官方文档: https://help.aliyun.com/knowledge_detail/39568.html?spm=a2c4g.11186623.4.3.7W7j8P
在一般的文件系统中,当单个目录下存放的文件较多的时候是会影响文件的读写速度。但是在OSS中,目录仅仅是一个逻辑概念,一个文件的目录仅仅是该object的key值的前缀,并不影响该object的存放位置以及读取速度。但是相应的带来的缺点就是无法对某个目录下的所有文件进行汇总计算。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants