Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755359AbdL2I6p (ORCPT ); Fri, 29 Dec 2017 03:58:45 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:3195 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752430AbdL2I6o (ORCPT ); Fri, 29 Dec 2017 03:58:44 -0500 Message-ID: <5A4603AB.8060809@huawei.com> Date: Fri, 29 Dec 2017 16:58:19 +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: Michal Hocko , Vlastimil Babka , "Mel Gorman" CC: LKML , Linux MM , "Xishi Qiu" , "Wujiangtao (A)" Subject: [RFC] mm: why vfree() do not free page table memory? 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 Content-Length: 263 Lines: 8 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