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

Excessive memory consumption with multiple modified files in CLI #120

Open
homm opened this issue May 6, 2022 · 1 comment
Open

Excessive memory consumption with multiple modified files in CLI #120

homm opened this issue May 6, 2022 · 1 comment

Comments

@homm
Copy link

homm commented May 6, 2022

$ /usr/bin/time -v dssim ./art.png ./speed8/art_q30_118971.png
0.02005356	./speed8/art_q30_118971.png
	User time (seconds): 1.37
	Maximum resident set size (kbytes): 396972

$ /usr/bin/time -v dssim ./art.png ./speed8/art_q3{0,1,2,3}_*.png
0.02005356	./speed8/art_q30_118971.png
0.01835660	./speed8/art_q31_130632.png
0.01720346	./speed8/art_q32_140795.png
0.01625887	./speed8/art_q33_148772.png
	User time (seconds): 3.56
	Maximum resident set size (kbytes): 687496

$ /usr/bin/time -v dssim ./art.png ./speed8/art_*.png
Command terminated by signal 9
	User time (seconds): 17.01
	Maximum resident set size (kbytes): 1836224

As command is terminated before starting any output, I suppose it tries to load the whole set in memory before any analyzing.

@kornelski
Copy link
Owner

It does indeed try to load them all at once. As a workaround you can use xargs -n.

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