PD#SWPL-145324
Problem:
zstd is high compress ratio but low speed, lz4 is fast but low
compress ratio. Need balance them.
Solution:
Add a mixed crypto layer and can set ratio of lz4/zstd
Verify:
t5m
Change-Id: I4fbe930d05ef66336acacaae640fa47855d4b47b
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
PD#SWPL-113705
Problem:
In the boot log, characters are missing when printing
due to long strings
Solution:
Print the string in some parts.
Verify:
SC2
Change-Id: I2989ac089598d3f2b97eaa98fcf923ff4c7963c8
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
PD#SWPL-106500
Problem:
want to allocate memory from a fixed area in asymmetric system.
Solution:
declare cma area in asymmetric memory, and provide api
Verify:
t5m
Change-Id: I785e95a7f01ceff3a135b65c012ddb0b94be92da
Signed-off-by: xinli.gao <xinli.gao@amlogic.com>
PD#SWPL-95400
Problem:
If we pin a file in android, the whole data of this file
will be loaded to DDR, but most of these data may not be
used, this caused memory waste.
Solution:
delay mark mlocked flags for unevictable pages until
it has been faulted.
You can use following command to disable this function:
echo 0 > /proc/sys/vm/shrink_unevictable
Verify:
sc2_ah212.
Change-Id: I3981b36114ab331c558198b80140aaa91fe7e7df
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-76021
Problem:
need add watch point driver.
Solution:
porting watch point driver.
Verify:
s4_ap222.
Change-Id: Ie4220735d607c8b865209d43f314eaad41a29a9a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-73189
Problem:
memory reclaim process is usually do when first allocate failed from buddy.
This will cause some process crash especially when memory is low, because
there is not enough time to do reclaim process.
Solution:
try to wake up kswapd process to reclaim memory if free memory is less
than high water mark. After apply this change, free memory is usually
keeps high than high_water mark.
Verify:
local.
Change-Id: I9c5f90bba778aacfe21aacb332ed19ad162b048b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-72350
Problem:
add a tool to list how many memory cache files used in file
cache.
console:/ # cat /proc/filecache
Solution:
porting file cache from 5.4.
Verify:
local.
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Change-Id: I92420acab7333b75bbb5bca1075d3e401b027fb2
PD#SWPL-70022
Problem:
No vmap stack support on 5.15
Solution:
Porting it from 5.4
Verify:
local
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: Ie75bedb3072dfd90a5d74b64684c233186aada81
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I78552ad490938c455178e56395ff63e60b62a320
PD#SWPL-72254
Problem:
no mem debug on kernel5.15.
Solution:
porting mem debug from 5.4.
Verify:
local.
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Change-Id: Ie625011e90df9203686acbe52997149527a38daa
PD#SWPL-70022
Problem:
No cma optimization on 5.15
Solution:
1, add aml optimized cma driver, including use multi-core cma allocation
and quick cma free code;
2, add some interfaces for kernel mm logic change and porting some
interface to other driver usage.
Verify:
local
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I81cba90b1493f0dd81b61e5d24bc5eb455cdccc7
PD#SWPL-70022
Problem:
No slab trace on 5.15 kernel
Solution:
Porting it from 5.4
Verify:
local
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I25b732530f1253df24fbb2cd7d8d87c11fedccce
PD#SWPL-70022
Problem:
No pagetrace function on 5.15 kernel
Solution:
porting it from 5.4
Verify:
local
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I16874164b9238a5ee8f0449ecda05377d6761a2a