Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C135E200C1C for ; Wed, 15 Feb 2017 21:50:41 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BFD33160B5E; Wed, 15 Feb 2017 20:50:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 15381160B4D for ; Wed, 15 Feb 2017 21:50:40 +0100 (CET) Received: (qmail 8251 invoked by uid 500); 15 Feb 2017 20:50:40 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 8241 invoked by uid 99); 15 Feb 2017 20:50:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2017 20:50:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A98F91A035E for ; Wed, 15 Feb 2017 20:50:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id GSYZzeXIaBLa for ; Wed, 15 Feb 2017 20:50:38 +0000 (UTC) Received: from mail-pf0-f173.google.com (mail-pf0-f173.google.com [209.85.192.173]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 08E125F5CC for ; Wed, 15 Feb 2017 20:50:38 +0000 (UTC) Received: by mail-pf0-f173.google.com with SMTP id e4so33936875pfg.1 for ; Wed, 15 Feb 2017 12:50:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=tq+2Gle9hmw9ogqZW2uQhgcIjcLkG/XoiTHqPXp/xUE=; b=RurnAYzckATB/VRxQLyAPwSpwhM451FdBzPqd2Dj1RnNlhJ1nFhrEPNqwez+dg00IR MzMraas5JW6qwDYAreFI9DXkcd7ToPYe1k7F7IUHfEzchhS4RXtMif0sHTOeHpqEVaeZ 7l7siWQiNvppTaL18XrYTpD0nyKDq+qzxd/WSQ7M+wa/JysUK/MhcAPwgVsrAjYss0Ks grAU91GLIPk5XeU8INmJYaShwZygfxHq7u0OZJ5Yl8OdaqBhnsUtSnm7tj9IXLg6Udr6 55rsJ/bfJh7mIE0N54wiuwQhITU1fWo32sLFqdOHZoZEpmYpum//aQeWpk0/MMjr8WJc ercQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=tq+2Gle9hmw9ogqZW2uQhgcIjcLkG/XoiTHqPXp/xUE=; b=MdAG6VenvHjp8y07DqE3HTfCKl5j+hPDwXDxRGkEdDgKTY4nBFzQH29TTOO1dkunaO /4QC3SU2VKuYg/2KlD6hdFWFC0Oj9fRnt27AHsb4Vw8fsJo1XxhsQmhLVz+hAX4ZSSzR YDkySUIAMp6GksYjjttE9kv2BwMx2JYAjaP6Fan9N2RowAEVkCEWb7t5yt3lKuckaIp1 gniMLyCXQkJRUUWwnw0KtB0aEmv5K5UnkPSyVN9RTsLLTYT5vwTg06qoUUDYcBA+TcRf 1ZrAip191vD7h5PrSMy/53lFjffeUIyV2Itn0jo/rC0pHsqPw5BHF5mjCj36rE4HbH+i 15xw== X-Gm-Message-State: AMke39kNzuZXP3P3bnpT5/8SdczM9iajcP0HmtdIupjw2QZdH371zndSqNLLxNmktUrvqQ== X-Received: by 10.98.215.27 with SMTP id b27mr39555596pfh.70.1487191834660; Wed, 15 Feb 2017 12:50:34 -0800 (PST) Received: from [192.168.1.2] (50-39-112-180.bvtn.or.frontiernet.net. [50.39.112.180]) by smtp.gmail.com with ESMTPSA id p26sm9199264pfj.23.2017.02.15.12.50.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 12:50:34 -0800 (PST) Subject: Re: httpd 2.4.25, mpm_event, ssl: segfaults To: dev@httpd.apache.org References: <0a787764-e1ac-88e4-9b26-92d91bdd5d72@gmail.com> <75f8913a-d874-e2c8-d5f5-c917cf236c1e@gmail.com> <8003d8ac-0451-8149-4560-3a0210fc1507@gmail.com> From: Jacob Champion Message-ID: <221b43e3-59b4-4a87-e731-c528f3c1e0de@gmail.com> Date: Wed, 15 Feb 2017 12:50:33 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit archived-at: Wed, 15 Feb 2017 20:50:41 -0000 On 02/07/2017 02:32 AM, Niklas Edmundsson wrote: > O_DIRECT also bypasses any read-ahead logic, so you'll have to do nice > and big IO etc to get good performance. Yep, confirmed... my naive approach to O_DIRECT, which reads from the file in the 8K chunks we're used to from the file bucket brigade, absolutely mutilates our performance (80% slowdown) *and* rails the disk during the load test. Not good. (I was hoping that combining the O_DIRECT approach with in-memory caching would give us the best of both worlds. Nope. A plain read() with no explicit caching at all is much, much faster on my machine.) > We've played around with O_DIRECT to optimize the caching process in our > large-file caching module (our backing store is nfs). However, since all > our hosts are running Linux we had much better results with doing plain > reads and utilizing posix_fadvise with POSIX_FADV_WILLNEED to trigger > read-ahead and POSIX_FADV_DONTNEED to drop the original file from cache > when read (as future requests will be served from local disk cache). > We're doing 8MB fadvise chunks to get full streaming performance when > caching large files. Hmm, I will keep the file advisory API in the back of my head, thanks for that. For the next step, I want to find out why TLS connections see such a big performance hit when I switch off mmap(), but unencrypted connections don't... it's such a huge difference that I feel like I must be missing something obvious. --Jacob