Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80957 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63030 invoked from network); 22 Jan 2015 07:40:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2015 07:40:49 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.180 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.180 mail-qc0-f180.google.com Received: from [209.85.216.180] ([209.85.216.180:40613] helo=mail-qc0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/50-61273-F79A0C45 for ; Thu, 22 Jan 2015 02:40:47 -0500 Received: by mail-qc0-f180.google.com with SMTP id r5so46693qcx.11 for ; Wed, 21 Jan 2015 23:40:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=/meMIaGk/Zq+SnCe0bjYAm3+670AsfYYgkDXUx7LD1I=; b=E+ITHKAXhsou06/PNrjfFgKXX/iejnvdL5Q7Ulhjhcm6nTcLkdmFvNfje8XOVYAOQR F2OWDAMDEnowv/6mQYXIfWItcKYEcee/n8evUAPu9KGkDKCP3nxzfQ/KvDEvmSCCk1nl zuuuIL0Xs7H5iHSIVIIIeLy0JZErNqgbCfEtvR3Gxo/0REK6e46QQvDxcGmXgy1yR2ie gBYwj5C73Wz3/wiWn25ikmTBlCQX/6DlJUyF7CVrrz4zeq9hnr+8IG1GjZA5CW7gQSVs jJU/4xNPx17NJvj4OGMOtKjAY0qqhPeD9b/MDT6/e9gTwxaPwXdh/XGCffU5WybYAJOK RxVw== X-Received: by 10.140.20.226 with SMTP id 89mr63291283qgj.43.1421911996130; Wed, 21 Jan 2015 23:33:16 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.93.70 with HTTP; Wed, 21 Jan 2015 23:32:35 -0800 (PST) In-Reply-To: References: Date: Thu, 22 Jan 2015 16:32:35 +0900 X-Google-Sender-Auth: qNvI3pbXqyPQ8QkuNun300BQb7E Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c1257e6e6e1d050d38af3e Subject: Re: [PHP-DEV] [VOTE] RFC: Introduce session_start() options - read_only, unsafe_lock, lazy_write and lazy_destroy From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c1257e6e6e1d050d38af3e Content-Type: text/plain; charset=UTF-8 Hi all, On Thu, Jan 22, 2015 at 3:42 PM, Yasuo Ohgaki wrote: > Since it should be faster, I tried to took some benchmarks. Then I found > extremely slow > session (files handler) performance with CLI built in web server > regardless of may patch. > > The script I used is > > session_start(); > $_SESSION['test'] = 1234; > var_dump(session_id()); > ?> > > Fedora 21 PHP 5.6 (RPM package) > Requests per second: 5916.41 [#/sec] (mean) > > Fedora 21 Master (no debug, no zts) > Requests per second: 949.56 [#/sec] (mean) > > Simple script like "echo 1234;" seems working well. > > Does anyone have any insight on this? > I think I found what's wrong. I've switched to btrfs recently. It seems btrfs performs very poor with large directory entry compared to ext4. With ext4, I think I didn't observe much performance drop, but btrfs drops performance a _lot_ with large directory entry. I didn't expect this. It seems I need ext4 (or reiser4/reiserfs/xfs) Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c1257e6e6e1d050d38af3e--