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 163C1200C3A for ; Fri, 31 Mar 2017 21:38:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 14D25160B80; Fri, 31 Mar 2017 19:38:20 +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 5D9E0160B7C for ; Fri, 31 Mar 2017 21:38:19 +0200 (CEST) Received: (qmail 72133 invoked by uid 500); 31 Mar 2017 19:38:18 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 72123 invoked by uid 99); 31 Mar 2017 19:38:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Mar 2017 19:38:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0CA3CC05E9 for ; Fri, 31 Mar 2017 19:38:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.479 X-Spam-Level: X-Spam-Status: No, score=0.479 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=rowe-clan-net.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id eJPgWFNyzUkY for ; Fri, 31 Mar 2017 19:38:15 +0000 (UTC) Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2F5245FB9D for ; Fri, 31 Mar 2017 19:38:15 +0000 (UTC) Received: by mail-it0-f47.google.com with SMTP id y18so17611360itc.1 for ; Fri, 31 Mar 2017 12:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rowe-clan-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=RL7KD1tmNA4DXpuml1+tNj+9Xix71dX0j3S0wo8UCp0=; b=HYJ9rFhH9gd2+y+0XjsrZwLThpwIkgDyaDWYG8DNPPH6C5Qxx3MmWsgeEyt8Te+9wl er7hFL2DkN9+OOLbY/SgK2tIucNjj/CxTv5/nLbKe8Tvdv2wsgCZJx4YF+X29lKt7a89 KQjuoONHM5/MszX215HgqC1VwlCFOZeXojNDHeZSf6R0YC76AZWFBOcQX03ojD8ElHRV +kTeKxtnMnpuo2WZLn4v1JcDNoPeIUChC45y528dQFM6Op6J10sWW6Eok/DM+ErH6ygS 6iQmrmP6/KwyGDOE9rRgJ4YtAdbuIQh/GpL9aPYpJBAw7jzWxc9cMLxySpPXFqipxvin qbvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=RL7KD1tmNA4DXpuml1+tNj+9Xix71dX0j3S0wo8UCp0=; b=WvE3zbd67fYKW7V1T3YE9B1IKdEtFljOxiJnvTSe0LJVEJgUIXsbLVWoJ6vZR7tWti TXKmEd7Bd0pzCunDCKkg6AsgtMwrtw7EENpDcsdP0KzVAWrtvhxvl5nRe5TtecITbVS2 O3vP/np6x7oUKmfyP3yzl2knKsCESoH4upuviccYQd/vEVPi/ffo3QqXt4b2mJv+++Qq wmrNhlb0/wdXTVg31ECkQ6KUpBvwVF+xxSQUS2TYYz3ack44AIYc0r2knKXbUCgYyGbO TRNYQcsVXfGpwOYQG5N/PdJvxwMU5PpE5KFA04kfAN6Ua+HzWNKV4+iCAJ3cZ42RZ57t +m4w== X-Gm-Message-State: AFeK/H23jq3mXns8PGtevTW/oG+5ekuOVfQiEJGgdQRyH7LMaF2swGcPIjrMu782cX4+WlToaA9eZGRln9XgN4Y2 X-Received: by 10.36.95.130 with SMTP id r124mr4414754itb.8.1490989094029; Fri, 31 Mar 2017 12:38:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.11.197 with HTTP; Fri, 31 Mar 2017 12:38:13 -0700 (PDT) In-Reply-To: <51F27B3D-DB20-431F-9CB8-1BAA746FF71C@jaguNET.com> References: <14A97192-B5DA-46CD-AD86-8A7317648BD7@apache.org> <51F27B3D-DB20-431F-9CB8-1BAA746FF71C@jaguNET.com> From: William A Rowe Jr Date: Fri, 31 Mar 2017 14:38:13 -0500 Message-ID: Subject: Re: Default Linux mutex method To: Jim Jagielski Cc: Nick Kew , APR Developer List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable archived-at: Fri, 31 Mar 2017 19:38:20 -0000 On Fri, Mar 31, 2017 at 10:22 AM, Jim Jagielski wrote: > Reading the configure.in file, it looks like we are due > for some updates for the 21st century: > > # See which lock mechanism we'll select by default on this system. > # The last APR_DECIDE to execute sets the default. > # At this stage, we match the ordering in Apache 1.3 > # which is (highest to lowest): sysvsem -> fcntl -> flock. > # POSIX semaphores and cross-process pthread mutexes are not > # used by default since they have less desirable behaviour when > # e.g. a process holding the mutex segfaults. LOL - it was re-reading Roy's 1.2/1.3 timeframe cautions about avoiding sysvsem that brought me back to this topic, actually. http://httpd.apache.org/docs/2.0/misc/perf-tuning.html The pthread mutexes certainly should be cleaned up on a segv. The sysvsem mutexes will not be cleaned up, just found another annoyed user on Wednesday which reminded me to look at this. Are modern pthread mutexes sufficiently reliable this decade? On Fri, Mar 31, 2017 at 9:58 AM, Nick Kew wrote: > > I=E2=80=99ve just (finally) got the toolchain to build & test this on Mac= OS, > and I=E2=80=99ve got identical APR_USE results there. Perhaps our build = logic > really isn=E2=80=99t doing anything very smart at all? locks/unix/proc_mutex.c is the sole apr consumer of these flags, see line 1177 within proc_mutex_choose_method(). Posix is dead last, followed by pthread, fcntl, sysv and file in ascending priority. Without changing the autoconf logic in the slightest, I would think we aught to simply flip the prioritization of pthread and sysv. But we do need BSD/Solaris/OSX feedback here.