From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751713AbdCABWV (ORCPT ); Tue, 28 Feb 2017 20:22:21 -0500 Received: from mga09.intel.com ([134.134.136.24]:18063 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751518AbdCABWR (ORCPT ); Tue, 28 Feb 2017 20:22:17 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,222,1484035200"; d="scan'208";a="70208307" Subject: Re: [PATCH 0/5] mm: support parallel free of memory To: Dave Hansen , Andrew Morton References: <20170224114036.15621-1-aaron.lu@intel.com> <20170228163947.cbd83e48dcb149c697b316cd@linux-foundation.org> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Tim Chen , Ying Huang From: Aaron Lu Message-ID: <31665668-9885-6045-a314-8c092800c739@intel.com> Date: Wed, 1 Mar 2017 09:17:26 +0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/01/2017 08:43 AM, Dave Hansen wrote: > On 02/28/2017 04:39 PM, Andrew Morton wrote: >> Dumb question: why not do this in userspace, presumably as part of the >> malloc() library? malloc knows where all the memory is and should be >> able to kick off N threads to run around munmapping everything? > > One of the places we saw this happen was when an app crashed and was > exit()'ing under duress without cleaning up nicely. The time that it > takes to unmap a few TB of 4k pages is pretty excessive. Thanks Dave for the answer, I should have put this in the changelog(will do that in the next revision). Sorry about this Andrew, I hope Dave's answer clears things up about the patch's intention. Regards, Aaron