Searched refs:zram (Results 1 – 16 of 16) sorted by relevance
| /linux/drivers/block/zram/ |
| H A D | zram_drv.c | 59 static void slot_free(struct zram *zram, unsigned long index); 73 static __must_check bool slot_trylock(struct zram *zram, unsigned long index) in slot_trylock() argument 75 unsigned long *lock = &zram->table[index].__lock; in slot_trylock() 78 mutex_acquire(&zram->table_lock_map, 0, 1, _RET_IP_); in slot_trylock() 79 lock_acquired(&zram->table_lock_map, _RET_IP_); in slot_trylock() 86 static void slot_lock(struct zram *zram, unsigned long index) in slot_lock() argument 88 unsigned long *lock = &zram->table[index].__lock; in slot_lock() 90 mutex_acquire(&zram->table_lock_map, 0, 0, _RET_IP_); in slot_lock() 92 lock_acquired(&zram->table_lock_map, _RET_IP_); in slot_lock() 95 static void slot_unlock(struct zram *zram, unsigned long index) in slot_unlock() argument [all …]
|
| H A D | Makefile | 3 zram-y := zcomp.o zram_drv.o 5 zram-$(CONFIG_ZRAM_BACKEND_LZO) += backend_lzorle.o backend_lzo.o 6 zram-$(CONFIG_ZRAM_BACKEND_LZ4) += backend_lz4.o 7 zram-$(CONFIG_ZRAM_BACKEND_LZ4HC) += backend_lz4hc.o 8 zram-$(CONFIG_ZRAM_BACKEND_ZSTD) += backend_zstd.o 9 zram-$(CONFIG_ZRAM_BACKEND_DEFLATE) += backend_deflate.o 10 zram-$(CONFIG_ZRAM_BACKEND_842) += backend_842.o 12 obj-$(CONFIG_ZRAM) += zram.o
|
| H A D | zram_drv.h | 121 struct zram { struct
|
| /linux/tools/testing/selftests/zram/ |
| H A D | zram_lib.sh | 49 echo "zram cleanup" 52 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 77 echo "create '$dev_num' zram device(s)" 79 # zram module loaded, new kernel 80 if [ -d "/sys/class/zram [all...] |
| H A 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>/ 22 zram.sh: For sanity check of CONFIG_ZRAM and to run zram01 and zram02 39 kernel-source-tree/Documentation/admin-guide/blockdev/zram.rst
|
| H A D | Makefile | 4 TEST_PROGS := zram.sh
|
| H A D | zram01.sh | 40 dd conv=notrunc if=/dev/zero of=zram${i}/file \
|
| /linux/Documentation/ABI/testing/ |
| H A 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
|
| /linux/Documentation/admin-guide/blockdev/ |
| H A D | zram.rst | 2 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 …]
|
| /linux/Documentation/translations/zh_CN/mm/ |
| H A D | zsmalloc.rst | 13 这个分配器是为与zram一起使用而设计的。因此,该分配器应该在低内存条件下工作良好。特别是,
|
| /linux/tools/testing/selftests/ |
| H A D | Makefile | 144 TARGETS += zram
|
| /linux/drivers/block/ |
| H A D | Kconfig | 109 source "drivers/block/zram/Kconfig"
|
| /linux/Documentation/ |
| H A D | .renames.txt | 117 blockdev/zram admin-guide/blockdev/zram
|
| /linux/mm/ |
| H A D | Kconfig | 131 comment "Zsmalloc is a common backend allocator for zswap & zram"
|
| /linux/ |
| H A D | CREDITS | 1552 D: zsmalloc memory allocator and zram block device driver
|
| H A D | MAINTAINERS | 30138 F: Documentation/ABI/testing/sysfs-block-zram 30139 F: Documentation/ABI/testing/sysfs-class-zram 30140 F: Documentation/admin-guide/blockdev/zram.rst 30141 F: drivers/block/zram/ 30142 F: tools/testing/selftests/zram/
|