| /OK3568_Linux_fs/kernel/drivers/block/zram/ |
| H A D | zram_drv.c | 58 static void zram_free_page(struct zram *zram, size_t index); 59 static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec, 63 static int zram_slot_trylock(struct zram *zram, u32 index) in zram_slot_trylock() argument 65 return bit_spin_trylock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_trylock() 68 static void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock() argument 70 bit_spin_lock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_lock() 73 static void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock() argument 75 bit_spin_unlock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_unlock() 78 static inline bool init_done(struct zram *zram) in init_done() argument 80 return zram->disksize; in init_done() [all …]
|
| H A D | Kconfig | 15 See Documentation/admin-guide/blockdev/zram.rst for more information. 29 See Documentation/admin-guide/blockdev/zram.rst for more information. 37 /sys/kernel/debug/zram/zramX/block_state. 39 See Documentation/admin-guide/blockdev/zram.rst for more information.
|
| H A D | Makefile | 2 zram-y := zcomp.o zram_drv.o 4 obj-$(CONFIG_ZRAM) += zram.o
|
| H A D | zram_drv.h | 92 struct zram { struct
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/zram/ |
| H A D | zram_lib.sh | 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 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 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/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 \
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/zram/ |
| H A D | zram_0.2.bb | 1 SUMMARY = "Linux zram compressed in-memory swap" 9 RRECOMMENDS:${PN} = "kernel-module-zram" 15 file://zram-swap-init \ 16 file://zram-swap-deinit \ 17 file://zram-swap.service \ 25 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/zram 30 install -m 0755 ${WORKDIR}/zram-swap-init ${D}${libexecdir} 31 install -m 0755 ${WORKDIR}/zram-swap-deinit ${D}${libexecdir} 33 install -m 0644 ${WORKDIR}/zram-swap.service ${D}${systemd_unitdir}/system/zram-swap.service 34 sed -i -e "s,@LIBEXECDIR@,${libexecdir},g" ${D}${systemd_unitdir}/system/zram-swap.service [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/zram/zram/ |
| H A D | init | 29 [ -f /etc/default/zram ] && . /etc/default/zram || true 37 modprobe zram num_devices=$num_cpus 42 echo 1 > /sys/block/zram$i/reset 43 echo $mem_by_cpu > /sys/block/zram$i/disksize 45 mkswap /dev/zram$i 47 swapon -p 100 /dev/zram$i 61 swapoff /dev/zram$i 66 rmmod zram
|
| H A D | dev-zram0.swap | 2 Description=Enable compressed swap in memory using zram 3 Requires=zram-swap.service 4 After=zram-swap.service
|
| H A D | zram-swap.service | 2 Description=Create compressed swap in memory using zram 9 ExecStart=@LIBEXECDIR@/zram-swap-init /dev/zram0 10 ExecStop=@LIBEXECDIR@/zram-swap-deinit /dev/zram0
|
| H A D | zram-swap-init | 17 [ -f /etc/default/zram ] && . /etc/default/zram || true 23 modprobe -q zram || true
|
| /OK3568_Linux_fs/kernel/Documentation/ABI/testing/ |
| H A 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 …]
|
| 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
|
| /OK3568_Linux_fs/kernel/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 …]
|
| H A D | index.rst | 14 zram
|
| /OK3568_Linux_fs/buildroot/package/udisks/ |
| H A D | udisks.mk | 40 --disable-zram
|
| /OK3568_Linux_fs/kernel/drivers/block/ |
| H A D | Makefile | 41 obj-$(CONFIG_ZRAM) += zram/
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/multipath-tools/files/ |
| H A D | 0022-RH-Remove-the-property-blacklist-exception-builtin.patch | 32 - str = STRDUP("^(ram|zram|raw|loop|fd|md|dm-|sr|scd|st|dcssblk)[0-9]");
|
| /OK3568_Linux_fs/kernel/Documentation/vm/ |
| H A D | zsmalloc.rst | 7 This allocator is designed for use with zram. Thus, the allocator is
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/ |
| H A D | Makefile | 71 TARGETS += zram
|
| /OK3568_Linux_fs/yocto/poky/documentation/migration-guides/ |
| H A D | release-notes-3.4.3.rst | 65 - linux-yocto/5.10: features/zram: remove CONFIG_ZRAM_DEF_COMP
|
| /OK3568_Linux_fs/buildroot/package/util-linux/ |
| H A D | Config.in | 449 Set up and control zram devices
|
| /OK3568_Linux_fs/kernel/Documentation/staging/ |
| H A D | lzo.rst | 88 common case for zram. This modifies the bitstream in a backwards compatible way
|