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
2017-02-26 11:10:52 +01:00
2016-07-26 16:19:19 -07:00
2016-10-11 15:06:33 -07:00
2016-01-27 09:09:57 -05:00
2018-11-07 19:09:34 -07:00
2018-11-05 05:36:36 -07:00
2018-12-07 00:42:34 -08:00
2016-03-17 15:09:34 -07:00
2016-10-07 18:46:29 -07:00
2016-03-17 15:09:34 -07:00
2018-02-25 11:05:49 +01:00
2018-05-30 07:50:23 +02:00
2016-03-15 16:55:16 -07:00
2018-04-24 11:26:46 +02:00
2018-02-28 10:18:34 +01:00
2016-07-26 16:19:19 -07:00
2018-05-19 10:27:00 +02:00
2016-05-19 19:12:14 -07:00
2018-05-30 07:50:38 +02:00
2016-05-20 17:58:30 -07:00
2018-07-11 16:26:43 +02:00
2017-01-06 10:40:13 +01:00
2018-04-24 17:43:19 +08:00
2018-05-22 16:57:57 +02:00
2016-09-13 02:35:27 +02:00
2018-05-30 07:50:38 +02:00
2016-03-17 15:09:34 -07:00
2016-03-17 15:09:34 -07:00
2018-05-30 07:50:39 +02:00
2018-05-30 07:50:41 +02:00
2017-07-21 07:42:21 +02:00
2016-05-22 17:21:27 -07:00
2017-12-05 11:34:59 +01:00
2016-10-12 10:23:41 -07:00
2017-08-30 10:21:47 +02:00
2018-01-31 12:55:51 +01:00
2017-10-21 17:21:36 +02:00
2018-03-24 11:00:21 +01:00
2018-02-28 10:18:33 +01:00
2018-05-30 13:19:56 +02:00
2016-07-28 16:07:41 -07:00
2017-08-24 17:12:21 -07:00
2016-10-07 18:46:28 -07:00
2017-06-07 12:37:47 +02:00
2016-03-17 15:09:34 -07:00
2018-06-13 16:37:10 +02:00
2016-04-28 11:44:19 +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
2017-08-11 08:49:29 -07:00
2015-11-05 19:34:48 -08:00
2017-08-24 17:12:19 -07:00
2017-01-06 10:40:13 +01:00
2017-12-09 22:01:47 +01:00
2018-12-17 23:10:21 -08:00
2015-11-05 19:34:48 -08:00
2016-10-07 18:46:27 -07:00
2016-07-28 16:07:41 -07:00
2016-10-07 18:46:29 -07:00
2018-03-05 15:34:36 +08:00
2016-10-07 18:46:27 -07:00
2016-06-03 15:06:22 -07:00
2018-04-24 09:34:18 +02:00
2017-11-24 08:33:42 +01:00
2016-03-17 15:09:34 -07:00
2018-05-09 09:50:18 +02:00
2016-03-17 15:09:34 -07:00
2016-10-18 14:13:37 -07:00
2016-03-17 15:09:34 -07:00
2018-04-24 17:43:19 +08:00
2017-08-11 08:49:29 -07:00
2018-03-29 11:32:39 +02:00
2018-12-17 23:10:21 -08:00
2018-04-24 09:34:09 +02:00
2017-03-22 12:43:38 +01:00
2017-03-22 12:43:38 +01:00
2018-12-17 23:10:21 -08:00
2016-08-02 17:31:41 -04:00
2017-10-21 17:21:36 +02:00
2017-07-05 14:40:17 +02:00
2016-10-07 18:46:28 -07:00
2018-04-17 17:58:08 -08:00
2018-05-30 07:50:40 +02:00
2017-06-14 15:06:00 +02:00
2016-09-20 16:07:39 -07:00
2016-04-04 10:41:08 -07:00
2018-02-25 11:05:41 +01:00
2016-10-07 18:46:27 -07:00
2018-12-06 02:57:50 -08:00
2017-03-12 06:41:43 +01:00
2018-10-23 01:28:09 -07:00
2018-05-21 00:21:18 -07:00
2017-04-08 09:30:36 +02:00
2016-06-03 16:02:55 -07:00
2016-01-15 11:40:52 -08:00
2015-11-06 17:50:42 -08:00
2017-12-14 09:28:23 +01:00
2018-01-17 09:38:52 +01:00