Hello,
I have performance problems during execution of php code.
With strace I have recorded system calls which are called by apache httpd and what I have is quite singular.
It seems that php apache module before read file recursively scan with lstat all the path (please also see attached file).
If you take a look at attached file, it is also odd because there are many tries before read the file.
Is there somebody that could help me to understand why I have this behavior?
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali", {st_mode=S_IFDIR|0755, st_size=4096, ....}) = 0
lstat("/usr/local/sitipersonali/disco4_ml", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs", {st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes/feed-rss2.php", {st_mode=S_IFREG|0644, st_size=2513, ...}) = 0
Best regards,
Vincenzo D'Amore
I have performance problems during execution of php code.
With strace I have recorded system calls which are called by apache httpd and what I have is quite singular.
It seems that php apache module before read file recursively scan with lstat all the path (please also see attached file).
If you take a look at attached file, it is also odd because there are many tries before read the file.
Is there somebody that could help me to understand why I have this behavior?
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali", {st_mode=S_IFDIR|0755, st_size=4096, ....}) = 0
lstat("/usr/local/sitipersonali/disco4_ml", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs", {st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes/feed-rss2.php", {st_mode=S_IFREG|0644, st_size=2513, ...}) = 0
Best regards,
Vincenzo D'Amore
--
Vincenzo D'Amore
email: v.damore@xxxxxxxxx
msn: freedev@xxxxxxxxxxx
skype: free.dev
mobile: +39 349 8513251
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs", {st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes/feed-rss2.php", {st_mode=S_IFREG|0644, st_size=2513, ...}) = 0 lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs", {st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes/feed-rss2.php", {st_mode=S_IFREG|0644, st_size=2513, ...}) = 0 lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0 lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs", {st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes/feed-rss2.php", {st_mode=S_IFREG|0644, st_size=2513, ...}) = 0 stat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes/feed-rss2.php", {st_mode=S_IFREG|0644, st_size=2513, ...}) = 0 lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs", {st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes/feed-rss2.php", {st_mode=S_IFREG|0644, st_size=2513, ...}) = 0 open("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes/feed-rss2.php", O_RDONLY) = 308 fstat(308, {st_mode=S_IFREG|0644, st_size=2513, ...}) = 0 open("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes/feed-rss2.php", O_RDONLY) = 309 fstat(309, {st_mode=S_IFREG|0644, st_size=2513, ...}) = 0 mmap(NULL, 2513, PROT_READ, MAP_SHARED, 309, 0) = 0x2b352037e000 munmap(0x2b352037e000, 2513) = 0 close(309) = 0 read(308, "<?php\n/**\n * RSS2 Feed Template "..., 8192) = 2513 read(308, "", 8192) = 0 read(308, "", 8192) = 0 close(308) = 0
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php