From owner-freebsd-hackers@freebsd.org Wed Oct 3 05:16:25 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01C9410B85F8 for ; Wed, 3 Oct 2018 05:16:25 +0000 (UTC) (envelope-from munro@penski.net) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 75D718C6CD for ; Wed, 3 Oct 2018 05:16:24 +0000 (UTC) (envelope-from munro@penski.net) Received: by mail-ed1-x52f.google.com with SMTP id v18-v6so3056797edq.12 for ; Tue, 02 Oct 2018 22:16:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ip9-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=C2Sd1qRCbE8MLz4tSfQWekazz8uzQqNXSMOQdsDeeA8=; b=yhRDXHmuPbHJ3gHODewV1INWfoFDLQ1NYB9Nwa/oe1sOu7/GsX994X7W767e3Tdl09 Ig49mMwcBpPChBKpJfYOxKJNswh5YUpel2ag43bThuHh+yAtfU+DZgXPtKSxtyW1QY0g HEU9hWsxVRQiQDd9G5nJopC53K3it7SaDheN8OVxF1TOykoZDwWFut3jQKgBQoNXKf+3 ycxnpcUix6yyx/vtT1IVUjYlgX/M8JgJlUZFcbA4gM2ZUTXtffNwkMolO8WGbQ8VlQz/ Aa+9YyhN+oiY+XFMlqLKcooL4MS0Z6Eg9ITyTiMekQ2/8axjf5NCkDhAQjBGHp6IBsuQ fUZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=C2Sd1qRCbE8MLz4tSfQWekazz8uzQqNXSMOQdsDeeA8=; b=qQqWTrM2kN6DQmWQQxFQyP8X3D1nJQ0zxjtYSST6sKdMubLGYuUVdcp/4DvUfbRn3z Ym85VpSaFxGMCm835ht4rVyEN43rRsgecsKf9x3voxboWd2QdPEB/1jgJ2lgbAVJEc+q dagxWV83x+J5xc4o0kebMKDXn6hbYRB1ZPOPJQwNPnIvbC3xWZyHBt6lNg1gRsId9Xvt yaUsDyIKKHwJjG0sXGGnaofbmCZTR5eP8gVvbFziotuOlz85W+vEJPiwTM/txI5VhVmO dOkpLLLF7A/BE9pL4/TPZbigr1I/VvbZ1rZ34sMEm7S3yjujh5EOSaTGiEextM5WIeD/ FnpA== X-Gm-Message-State: ABuFfohSF4VqtBJRqPFNiDNQc9lPz6Oj+ExPAbSbEHlBVCGbvAhhf5h8 iqIcR1HL0mk30psiaKu+6NDDpSd1qE0hX1V5nJMmlg== X-Google-Smtp-Source: ACcGV63AajG9eFTLQGTnml1L7q0aBvdS6Cpbsmx1jzvzBpFsLinllZH9Myd4SCjyNuEJT0YfW0Th1CDcsPYijy1FBtE= X-Received: by 2002:a50:9873:: with SMTP id h48-v6mr263666edb.247.1538543783028; Tue, 02 Oct 2018 22:16:23 -0700 (PDT) MIME-Version: 1.0 References: <09f0dce2-7899-b839-e70e-79be43a0fa6b@freebsd.org> In-Reply-To: <09f0dce2-7899-b839-e70e-79be43a0fa6b@freebsd.org> From: Thomas Munro Date: Wed, 3 Oct 2018 18:16:11 +1300 Message-ID: Subject: Re: Regression when trying to replace poll() with kqueue() To: allanjude@freebsd.org Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2018 05:16:25 -0000 On Wed, 3 Oct 2018 at 18:01, Allan Jude wrote: > I have started to look into this a bit. I have not really gotten > anywhere yet, but I have produced a graph comparing the performance of > vanilla postgres vs your patch. > > https://imgur.com/a/gKycGxW > > They scale identically up to the 20 threads of hardware on my test > machine, and then kqueue falls off much more quickly. Great news, thanks for looking at this.