Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756253Ab3IMJzz (ORCPT ); Fri, 13 Sep 2013 05:55:55 -0400 Received: from mailout32.mail01.mtsvc.net ([216.70.64.70]:38527 "EHLO n23.mail01.mtsvc.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754897Ab3IMJzv (ORCPT ); Fri, 13 Sep 2013 05:55:51 -0400 Message-ID: <5232E123.9090909@hurleysoftware.com> Date: Fri, 13 Sep 2013 05:55:47 -0400 From: Peter Hurley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Greg KH CC: Fengguang Wu , LKML , lkp@01.org, Tejun Heo Subject: Re: increased vmap_area_lock contentions on "n_tty: Move buffers into n_tty_data" References: <20130913005133.GA32479@localhost> <20130913031700.GB23757@kroah.com> <20130913033803.GB8704@localhost> <20130913034413.GA26166@kroah.com> In-Reply-To: <20130913034413.GA26166@kroah.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-User: 990527 peter@hurleysoftware.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1493 Lines: 44 On 09/12/2013 11:44 PM, Greg KH wrote: > On Fri, Sep 13, 2013 at 11:38:04AM +0800, Fengguang Wu wrote: >> On Thu, Sep 12, 2013 at 08:17:00PM -0700, Greg KH wrote: >>> On Fri, Sep 13, 2013 at 08:51:33AM +0800, Fengguang Wu wrote: >>>> Hi Peter, >>>> >>>> FYI, we noticed much increased vmap_area_lock contentions since this >>>> commit: >>> >>> What does that mean? What is happening, are we allocating/removing more >>> memory now? No. Same amount of memory, allocated and freed with the same frequency as before. >>> What type of load were you running that showed this problem? >> >> The increased contentions and lock hold/wait time showed up in a >> number of test cases. [...] > That's a lot of slowdowns, especially for such a simple patch. > > Peter, any ideas? Looks like this patch incidentally triggers some worst-case behavior in the memory manager. I'm not sure how this is possible with two 4k buffers, but the evidence is substantial. This patch isn't critical so I suggest we back out this patch for mainline but use the patch to find out what's wrong in the vmap area. Unfortunately, I'm on my way out the door and won't be back til Sunday pm (EST) so I'll get a revert to you then. Sorry 'bout that. Regards, Peter Hurley -- 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/