[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190702141541.12635-1-lpf.vector@gmail.com>
Date: Tue, 2 Jul 2019 22:15:36 +0800
From: Pengfei Li <lpf.vector@...il.com>
To: akpm@...ux-foundation.org, peterz@...radead.org, urezki@...il.com
Cc: rpenyaev@...e.de, mhocko@...e.com, guro@...com,
aryabinin@...tuozzo.com, rppt@...ux.ibm.com, mingo@...nel.org,
rick.p.edgecombe@...el.com, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, Pengfei Li <lpf.vector@...il.com>
Subject: [PATCH v2 0/5] mm/vmalloc.c: improve readability and rewrite vmap_area
v1 -> v2:
* patch 3: Rename __find_vmap_area to __search_va_in_busy_tree
instead of __search_va_from_busy_tree.
* patch 5: Add motivation and necessary test data to the commit
message.
* patch 5: Let va->flags use only some low bits of va_start
instead of completely overwriting va_start.
The current implementation of struct vmap_area wasted space. At the
determined stage, not all members of the structure will be used.
For this problem, this commit places multiple structural members that
are not being used at the same time into a union to reduce the size
of the structure.
And local test results show that this commit will not hurt performance.
After applying this commit, sizeof(struct vmap_area) has been reduced
from 11 words to 8 words.
Pengfei Li (5):
mm/vmalloc.c: Introduce a wrapper function of insert_vmap_area()
mm/vmalloc.c: Introduce a wrapper function of
insert_vmap_area_augment()
mm/vmalloc.c: Rename function __find_vmap_area() for readability
mm/vmalloc.c: Modify function merge_or_add_vmap_area() for readability
mm/vmalloc.c: Rewrite struct vmap_area to reduce its size
include/linux/vmalloc.h | 28 +++++---
mm/vmalloc.c | 139 ++++++++++++++++++++++++++++------------
2 files changed, 118 insertions(+), 49 deletions(-)
--
2.21.0
Powered by blists - more mailing lists