-
Notifications
You must be signed in to change notification settings - Fork 815
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
PHP command line app is very slow (stat syscall suspected) #2060
Labels
Comments
chx
changed the title
stat/fstat/lstat syscall is very slow
PHP command line app is very slow
May 5, 2017
chx
changed the title
PHP command line app is very slow
PHP command line app is very slow (stat syscall suspected)
May 5, 2017
But that's git and seeking? Or is it the same issue? |
Seek in the issue title was just speculation by the OP. The problem with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ver
at a Windows Command Prompt)Version 10.0.15063. lsb_release -a reports Ubuntu 16.04.2 LTS.
I am running a PHP command line application.
It's slow as molasses.
<cmd>
is failing, then runstrace -o strace.txt -ff <cmd>
, and post the strace.txt output here)It's not failing, it's just slooooow. I'd rather not post the whole thing, I sorted out the syscalls for you: 1984 read, 2043 mmap, 4182 access, 8541 open, 8643 close, 12291 fstat, 12990 getdents, 57261 stat, 66285 lstat calls, the entire syslog is 191371 lines long (if you need the whole log, email me chx1975 gmail and I will send it over). Yeah, that's a lot but then again I have an SSD and 24GB of RAM and the Xeon E3 equivalent of an i7 2600 so I expect it to be quite fast which on Linux it is. Perhaps the results of
{l,f,}stat
is not cached...? There are only 11917 files in the entire tree. How can I help? I am an expert in PHP and if badly pushed, I can use gdb :) (I wrote the answer on SO on how to use them together. That was hard.)On a whole another note, mongodb is slow as well. Should I file a separate issue?
The text was updated successfully, but these errors were encountered: