Re: [PATCH -next v6 0/2] Make memory reclamation measurable

2024-01-14 Thread Bixuan Cui
ping~ 在 2024/1/5 9:36, Bixuan Cui 写道: When the system memory is low, kswapd reclaims the memory. The key steps of memory reclamation include 1.shrink_lruvec * shrink_active_list, moves folios from the active LRU to the inactive LRU * shrink_inactive_list, shrink lru from inactive LRU list

[RFC PATCH 4/4] mm/damon: introduce DAMOS_PROMOTE action for promotion

2024-01-14 Thread Honggyu Kim
From: Hyeongtak Ji This patch introduces DAMOS_PROMOTE action for paddr mode. It includes renaming alloc_demote_folio to alloc_migrate_folio to use it for promotion as well. The execution sequence of DAMOS_DEMOTE and DAMOS_PROMOTE look as follows for comparison. DAMOS_DEMOTE action

[RFC PATCH 2/4] mm/damon: introduce DAMOS_DEMOTE action for demotion

2024-01-14 Thread Honggyu Kim
This patch introduces DAMOS_DEMOTE action, which is similar to DAMOS_PAGEOUT, but demote folios instead of swapping them out. Since there are some common routines with pageout, many functions have similar logics between pageout and demote. The execution sequence of DAMOS_PAGEOUT and DAMOS_DEMOTE

[RFC PATCH 3/4] mm/memory-tiers: add next_promotion_node to find promotion target

2024-01-14 Thread Honggyu Kim
From: Hyeongtak Ji This patch adds next_promotion_node that can be used to identify the appropriate promotion target based on memory tiers. When multiple promotion target nodes are available, the nearest node is selected based on numa distance. Signed-off-by: Hyeongtak Ji ---

[RFC PATCH 1/4] mm/vmscan: refactor reclaim_pages with reclaim_or_migrate_folios

2024-01-14 Thread Honggyu Kim
Since we will introduce reclaim_pages like functions such as demote_pages and promote_pages, the most of the code can be shared. This is a preparation patch that introduces reclaim_or_migrate_folios() to cover all the logics, but it provides a handler for the different actions. No functional

[RFC PATCH 0/4] DAMON based 2-tier memory management for CXL memory

2024-01-14 Thread Honggyu Kim
There was an RFC IDEA "DAMOS-based Tiered-Memory Management" previously posted at [1]. It says there is no implementation of the demote/promote DAMOS action are made. This RFC is about its implementation for physical address space. Introduction With the advent of CXL/PCIe

Re: [PATCH v11 2/5] ring-buffer: Introducing ring-buffer mapping functions

2024-01-14 Thread Google
On Thu, 11 Jan 2024 16:17:09 + Vincent Donnefort wrote: > In preparation for allowing the user-space to map a ring-buffer, add > a set of mapping functions: > > ring_buffer_{map,unmap}() > ring_buffer_map_fault() > > And controls on the ring-buffer: > > ring_buffer_map_get_reader()

[GIT PULL] hwspinlock updates to v6.8

2024-01-14 Thread Bjorn Andersson
The following changes since commit b85ea95d086471afb4ad062012a4d73cd328fa86: Linux 6.7-rc1 (2023-11-12 16:19:07 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git tags/hwlock-v6.8 for you to fetch changes up to

[GIT PULL] remoteproc updates for v6.8

2024-01-14 Thread Bjorn Andersson
The following changes since commit 98b1cc82c4affc16f5598d4fa14b1858671b2263: Linux 6.7-rc2 (2023-11-19 15:02:14 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git tags/rproc-v6.8 for you to fetch changes up to

[GIT PULL] rpmsg updates for v6.8

2024-01-14 Thread Bjorn Andersson
The following changes since commit 98b1cc82c4affc16f5598d4fa14b1858671b2263: Linux 6.7-rc2 (2023-11-19 15:02:14 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git tags/rpmsg-v6.8 for you to fetch changes up to

Re: [PATCH v11 4/5] Documentation: tracing: Add ring-buffer mapping

2024-01-14 Thread Google
On Sun, 14 Jan 2024 11:23:24 -0500 Steven Rostedt wrote: > On Sun, 14 Jan 2024 23:26:43 +0900 > Masami Hiramatsu (Google) wrote: > > > Hi Vincent, > > > > On Thu, 11 Jan 2024 16:17:11 + > > Vincent Donnefort wrote: > > > > > It is now possible to mmap() a ring-buffer to stream its

Re: [PATCH v11 4/5] Documentation: tracing: Add ring-buffer mapping

2024-01-14 Thread Steven Rostedt
On Sun, 14 Jan 2024 23:26:43 +0900 Masami Hiramatsu (Google) wrote: > Hi Vincent, > > On Thu, 11 Jan 2024 16:17:11 + > Vincent Donnefort wrote: > > > It is now possible to mmap() a ring-buffer to stream its content. Add > > some documentation and a code example. > > > > Signed-off-by:

Re: [PATCH v11 4/5] Documentation: tracing: Add ring-buffer mapping

2024-01-14 Thread Google
Hi Vincent, On Thu, 11 Jan 2024 16:17:11 + Vincent Donnefort wrote: > It is now possible to mmap() a ring-buffer to stream its content. Add > some documentation and a code example. > > Signed-off-by: Vincent Donnefort > > diff --git a/Documentation/trace/index.rst

[PATCH] rpmsg: Remove usage of the deprecated ida_simple_xx() API

2024-01-14 Thread Christophe JAILLET
ida_alloc() and ida_free() should be preferred to the deprecated ida_simple_get() and ida_simple_remove(). Note that the upper limit of ida_simple_get() is exclusive, but the one of ida_alloc_max() is inclusive. So a -1 has been added when needed. Signed-off-by: Christophe JAILLET ---