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

get_directory_size takes too long on NFS with TBs of data #57

Open
bozicm opened this issue Nov 20, 2023 · 1 comment
Open

get_directory_size takes too long on NFS with TBs of data #57

bozicm opened this issue Nov 20, 2023 · 1 comment

Comments

@bozicm
Copy link

bozicm commented Nov 20, 2023

Hello,

core get_directory_size function is used classes/task/report_async.php, which uses linux command du. In our setup we have use north of 30TB of moodledata (not including course backups). The moodledata is mounted via NFS which then makes it near impossible to calculate total with du because of iowait. Wouldn't it make sense to just use df on mountpoint in such case?

@danmarsden
Copy link
Member

pull requests welcome :-) - keep in mind the reason it uses du is because Moodle has a "pathtodu" config setting - if we swap out to using df it should be optional as not all servers (eg windows etc) will have a df option, but also may have other things mounted on that same disk.

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

2 participants