Jianqun Xu
7a669a6418
mm: cma: add CmaAllocated/CmaReleased info for meminfo node
...
Show the CMA pages used by cma_alloc in meminfo node.
Tested on RV1126 EVB DDR3:
CmaTotal: 270336 kB
CmaAllocated: 44408 kB
CmaReleased: 225928 kB
CmaFree: 0 kB
The CmaTotal = CmaAllocated + CmaReleased, and the CmaFree is pages
under cma area unused by system.
The CmaAllocated can be calculated by CMA_DEBUGFS.
Tested on RV1126 EVB DDR3:
cat /sys/kernel/debug/cma/*/used
10756
346
The results from cma used is in page count, 1 page = 4kByte
CmaAllocated = 44408kB = 10756 + 346 pages
Change-Id: Ib79001367562c968e6432816b158cba551978173
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com >
2021-01-07 14:16:12 +08:00
..
2019-09-24 17:44:16 -07:00
2019-03-05 17:58:50 +01:00
2018-08-02 12:17:27 -06:00
2021-01-06 16:59:56 +08:00
2021-01-07 14:16:12 +08:00
2020-07-02 10:21:15 +08:00
2020-04-22 14:10:19 +08:00
2018-09-13 15:18:04 -10:00
2019-08-30 11:58:12 +02:00
2018-08-30 20:01:32 +02:00
2020-11-16 07:43:08 +01:00
2019-10-07 15:27:40 -04:00
2019-12-01 09:17:07 +01:00
2019-10-07 15:27:40 -04:00
2020-01-29 16:43:27 +01:00
2020-11-24 14:57:17 +01:00
2019-11-20 18:45:20 +01:00
2020-09-09 19:04:32 +02:00
2018-07-17 09:35:30 +02:00
2020-04-22 14:10:19 +08:00
2020-04-17 06:43:14 +00:00
2018-08-22 10:52:44 -07:00
2020-10-14 10:31:26 +02:00
2020-10-01 13:14:41 +02:00
2020-04-29 16:31:28 +02:00
2019-06-19 08:17:59 +02:00
2020-09-09 19:04:29 +02:00
2019-10-07 15:27:40 -04:00
2020-04-17 06:43:14 +00:00
2020-04-13 21:36:41 +00:00
2020-10-29 09:55:15 +01:00
2019-11-20 20:43:17 +01:00
2020-10-07 08:00:08 +02:00
2019-10-29 09:19:59 +01:00
2020-10-01 16:49:05 +02:00
2020-11-10 13:23:09 +01:00
2018-08-22 10:52:44 -07:00
2020-02-11 15:05:03 -08:00
2019-10-07 15:27:40 -04:00
2019-10-07 15:27:40 -04:00
2020-05-30 00:09:49 +00:00
2018-08-22 10:52:45 -07:00
2020-10-01 16:49:05 +02:00
2019-07-31 07:27:08 +02:00
2020-04-10 02:39:42 +00:00
2020-03-11 17:10:39 +01:00
2020-06-07 14:25:43 +02:00
2019-10-07 15:27:40 -04:00
2020-05-25 18:20:29 +08:00
2020-03-25 08:06:13 +01:00
2020-10-29 09:55:15 +01:00
2020-12-29 16:10:48 +08:00
2020-08-21 11:05:33 +02:00
2019-04-05 22:32:58 +02:00
2019-07-03 13:14:45 +02:00
2020-01-24 17:54:49 +00:00
2020-06-11 15:40:45 +08:00
2020-06-11 15:40:45 +08:00
2019-11-13 16:56:57 +00:00
2018-11-13 11:08:46 -08:00
2020-01-23 08:21:31 +01:00
2020-10-01 13:14:32 +02:00
2019-02-12 19:47:12 +01:00
2020-09-24 12:48:04 +02:00
2018-08-30 20:01:32 +02:00
2019-08-25 10:47:43 +02:00
2020-05-20 11:37:46 +02:00
2020-07-29 13:22:30 +02:00
2020-11-16 09:22:35 +01:00
2019-09-24 17:44:14 -07:00
2020-11-02 16:12:14 +00:00
2020-11-03 18:36:42 +08:00
2018-08-17 16:20:32 -07:00
2020-01-29 16:43:26 +01:00
2018-08-22 10:52:44 -07:00
2020-10-01 16:49:05 +02:00
2019-07-31 07:27:03 +02:00
2020-10-10 18:38:14 +08:00
2018-12-05 19:32:13 +01:00
2019-10-11 18:20:58 +02:00
2019-05-22 07:37:40 +02:00
2020-06-22 10:50:54 +02:00
2018-09-13 15:18:04 -10:00
2020-06-03 09:23:15 +02:00
2019-10-17 13:45:19 -07:00
2020-10-01 16:49:05 +02:00
2020-07-07 23:32:09 +08:00
2019-03-21 16:25:26 -07:00
2018-12-01 09:37:33 +01:00
2020-01-09 10:19:00 +01:00
2018-07-26 19:38:03 -07:00