From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <5A4603AB.8060809@huawei.com> Date: Fri, 29 Dec 2017 16:58:19 +0800 From: Xishi Qiu MIME-Version: 1.0 Subject: [RFC] mm: why vfree() do not free page table memory? Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org To: Michal Hocko , Vlastimil Babka , Mel Gorman Cc: LKML , Linux MM , Xishi Qiu , "Wujiangtao (A)" List-ID: 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