Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65910 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46261 invoked from network); 18 Feb 2013 21:03:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2013 21:03:29 -0000 Authentication-Results: pb1.pair.com header.from=brendon@newgrounds.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=brendon@newgrounds.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain newgrounds.com designates 209.85.219.50 as permitted sender) X-PHP-List-Original-Sender: brendon@newgrounds.com X-Host-Fingerprint: 209.85.219.50 mail-oa0-f50.google.com Received: from [209.85.219.50] ([209.85.219.50:38910] helo=mail-oa0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DD/22-34654-12792215 for ; Mon, 18 Feb 2013 16:03:29 -0500 Received: by mail-oa0-f50.google.com with SMTP id l20so6150026oag.23 for ; Mon, 18 Feb 2013 13:03:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=ry/5Rso0NA0lR9RXLiiFPzx264H01I/JKvrAE+mQwxY=; b=HEJ3X08h0yPgDy6cL+OXfBaluDRqyyZSQH03+QUdYTJunM9VyKSzJQNwdz4FvXD1n+ ieZ3gVxnoSqS4BIpvuHVXNOyNBzpKoMW3lrFWMcWW8JoCDH1IV1DBXw0p0dxLrukceHe rVe8jOM06lvcerw2j/M+M0lYUdfF41+UV/LY289589xo0lYtP+nTK61Oi+oJGQ/ZG8Ue yvrCr8v7hXBJ+5ekaNqN6P5S6xdYfbwE/cEmHjyZR5tvVGGa6R4thvXnRHaqESVGzGM2 Bxr+T7bn7GCX+37b7PyDW5hKQL5H8Rh+hchCRB3fc+7dhxUTHcBHac4HWX4LKF+y5H1B WUKA== MIME-Version: 1.0 X-Received: by 10.60.7.167 with SMTP id k7mr6901079oea.20.1361221406368; Mon, 18 Feb 2013 13:03:26 -0800 (PST) Received: by 10.182.112.5 with HTTP; Mon, 18 Feb 2013 13:03:26 -0800 (PST) In-Reply-To: <51229088.90306@lerdorf.com> References: <51229088.90306@lerdorf.com> Date: Mon, 18 Feb 2013 16:03:26 -0500 Message-ID: To: Rasmus Lerdorf Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmZ25wp84xvD6cXqPBtkI5BKX0Yl3HzyCKiIqMXSypb0CHxlQ176r6UMLIuhzVmHk+sc4uy Subject: Re: [PHP-DEV] PHP causing high number of NFS getattr operations? From: brendon@newgrounds.com (Brendon Colby) On Mon, Feb 18, 2013 at 3:35 PM, Rasmus Lerdorf wrote: > On 02/18/2013 12:26 PM, Brendon Colby wrote: > >> Rasmus said: > Wow, people are still serving web files over NFS? Sounds painful. > > But, this is what APC's apc.include_once_override setting tries to > address. Try turning that on. Yep - I think it would be a lot more painful if we didn't use a very expensive NetApp Filer to serve NFS (the solution before the Filer would lock up every few weeks). I'm really surprised more people haven't complained about this. I've seen a few complaints about people seeing poor PHP app performance on NFS, but they usually move to gluster or something else before ever figuring it out. Maybe very few people use NFS to serve web files - who knows. I tried apc.include_once_override - no change. I set up Apache to one process and straced it. I clicked around on the site a few times and see the typical pattern: open("[PATH]/CacheFile.class.php", O_RDONLY) = 10 fstat(10, {st_mode=S_IFREG|0664, st_size=2097, ...}) = 0 fstat(10, {st_mode=S_IFREG|0664, st_size=2097, ...}) = 0 fstat(10, {st_mode=S_IFREG|0664, st_size=2097, ...}) = 0 Out of 486 open() calls, 263 were for PHP files (54%). Here is my current APC config: extension=/usr/local/lib/php/extensions/apc.so apc.enabled=1 apc.shm_segments=1 apc.optimization=0 apc.shm_size=256M apc.ttl=1200 apc.user_ttl=1200 apc.num_files_hint=300 apc.mmap_file_mask=/apc.shm.XXXXXX apc.slam_defense=0 apc.write_lock=1 apc.include_once_override=1 apc.stat=0 doesn't help. Every PHP request causes an open() and subsequent getattr() to the Filer no matter what options I set.