Searched refs:zram (Results 1 – 17 of 17) sorted by relevance
/Linux-v4.19/drivers/block/zram/ |
D | zram_drv.c | 54 static void zram_free_page(struct zram *zram, size_t index); 56 static void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock() argument 58 bit_spin_lock(ZRAM_LOCK, &zram->table[index].value); in zram_slot_lock() 61 static void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock() argument 63 bit_spin_unlock(ZRAM_LOCK, &zram->table[index].value); in zram_slot_unlock() 66 static inline bool init_done(struct zram *zram) in init_done() argument 68 return zram->disksize; in init_done() 71 static inline bool zram_allocated(struct zram *zram, u32 index) in zram_allocated() argument 74 return (zram->table[index].value >> (ZRAM_FLAG_SHIFT + 1)) || in zram_allocated() 75 zram->table[index].handle; in zram_allocated() [all …]
|
D | Kconfig | 16 See Documentation/blockdev/zram.txt for more information. 28 See Documentation/blockdev/zram.txt for more information. 36 /sys/kernel/debug/zram/zramX/block_state. 38 See Documentation/blockdev/zram.txt for more information.
|
D | Makefile | 1 zram-y := zcomp.o zram_drv.o 3 obj-$(CONFIG_ZRAM) += zram.o
|
D | zram_drv.h | 84 struct zram { struct
|
/Linux-v4.19/tools/testing/selftests/zram/ |
D | zram_lib.sh | 42 swapoff /dev/zram$i 46 umount /dev/zram$i 50 echo 1 > /sys/block/zram${i}/reset 51 rm -rf zram$i 60 rmmod zram > /dev/null 2>&1 67 MODULE_PATH=/lib/modules/`uname -r`/kernel/drivers/block/zram/zram.ko 71 modprobe zram num_devices=$dev_num 77 dev_num_created=$(ls /dev/zram* | wc -w) 172 mkswap /dev/zram$i > err.log 2>&1 178 swapon /dev/zram$i > err.log 2>&1 [all …]
|
D | README | 1 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/blockdev/zram.txt
|
D | zram.sh | 22 MODULE_PATH=/lib/modules/`uname -r`/kernel/drivers/block/zram/zram.ko
|
D | Makefile | 4 TEST_PROGS := zram.sh
|
D | zram01.sh | 51 dd conv=notrunc if=/dev/zero of=zram${i}/file \
|
/Linux-v4.19/Documentation/blockdev/ |
D | zram.txt | 1 zram: Compressed RAM based block devices 6 The zram module creates RAM based block devices named /dev/zram<id> 12 Statistics for individual zram devices are exported through sysfs nodes at 13 /sys/block/zram<id>/ 17 There are several ways to configure and manage zram device(-s): 18 a) using zram and zram_control sysfs attributes 21 In this document we will describe only 'manual' zram configuration steps, 22 IOW, zram and zram_control sysfs attributes. 26 that zram maintainers do not develop/maintain util-linux or zramctl, should 29 Following shows a typical sequence of steps for using zram. [all …]
|
/Linux-v4.19/Documentation/ABI/testing/ |
D | sysfs-class-zram | 1 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
|
D | sysfs-block-zram | 1 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 …]
|
/Linux-v4.19/drivers/block/ |
D | Makefile | 39 obj-$(CONFIG_ZRAM) += zram/
|
D | Kconfig | 122 source "drivers/block/zram/Kconfig"
|
/Linux-v4.19/tools/testing/selftests/ |
D | Makefile | 48 TARGETS += zram
|
/Linux-v4.19/Documentation/vm/ |
D | zsmalloc.rst | 7 This allocator is designed for use with zram. Thus, the allocator is
|
/Linux-v4.19/ |
D | MAINTAINERS | 16229 F: drivers/block/zram/ 16230 F: Documentation/blockdev/zram.txt
|