Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753125AbbGICqY (ORCPT ); Wed, 8 Jul 2015 22:46:24 -0400 Received: from mout.gmx.net ([212.227.17.22]:58177 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751683AbbGICqQ (ORCPT ); Wed, 8 Jul 2015 22:46:16 -0400 Message-ID: <1436409938.3477.31.camel@gmx.de> Subject: Re: Significant performance difference for postgres w/o sched_autogroup From: Mike Galbraith To: Andres Freund Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra Date: Thu, 09 Jul 2015 04:45:38 +0200 In-Reply-To: <20150708154550.GH340@alap3.anarazel.de> References: <20150708154550.GH340@alap3.anarazel.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:52JkVqkCXsV19n/WRgNTxRb/KOqhw2YOch1i0cZ9WLPRSG5ujHi SmbkT++ArXSwGLl+q7rCNhs3Z4LSof9Ot8vkf4ulSKRbMQ7uXT0n3039ai3O0pV2t4rJVKJ QsM+HCv70NonGTvGgf76ff3iaWBQOcfsBqi7ElyNa6M2JeHnhvY4JATqL5gUuGDEq0W9iNb wFk6LTIw1KwPReJHEZWkA== X-UI-Out-Filterresults: notjunk:1;V01:K0:+GXB3dbTTf0=:Y5con6c77x2tuXARD+G0mb XeODWM/2P5lLr4J/sYBQDpsVzfr0lera0PM6r9EiO5paadVmUWYpvFg9uTS4+hCWVVzSVM407 ivcS37rhAT9a24YkSgmtwrDky4uqSZFLhnOB76HBtu5w2rmuzUMLzwk1Am/BZtaQjq7wz4eYv HIvp6eGTROS0bTSsGs59ey93blRF2Zjrye5O16B/VpnkgPVl9EWjU/6CetxDrF0L0P7Tu9mRD Vcs0Fdz5tSpNd2uIQolvYPs055HGPauc3zld2/y9w2DiQIT8zjRqopim3ZlB/A6vg23Yun6M5 vIPFVaYeOV5tX9sh716yGfdgN4rjPhxtaVmfBm2DS21XPxIEhcyoPfoPu6sR2A10xgMwrCkVm n/tptM/aHH67jBjxGLVh8WHmEd3bzxPa58t1e8n54cHEPMFToIlpYYo+E4AOYuJ9hhc/IIl5q bqH7zBreV09dI+KnV44BGSOWkDho2aZNRuJIySCUwofz3m3P2NRjxOGThav3bKMtS6fbmrN2G RRXN1JHQbiGVqoKbxt8gC4utqijRI7OqwpIWhb4kmeI3G8Z0TjQwYrz2PnM/faAGoYDUK3D2L Zv4RMmNQa71yoA9+4QTCFQyNU4PXaiyWcJDn08JUQf2dClLO8odbJasDPYA6a6KI4RMKoFOdI 8V3fpwAQl/NgVMbJ7eQuX78qmoQ4kfSQmG65Jhl2Zr4xhwm7ZQbqPzZGgPKr0alO2kao= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1120 Lines: 28 On Wed, 2015-07-08 at 17:45 +0200, Andres Freund wrote: > Workload: > > postgresql (multi-process via shared memory SQL server) and benchmark > client (pgbench, multi threaded) running on the same server. Connected > using unix sockets. The statements are relatively simple (~1.5ms on > average), forcing frequent back/forth between server processes and > pgbench threads. > > I found that disabling sched_autogroup *significantly* reduces > throughput. Even when both server and client are started from the same > terminal and thus should be in the same group! > > There's a significant difference in how %sys with autogroups > enabled/disabled. ~8% v ~27%. That sounds too much. Seems reasonable to me. 1(tg)/2(tgs) > 1(task)/N(tasks), throughput is what the server can sustain on its given budget, larger budget means less client blockage, thus less %sys. -Mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/