From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758152AbbJVWLG (ORCPT ); Thu, 22 Oct 2015 18:11:06 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:25167 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752153AbbJVWLE (ORCPT ); Thu, 22 Oct 2015 18:11:04 -0400 Date: Thu, 22 Oct 2015 15:10:54 -0700 From: Dave Watson To: Andy Lutomirski CC: , "linux-kernel@vger.kernel.org" , Linux API , Paul Turner , Mathieu Desnoyers Subject: Re: [RFC PATCH 0/3] restartable sequences benchmarks Message-ID: <20151022221054.GA2949757@devbig217.prn1.facebook.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) X-Originating-IP: [192.168.52.123] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-10-23_01:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2015 at 12:11:42PM -0700, Andy Lutomirski wrote: > On Thu, Oct 22, 2015 at 11:06 AM, Dave Watson wrote: > > > > RSS CPUIDLE LATENCYMS > > jemalloc 4.0.0 31G 33% 390 > > jemalloc + this patch 25G 33% 390 > > jemalloc + this patch using lsl 25G 30% 420 > > jemalloc + PT's rseq patch 25G 32% 405 > > glibc malloc 2.20 27G 30% 420 > > tcmalloc gperftools trunk (2.2) 21G 30% 480 > > Slightly confused. This is showing a space efficiency improvement but > not a performance improvement? Is the idea that percpu free lists are > more space efficient than per-thread free lists? > > --Andy Correct - the service was already tuned such that most requests hit the (very large) thread free lists to avoided taking expensive locks talking to the central arena. There were more threads than cpus, so the memory win is just needing fewer free lists.