mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	Docs/mm/damon/design: categorize DAMOS filter types based on handling layer
On what DAMON layer a DAMOS filter is handled is important to expect in what order filters will be evaluated. Re-organize the DAMOS filter types list on the design doc to categorize types based on the handling layer, to let users more easily understand the handling order. Link: https://lkml.kernel.org/r/20250218223708.53437-6-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									4a4d8e7925
								
							
						
					
					
						commit
						edab6ffd79
					
				
					 1 changed files with 15 additions and 19 deletions
				
			
		| 
						 | 
					@ -602,25 +602,21 @@ filters-checking overhead.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Below ``type`` of filters are currently supported.
 | 
					Below ``type`` of filters are currently supported.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- anon
 | 
					- Core layer handled
 | 
				
			||||||
    - Applied to pages that containing data that not stored in files.
 | 
					    - addr
 | 
				
			||||||
    - Handled by operations set layer.  Supported by only ``paddr`` set.
 | 
					        - Applied to pages that belonging to a given address range.
 | 
				
			||||||
- memcg
 | 
					    - target
 | 
				
			||||||
    - Applied to pages that belonging to a given cgroup.
 | 
					        - Applied to pages that belonging to a given DAMON monitoring target.
 | 
				
			||||||
    - Handled by operations set layer.  Supported by only ``paddr`` set.
 | 
					- Operations layer handled, supported by only ``paddr`` operations set.
 | 
				
			||||||
- young
 | 
					    - anon
 | 
				
			||||||
    - Applied to pages that are accessed after the last access check from the
 | 
					        - Applied to pages that containing data that not stored in files.
 | 
				
			||||||
      scheme.
 | 
					    - memcg
 | 
				
			||||||
    - Handled by operations set layer.  Supported by only ``paddr`` set.
 | 
					        - Applied to pages that belonging to a given cgroup.
 | 
				
			||||||
- hugepage_size
 | 
					    - young
 | 
				
			||||||
    - Applied to pages that managed in a given size range.
 | 
					        - Applied to pages that are accessed after the last access check from the
 | 
				
			||||||
    - Handled by operations set layer.  Supported by only ``paddr`` set.
 | 
					          scheme.
 | 
				
			||||||
- addr
 | 
					    - hugepage_size
 | 
				
			||||||
    - Applied to pages that belonging to a given address range.
 | 
					        - Applied to pages that managed in a given size range.
 | 
				
			||||||
    - Handled by the core logic.
 | 
					 | 
				
			||||||
- target
 | 
					 | 
				
			||||||
    - Applied to pages that belonging to a given DAMON monitoring target.
 | 
					 | 
				
			||||||
    - Handled by the core logic.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
To know how user-space can set the filters via :ref:`DAMON sysfs interface
 | 
					To know how user-space can set the filters via :ref:`DAMON sysfs interface
 | 
				
			||||||
<sysfs_interface>`, refer to :ref:`filters <sysfs_filters>` part of the
 | 
					<sysfs_interface>`, refer to :ref:`filters <sysfs_filters>` part of the
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue