Skip to contentSkip to conversation

zram-introduce-an-aged-idle-interface.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 11, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: zram: introduce an aged idle interface
has been removed from the -mm tree. Its filename was
zram-introduce-an-aged-idle-interface.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Brian Geffon <[email protected]>
Subject: zram: introduce an aged idle interface

This change introduces an aged idle interface to the existing idle sysfs file for zram.

When CONFIG_ZRAM_MEMORY_TRACKING is enabled the idle file now also accepts an integer argument. This integer is the age (in seconds) of pages to mark as idle. The idle file still supports 'all' as it always has. This new approach allows for much more control over which pages get marked as idle.

---

 Documentation/admin-guide/blockdev/zram.rst |    8 ++
 drivers/block/zram/zram_drv.c               |   62 +++++++++++++-----
 2 files changed, 54 insertions(+), 16 deletions(-)
Documentation/admin-guide/blockdev/zram.rst renamed from Documentation/admin-guide/blockdev/zram.rst~zram-introduce-an-aged-idle-interface +8 -0
@@ -328,6 +328,14 @@ as idle::
 From now on, any pages on zram are idle pages. The idle mark
 will be removed until someone requests access of the block.
 IOW, unless there is access request, those pages are still idle pages.
+Additionally, when CONFIG_ZRAM_MEMORY_TRACKING is enabled pages can be
+marked as idle based on how long (in seconds) it's been since they were
+last accessed::
+
+        echo 86400 > /sys/block/zramX/idle
+
+In this example all pages which haven't been accessed in more than 86400
+seconds (one day) will be marked idle.
 
 Admin can request writeback of those idle pages at right timing via::
 
drivers/block/zram/zram_drv.c renamed from drivers/block/zram/zram_drv.c~zram-introduce-an-aged-idle-interface +46 -16

82 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are