zhouxianrong
8e19d540d1
zram: extend zero pages to same element pages
...
The idea is that without doing more calculations we extend zero pages to
same element pages for zram. zero page is special case of same element
page with zero element.
1. the test is done under android 7.0
2. startup too many applications circularly
3. sample the zero pages, same pages (none-zero element)
and total pages in function page_zero_filled
the result is listed as below:
ZERO SAME TOTAL
36214 17842 598196
ZERO/TOTAL SAME/TOTAL (ZERO+SAME)/TOTAL ZERO/SAME
AVERAGE 0.060631909 0.024990816 0.085622726 2.663825038
STDEV 0.00674612 0.005887625 0.009707034 2.115881328
MAX 0.069698422 0.030046087 0.094975336 7.56043956
MIN 0.03959586 0.007332205 0.056055193 1.928985507
from the above data, the benefit is about 2.5% and up to 3% of total
swapout pages.
The defect of the patch is that when we recovery a page from non-zero
element the operations are low efficient for partial read.
This patch extends zero_page to same_page so if there is any user to
have monitored zero_pages, he will be surprised if the number is
increased but it's not harmful, I believe.
[[email protected] : do not free same element pages in zram_meta_free]
Link: http://lkml.kernel.org/r/20170207065741.GA2567@bbox
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: zhouxianrong <[email protected] >
Signed-off-by: Minchan Kim <[email protected] >
Cc: Sergey Senozhatsky <[email protected] >
Cc: Joonsoo Kim <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2017-02-24 17:46:56 -08:00
..
ABI
First set of updates for 4.11 kernel merge window
2017-02-23 08:27:57 -08:00
accounting
acpi
ACPI / button: Remove lid_init_state=method mode
2017-01-31 17:20:45 +01:00
admin-guide
Merge branch 'akpm' (patches from Andrew)
2017-02-22 19:29:24 -08:00
aoe
arm
arm: sunxi: add support for V3s SoC
2017-01-20 21:31:34 +01:00
arm64
arm64: Work around Falkor erratum 1003
2017-02-10 11:22:12 +00:00
auxdisplay
backlight
blackfin
block
A slightly quieter cycle for documentation this time around.
2017-02-22 18:51:29 -08:00
blockdev
zram: extend zero pages to same element pages
2017-02-24 17:46:56 -08:00
bus-devices
cdrom
cdrom: Make device operations read-only
2017-02-14 08:29:56 -07:00
cgroup-v1
Documentation: cpuset: Fix 'cpuset.tasks' -> 'tasks'
2017-01-13 11:04:45 -07:00
cma
connector
console
core-api
Documentation: Update CPU hotplug and move it to core-api
2017-01-13 10:32:32 -07:00
cpu-freq
A slightly quieter cycle for documentation this time around.
2017-02-22 18:51:29 -08:00
cpuidle
cris
crypto
crypto: doc - fix typo
2017-02-15 13:23:49 +08:00
dev-tools
Improve sparse documentation
2017-02-15 15:09:13 -07:00
device-mapper
dm cache metadata: add "metadata2" feature
2017-02-16 13:12:47 -05:00
devicetree
Less anger inducing pull request for 4.11
2017-02-23 18:58:18 -08:00
dmaengine
doc-guide
docs-rst: parse-headers.pl: cleanup the documentation
2016-11-30 17:08:09 -07:00
DocBook
A slightly quieter cycle for documentation this time around.
2017-02-22 18:51:29 -08:00
driver-api
Less anger inducing pull request for 4.11
2017-02-23 18:58:18 -08:00
driver-model
irqdesc: Add a resource managed version of irq_alloc_descs()
2017-02-10 14:39:20 +01:00
early-userspace
EDID
extcon
extcon: int3496: Add Intel INT3496 ACPI device extcon driver
2017-01-09 10:04:11 +09:00
fault-injection
fb
features
2nd round of ARC udpates for 4.10rc1
2016-12-23 10:22:47 -08:00
filesystems
rxrpc: Change module filename to rxrpc.ko
2017-02-17 15:09:19 -05:00
firmware_class
firmware: revamp firmware documentation
2017-01-11 09:42:59 +01:00
fmc
fpga
fpga: Add scatterlist based programming
2017-02-10 15:20:44 +01:00
frv
gpio
gpio: random documentation update
2017-01-31 15:43:05 +01:00
gpu
Less anger inducing pull request for 4.11
2017-02-23 18:58:18 -08:00
hid
hwmon
A slightly quieter cycle for documentation this time around.
2017-02-22 18:51:29 -08:00
i2c
Merge branch 'i2c/for-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
2016-12-15 12:56:35 -08:00
ia64
ide
iio
infiniband
input
Documentation: input: fix path to input code definitions
2017-02-12 15:19:00 -07:00
ioctl
rpmsg updates for v4.11
2017-02-23 09:41:03 -08:00
isdn
kbuild
kdump
laptops
platform/x86: thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode
2016-12-13 09:29:06 -08:00
leds
leds: class: Add new optional brightness_hw_changed attribute
2017-01-29 19:59:42 +01:00
livepatch
A slightly quieter cycle for documentation this time around.
2017-02-22 18:51:29 -08:00
locking
locking/ww_mutex/Documentation: Update the design document
2017-01-14 11:14:55 +01:00
m68k
media
A slightly quieter cycle for documentation this time around.
2017-02-22 18:51:29 -08:00
memory-devices
metag
mic
mips
misc-devices
mmc
mn10300
mtd
spi-nor: Add support for Intel SPI serial flash controller
2017-01-03 17:33:36 +00:00
namespaces
netlabel
networking
A slightly quieter cycle for documentation this time around.
2017-02-22 18:51:29 -08:00
nfc
nios2
nvdimm
nvmem
parisc
PCI
Merge branch 'pci/msi' into next
2017-02-15 11:56:10 -06:00
pcmcia
perf
perf: add qcom l2 cache perf events driver
2017-02-08 19:32:24 +00:00
phy
platform
power
A slightly quieter cycle for documentation this time around.
2017-02-22 18:51:29 -08:00
powerpc
pps
Doc: clarify source of jitter in USB1.1, and USB2.0
2017-01-04 14:40:52 -07:00
prctl
process
Doc: Correct typo, "Introdution" => "Introduction"
2016-12-01 10:44:08 -07:00
pti
ptp
rapidio
RCU
Merge branches 'doc.2017.01.15b', 'dyntick.2017.01.23a', 'fixes.2017.01.23a', 'srcu.2017.01.25a' and 'torture.2017.01.15b' into HEAD
2017-01-25 12:56:05 -08:00
s390
scheduler
sched/Documentation/sched-rt-group: Fix incorrect example
2017-01-22 10:34:17 +01:00
scsi
Merge branch 'misc' into for-linus
2016-12-22 12:32:33 -08:00
security
This renames the (now inaccurate) CONFIG_DEBUG_RODATA and related config
2017-02-21 17:56:45 -08:00
serial
sh
sound
ALSA: Documentation about HDA DP MST pin init and connection
2017-01-12 10:06:47 +01:00
sphinx
docs: sphinx-extensions: make rstFlatTable work with docutils 0.13
2016-12-18 13:30:29 -07:00
sphinx-static
spi
spi: spi-ep93xx: simplify GPIO chip selects
2017-02-16 20:10:26 +00:00
sysctl
mm, madvise: fail with ENOMEM when splitting vma will hit max_map_count
2017-02-24 17:46:55 -08:00
target
thermal
Documentation: fix spelling mistakes of "Celcius" -- > "Celsius"
2017-01-04 14:36:17 -07:00
timers
time: Remove CONFIG_TIMER_STATS
2017-02-10 11:15:08 +01:00
trace
trace-vmscan-postprocess: sync with tracepoints updates
2017-02-22 16:41:29 -08:00
translations
Documentation: Fix linux-api list typo
2017-02-15 15:12:26 -07:00
usb
A slightly quieter cycle for documentation this time around.
2017-02-22 18:51:29 -08:00
virtual
KVM: race-free exit from KVM_RUN without POSIX signals
2017-02-17 12:27:37 +01:00
vm
mm, madvise: fail with ENOMEM when splitting vma will hit max_map_count
2017-02-24 17:46:55 -08:00
w1
watchdog
wimax
x86
efi: Get and store the secure boot status
2017-02-07 10:42:10 +01:00
xtensa
.gitignore
00-INDEX
edac: adjust docs location at MAINTAINERS and 00-INDEX
2016-12-15 08:57:16 -02:00
bcache.txt
bt8xxgpio.txt
btmrvl.txt
bus-virt-phys-mapping.txt
cachetlb.txt
cgroup-v2.txt
Changes
docs: add back 'Documentation/Changes' file (as symlink)
2016-12-14 16:30:12 -08:00
circular-buffers.txt
clk.txt
CodingStyle
conf.py
docs: Remove the copyright year from conf.py
2017-02-06 11:52:19 -07:00
cpu-load.txt
cputopology.txt
crc32.txt
dcdbas.txt
debugging-modules.txt
debugging-via-ohci1394.txt
dell_rbu.txt
digsig.txt
DMA-API-HOWTO.txt
DMA-API.txt
DMA-attributes.txt
common: DMA-mapping: add DMA_ATTR_PRIVILEGED attribute
2017-01-19 15:56:19 +00:00
DMA-ISA-LPC.txt
Documentation: DMA-ISA-LPC.txt
2017-02-12 15:20:07 -07:00
docutils.conf
dontdiff
Documentation: dontdiff: Update with additional entries
2017-01-26 15:08:06 -07:00
efi-stub.txt
eisa.txt
flexible-arrays.txt
futex-requeue-pi.txt
gcc-plugins.txt
highuid.txt
hw_random.txt
hwspinlock.txt
index.rst
docs/zh_CN: Add coding-style into docs build system
2017-01-26 15:30:34 -07:00
Intel-IOMMU.txt
intel_txt.txt
io-mapping.txt
io_ordering.txt
iostats.txt
IPMI.txt
IRQ-affinity.txt
IRQ-domain.txt
IRQ.txt
irqflags-tracing.txt
isa.txt
isapnp.txt
kernel-doc-nano-HOWTO.txt
docs-rst: doc-guide: split the kernel-documentation.rst contents
2016-11-19 10:22:04 -07:00
kernel-per-CPU-kthreads.txt
kobject.txt
kprobes.txt
kref.txt
kselftest.txt
ldm.txt
lockup-watchdogs.txt
logo.gif
logo.txt
lzo.txt
mailbox.txt
Makefile
Makefile.sphinx
Add a target to check broken external links in the Documentation
2017-02-15 15:22:47 -07:00
md-cluster.txt
memory-barriers.txt
doc: Update control-dependencies section of memory-barriers.txt
2017-01-14 21:29:15 -08:00
memory-hotplug.txt
men-chameleon-bus.txt
nommu-mmap.txt
ntb.txt
numastat.txt
padata.txt
parport-lowlevel.txt
percpu-rw-semaphore.txt
phy.txt
pi-futex.txt
pinctrl.txt
pinctrl: core: Fix regression caused by delayed work for hogs
2017-01-13 16:25:17 +01:00
pnp.txt
preempt-locking.txt
printk-formats.txt
pwm.txt
rbtree.txt
remoteproc.txt
rfkill.txt
robust-futex-ABI.txt
robust-futexes.txt
rpmsg.txt
rtc.txt
SAK.txt
sgi-ioc4.txt
siphash.txt
siphash: implement HalfSipHash1-3 for hash tables
2017-01-09 13:58:57 -05:00
SM501.txt
smsc_ece1099.txt
static-keys.txt
SubmittingPatches
svga.txt
sync_file.txt
this_cpu_ops.txt
unaligned-memory-access.txt
Documentation/unaligned-memory-access.txt: fix incorrect comparison operator
2016-12-27 13:08:42 -07:00
unshare.txt
vfio-mediated-device.txt
vfio-mdev: Make mdev_parent private
2016-12-30 08:13:41 -07:00
vfio.txt
video-output.txt
xillybus.txt
xz.txt
zorro.txt