Skip to content

photoproc: chdir() reduces overhead syscalls and kernel context switches#370

Open
GermanAizek wants to merge 1 commit intoAtoptool:masterfrom
GermanAizek:remove-chdir
Open

photoproc: chdir() reduces overhead syscalls and kernel context switches#370
GermanAizek wants to merge 1 commit intoAtoptool:masterfrom
GermanAizek:remove-chdir

Conversation

@GermanAizek
Copy link
Contributor

Eliminating chdir and using full file paths improved performance collect metrics (photoproc) by reducing the number of system calls and kernel context switches.

I also noticed that it reduced RAM consumption by another -100kb. Although initially I was thinking optimizing atop info proc collection time.

More details my valgrind massif memory analysis:

Before commit e6efd27:

image

After commit 572ef61:

image

More details valgrind massif memory analysis in pull request description.
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

Successfully merging this pull request may close these issues.

1 participant