Files
linux/mm
tao zeng 6af3c846c0 mm: save wasted memory by slab [1/1]
PD#SWPL-1767

Problem:
When driver/kernel call kmalloc with large size, memory may waste
if size is not equal to 2^n. For example, driver call kmalloc with
size 129KB, kmalloc will allocate a 256KB memory block to caller.
Then 127kb memory will be wasted if this caller don't free it.

Solution:
Free tail of slab memory if size is not match to 2^n. This change
can save about 900KB memory after boot, and more than 100KB during
run time.

Verify:
P212

Change-Id: Iba378792ec30003358b64384361c0f0c4c2800d8
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2018-12-17 23:10:21 -08:00
..
2018-05-30 13:19:56 +02:00
2018-04-24 11:26:46 +02:00
2018-05-30 07:50:41 +02:00
2017-12-05 11:34:59 +01:00
2018-05-30 13:19:56 +02:00
2017-06-07 12:37:47 +02:00
2018-06-13 16:37:10 +02:00
2016-03-17 15:09:34 -07:00
2018-04-17 17:58:08 -08:00
2017-08-11 13:55:02 -07:00
2015-11-05 19:34:48 -08:00
2017-08-24 17:12:19 -07:00
2018-04-24 09:34:18 +02:00
2016-03-17 15:09:34 -07:00
2018-03-29 11:32:39 +02:00
2018-12-17 23:10:21 -08:00
2018-04-17 17:58:08 -08:00
2017-06-14 15:06:00 +02:00
2016-10-07 18:46:27 -07:00