You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Slow require once

From Wikitech-static
Jump to navigation Jump to search

Here are the syscalls made on the second and subsequent invocations of require_once("Setup.php"):

stat64("/usr/local/apache/common/php-1.5/Setup.php", 0xbfffafe0) = -1 ENOENT (No such file or directory)
stat64("/usr/local/apache/common/php-1.5/includes/Setup.php", {st_mode=S_IFREG|0664, st_size=8763, ...}) = 0
getcwd("/home/wikipedia/common/php-1.5/maintenance", 4096) = 43
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local", {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/apache", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/apache/common", {st_mode=S_IFLNK|0777, st_size=22, ...}) = 0
readlink("/usr/local/apache/common", "/home/wikipedia/common", 4096) = 22
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/wikipedia", {st_mode=S_IFDIR|0755, st_size=16384, ...}) = 0
lstat64("/home/wikipedia/common", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64("/home/wikipedia/common/php-1.5", {st_mode=S_IFDIR|0775, st_size=12288, ...}) = 0
lstat64("/home/wikipedia/common/php-1.5/includes", {st_mode=S_IFDIR|0775, st_size=16384, ...}) = 0
lstat64("/home/wikipedia/common/php-1.5/includes/Setup.php", {st_mode=S_IFREG|0664, st_size=8763, ...}) = 0
open("/home/wikipedia/common/php-1.5/includes/Setup.php", O_RDONLY) = 8
fstat64(8, {st_mode=S_IFREG|0664, st_size=8763, ...}) = 0
fstat64(8, {st_mode=S_IFREG|0664, st_size=8763, ...}) = 0
lseek(8, 0, SEEK_CUR)                   = 0
lseek(8, 0, SEEK_SET)                   = 0
close(8)                                = 0