From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f71.google.com (mail-pg0-f71.google.com [74.125.83.71]) by kanga.kvack.org (Postfix) with ESMTP id 562596B0253 for ; Wed, 10 Jan 2018 20:27:25 -0500 (EST) Received: by mail-pg0-f71.google.com with SMTP id r8so1521973pgq.1 for ; Wed, 10 Jan 2018 17:27:25 -0800 (PST) Received: from huawei.com (szxga05-in.huawei.com. [45.249.212.191]) by mx.google.com with ESMTPS id ay5si12795935plb.66.2018.01.10.17.27.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jan 2018 17:27:24 -0800 (PST) Message-ID: <5A56BD66.8040607@huawei.com> Date: Thu, 11 Jan 2018 09:27:02 +0800 From: Xishi Qiu MIME-Version: 1.0 Subject: Re: [RFC] mm: why vfree() do not free page table memory? References: <5A4603AB.8060809@huawei.com> In-Reply-To: <5A4603AB.8060809@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Xishi Qiu Cc: Michal Hocko , Vlastimil Babka , Mel Gorman , LKML , Linux MM , "Wujiangtao (A)" , "Qiuchangqi (Lion, Euler Dept )" On 2017/12/29 16:58, Xishi Qiu wrote: > When calling vfree(), it calls unmap_vmap_area() to clear page table, > but do not free the memory of page table, why? just for performance? > > If a driver use vmalloc() and vfree() frequently, we will lost much > page table memory, maybe oom later. > > Thanks, > Xishi Qiu > ping > > . > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753416AbeAKB10 (ORCPT + 1 other); Wed, 10 Jan 2018 20:27:26 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:3768 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753304AbeAKB1Y (ORCPT ); Wed, 10 Jan 2018 20:27:24 -0500 Message-ID: <5A56BD66.8040607@huawei.com> Date: Thu, 11 Jan 2018 09:27:02 +0800 From: Xishi Qiu User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Xishi Qiu CC: Michal Hocko , Vlastimil Babka , "Mel Gorman" , LKML , Linux MM , "Wujiangtao (A)" , "Qiuchangqi (Lion, Euler Dept )" Subject: Re: [RFC] mm: why vfree() do not free page table memory? References: <5A4603AB.8060809@huawei.com> In-Reply-To: <5A4603AB.8060809@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.25.179] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 2017/12/29 16:58, Xishi Qiu wrote: > When calling vfree(), it calls unmap_vmap_area() to clear page table, > but do not free the memory of page table, why? just for performance? > > If a driver use vmalloc() and vfree() frequently, we will lost much > page table memory, maybe oom later. > > Thanks, > Xishi Qiu > ping > > . >