You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
We ran into some serious performance issues with the file.tidied module. We have a temp directory with 500k files under it. A pure python os.walk with a stat of each file + dir takes 2.3s. However salt runs on that host are taking almost an hour with tons of CPU time spent by Salt. strace shows it doing about 3 stats per file and only progressing about 1 file per every 10ms.
Steps to Reproduce the behavior
Run the file.tidied state from the current master branch on a directory with over 500k files in it.
Expected behavior
I'd expect the time for the code to run to be much closer to a raw os.walk + os.stat test.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 3006.0+0na.5b18e86Dependency Versions:
cffi: Not Installedcherrypy: Not Installeddateutil: Not Installeddocker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.2libgit2: Not InstalledM2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.4msgpack-pure: Not Installedmysql-python: Not Installedpycparser: Not Installedpycrypto: 2.6.1pycryptodome: 3.16.0pygit2: Not InstalledPython: 3.7.3 (default, Oct 31 2022, 14:04:00)python-gnupg: Not InstalledPyYAML: 6.0PyZMQ: 24.0.1smmap: Not Installedtimelib: Not InstalledTornado: 4.5.3ZMQ: 4.3.4System Versions:
dist: debian 10 busterlocale: UTF-8machine: x86_64release: 4.19.0-22-amd64system: Linuxversion: Debian GNU/Linux 10 buster
The text was updated successfully, but these errors were encountered:
Description
We ran into some serious performance issues with the file.tidied module. We have a temp directory with 500k files under it. A pure python
os.walk
with astat
of each file + dir takes 2.3s. However salt runs on that host are taking almost an hour with tons of CPU time spent by Salt.strace
shows it doing about 3stat
s per file and only progressing about 1 file per every 10ms.Setup
tidy.sls:
Steps to Reproduce the behavior
Run the
file.tidied
state from the current master branch on a directory with over 500k files in it.Expected behavior
I'd expect the time for the code to run to be much closer to a raw
os.walk
+os.stat
test.Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: