Home
last modified time | relevance | path

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

/linux/drivers/block/zram/
H A Dzram_drv.c57 static void zram_free_page(struct zram *zram, size_t index);
58 static int zram_read_from_zspool(struct zram *zram, struct page *page,
61 static int zram_slot_trylock(struct zram *zram, u32 index) in zram_slot_trylock() argument
63 return spin_trylock(&zram->table[index].lock); in zram_slot_trylock()
66 static void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock() argument
68 spin_lock(&zram->table[index].lock); in zram_slot_lock()
71 static void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock() argument
73 spin_unlock(&zram->table[index].lock); 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 …]
H A DMakefile3 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
/linux/tools/testing/selftests/zram/
H A 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 …]
H A 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
H A DMakefile4 TEST_PROGS := zram.sh
H A Dzram01.sh40 dd conv=notrunc if=/dev/zero of=zram${i}/file \
/linux/Documentation/ABI/testing/
H A 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 …]
H A 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/Documentation/admin-guide/blockdev/
H A Dindex.rst14 zram
/linux/Documentation/mm/
H A Dzsmalloc.rst5 This allocator is designed for use with zram. Thus, the allocator is
226 zram as a build artifacts storage (Linux kernel compilation).
237 zram mm_stat:::
251 zram mm_stat:::
/linux/Documentation/translations/zh_CN/mm/
H A Dzsmalloc.rst13 这个分配器是为与zram一起使用而设计的。因此,该分配器应该在低内存条件下工作良好。特别是,
/linux/drivers/block/
H A DMakefile38 obj-$(CONFIG_ZRAM) += zram/
/linux/Documentation/staging/
H A Dlzo.rst88 common case for zram. This modifies the bitstream in a backwards compatible way
/linux/Documentation/admin-guide/sysctl/
H A Dvm.rst958 For in-memory swap, like zram or zswap, as well as hybrid setups that
/linux/
H A DCREDITS1513 D: zsmalloc memory allocator and zram block device driver
H A DMAINTAINERS26277 F: Documentation/admin-guide/blockdev/zram.rst
26278 F: drivers/block/zram/