Home
last modified time | relevance | path

Searched refs:zram (Results 1 – 20 of 20) sorted by relevance

/Linux-v6.1/drivers/block/zram/
Dzram_drv.c56 static void zram_free_page(struct zram *zram, size_t index);
57 static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec,
61 static int zram_slot_trylock(struct zram *zram, u32 index) in zram_slot_trylock() argument
63 return bit_spin_trylock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_trylock()
66 static void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock() argument
68 bit_spin_lock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_lock()
71 static void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock() argument
73 bit_spin_unlock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_unlock()
76 static inline bool init_done(struct zram *zram) in init_done() argument
78 return zram->disksize; in init_done()
[all …]
DKconfig16 See Documentation/admin-guide/blockdev/zram.rst for more information.
19 prompt "Default zram compressor"
70 See Documentation/admin-guide/blockdev/zram.rst for more information.
78 /sys/kernel/debug/zram/zramX/block_state.
80 See Documentation/admin-guide/blockdev/zram.rst for more information.
DMakefile2 zram-y := zcomp.o zram_drv.o
4 obj-$(CONFIG_ZRAM) += zram.o
Dzram_drv.h92 struct zram { struct
/Linux-v6.1/tools/testing/selftests/zram/
Dzram_lib.sh52 swapoff /dev/zram$i
56 umount /dev/zram$i
60 echo 1 > /sys/block/zram${i}/reset
61 rm -rf zram$i
66 echo $i > /sys/class/zram-control/hot_remove
71 rmmod zram > /dev/null 2>&1
83 dev_start=$(ls /dev/zram* | wc -w)
88 cat /sys/class/zram-control/hot_add > /dev/null
97 modprobe zram num_devices=$dev_num
100 rmmod zram > /dev/null 2>&1
[all …]
DREADME1 zram: Compressed RAM based block devices
5 The zram module creates RAM based block devices named /dev/zram<id>
11 Statistics for individual zram devices are exported through sysfs nodes at
12 /sys/block/zram<id>/
23 zram.sh: For sanity check of CONFIG_ZRAM and to run zram01 and zram02
40 kernel-source-tree/Documentation/admin-guide/blockdev/zram.rst
DMakefile4 TEST_PROGS := zram.sh
Dzram01.sh40 dd conv=notrunc if=/dev/zero of=zram${i}/file \
/Linux-v6.1/Documentation/ABI/testing/
Dsysfs-block-zram1 What: /sys/block/zram<id>/disksize
10 What: /sys/block/zram<id>/initstate
17 What: /sys/block/zram<id>/reset
25 What: /sys/block/zram<id>/max_comp_streams
33 What: /sys/block/zram<id>/comp_algorithm
41 What: /sys/block/zram<id>/mem_used_max
46 the counter of maximum memory zram have consumed to store
51 What: /sys/block/zram<id>/mem_limit
60 What: /sys/block/zram<id>/compact
68 What: /sys/block/zram<id>/io_stat
[all …]
Dsysfs-class-zram1 What: /sys/class/zram-control/
6 The zram-control/ class sub-directory belongs to zram
9 What: /sys/class/zram-control/hot_add
14 RO attribute. Read operation will cause zram to add a new
16 use /dev/zram<id>), or error code.
18 What: /sys/class/zram-control/hot_remove
/Linux-v6.1/Documentation/admin-guide/blockdev/
Dzram.rst2 zram: Compressed RAM-based block devices
8 The zram module creates RAM-based block devices named /dev/zram<id>
14 Statistics for individual zram devices are exported through sysfs nodes at
15 /sys/block/zram<id>/
20 There are several ways to configure and manage zram device(-s):
22 a) using zram and zram_control sysfs attributes
25 In this document we will describe only 'manual' zram configuration steps,
26 IOW, zram and zram_control sysfs attributes.
30 that zram maintainers do not develop/maintain util-linux or zramctl, should
33 Following shows a typical sequence of steps for using zram.
[all …]
Dindex.rst14 zram
/Linux-v6.1/drivers/block/
DMakefile35 obj-$(CONFIG_ZRAM) += zram/
DKconfig137 source "drivers/block/zram/Kconfig"
/Linux-v6.1/Documentation/translations/zh_CN/mm/
Dzsmalloc.rst13 这个分配器是为与zram一起使用而设计的。因此,该分配器应该在低内存条件下工作良好。特别是,
/Linux-v6.1/Documentation/mm/
Dzsmalloc.rst7 This allocator is designed for use with zram. Thus, the allocator is
/Linux-v6.1/tools/testing/selftests/
DMakefile87 TARGETS += zram
/Linux-v6.1/Documentation/staging/
Dlzo.rst88 common case for zram. This modifies the bitstream in a backwards compatible way
/Linux-v6.1/Documentation/admin-guide/sysctl/
Dvm.rst904 For in-memory swap, like zram or zswap, as well as hybrid setups that
/Linux-v6.1/
DMAINTAINERS22792 F: Documentation/admin-guide/blockdev/zram.rst
22793 F: drivers/block/zram/