diff options
author | 2024-01-02 19:46:29 +0100 | |
---|---|---|
committer | 2024-02-23 17:48:19 -0800 | |
commit | 72210662c5a2b6005f6daea7fe293a0dc573e1a5 (patch) | |
tree | 4609af89d7130b0e6970de6de265c26b5e81825e /lib/buildid.c | |
parent | mm: vmalloc: remove global purge_vmap_area_root rb-tree (diff) | |
download | wireguard-linux-72210662c5a2b6005f6daea7fe293a0dc573e1a5.tar.xz wireguard-linux-72210662c5a2b6005f6daea7fe293a0dc573e1a5.zip |
mm: vmalloc: offload free_vmap_area_lock lock
Concurrent access to a global vmap space is a bottle-neck. We can
simulate a high contention by running a vmalloc test suite.
To address it, introduce an effective vmap node logic. Each node behaves
as independent entity. When a node is accessed it serves a request
directly(if possible) from its pool.
This model has a size based pool for requests, i.e. pools are serialized
and populated based on object size and real demand. A maximum object size
that pool can handle is set to 256 pages.
This technique reduces a pressure on the global vmap lock.
Link: https://lkml.kernel.org/r/20240102184633.748113-8-urezki@gmail.com
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Joel Fernandes (Google) <joel@joelfernandes.org>
Cc: Kazuhito Hagio <k-hagio-ab@nec.com>
Cc: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Lorenzo Stoakes <lstoakes@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Oleksiy Avramchenko <oleksiy.avramchenko@sony.com>
Cc: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/buildid.c')
0 files changed, 0 insertions, 0 deletions