From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751853AbdCAAnr (ORCPT ); Tue, 28 Feb 2017 19:43:47 -0500 Received: from mga05.intel.com ([192.55.52.43]:64641 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751392AbdCAAnq (ORCPT ); Tue, 28 Feb 2017 19:43:46 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,222,1484035200"; d="scan'208";a="71317892" Subject: Re: [PATCH 0/5] mm: support parallel free of memory To: Andrew Morton , Aaron Lu 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: Dave Hansen Message-ID: Date: Tue, 28 Feb 2017 16:43:45 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20170228163947.cbd83e48dcb149c697b316cd@linux-foundation.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.