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

getdirentries() and perf #4

Open
moreati opened this issue Sep 19, 2022 · 1 comment
Open

getdirentries() and perf #4

moreati opened this issue Sep 19, 2022 · 1 comment

Comments

@moreati
Copy link
Owner

moreati commented Sep 19, 2022

getdirentries-perf.data.gz

alex@bertha:~/src/cpython$ rm -rf /tmp/base; mkdir -p /tmp/base/{a..z}{000..999}; touch /tmp/base/{a..z}{000..999}/f
alex@bertha:~/src/cpython$ ls /tmp/base | wc -l
26000
alex@bertha:~/src/cpython$ rm getdirentries-perf.data
rm: cannot remove 'getdirentries-perf.data': No such file or directory
alex@bertha:~/src/cpython$ sudo perf record -o getdirentries-perf.data -F max ./python -c "import os; os.listdir('/tmp/base')"
info: Using a maximum frequency rate of 25,750 Hz
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.049 MB getdirentries-perf.data (868 samples) ]
alex@bertha:~/src/cpython$ sudo perf trace -S -i getdirentries-perf.data 

 Summary of events:

@moreati
Copy link
Owner Author

moreati commented Sep 19, 2022

alex@bertha:~/src/cpython$ uname -a
Linux bertha 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

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

1 participant