Open RunningFaster opened 2 months ago
disk.Usage()
does not use goroutine, neither disk.Partitions()
on Linux. It is therefore curious that such an error should occur. One possible reason is that your system have more than 10000 partitions. disk.Usage()
includes all file system such as squashfs which snap uses. Therefore, it may possibly exceed 10000.
Providing the length of parts
, how far into that slice it gets before bombing out, and which partition caused the overload might be helpful.
Describe the bug
runtime: program exceeds 10000-thread limit
When I use the toolkit to get disk usage, I get an error at the top.
To Reproduce
Expected behavior [A clear and concise description of what you expected to happen.]
Environment (please complete the following information):
ver
]/etc/os-release
and the result ofuname -a
]Linux s-6160 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
sw_vers
anduname -a
freebsd-version -k -r -u
anduname -a
]uname -a
]Additional context [Cross-compiling? Paste the command you are using to cross-compile and the result of the corresponding
go env
]