tao zeng
76789cadf7
mm: optimize thread stack usage on arm64 [1/1]
...
PD#SWPL-1219
Problem:
On arm64, thread stack is 16KB for each task. If running task number
is large, this type of memory may over 40MB. It's a large amount on
small memory platform. But most case thread only use less 4KB stack.
It's waste of memory and we need optimize it.
Solution:
1. Pre-allocate a vmalloc address space for task stack;
2. Only map 1st page for stack and handle page fault in EL1
when stack growth triggered exception;
3. handle stack switch for exception.
Verify:
p212
Change-Id: I47f511ccfa2868d982bc10a820ed6435b6d52ba9
Signed-off-by: tao zeng <tao.zeng@amlogic.com >
2019-02-26 18:13:09 +09:00
..
2019-02-13 20:02:58 -02:00
2017-10-03 17:19:26 +00:00
2019-02-13 20:02:29 -02:00
2019-02-25 05:49:30 -03:00
2017-09-02 07:07:53 +02:00
2018-11-28 18:58:41 +09:00
2018-12-21 14:11:34 +01:00
2018-11-28 18:24:27 +09:00
2018-11-28 18:58:41 +09:00
2018-05-30 07:50:50 +02:00
2019-02-13 08:40:45 -02:00
2019-02-13 20:10:32 -02:00
2019-02-25 05:49:30 -03:00
2018-01-10 09:29:51 +01:00
2018-02-17 13:21:18 +01:00
2018-09-26 08:36:37 +02:00
2018-05-30 07:50:49 +02:00
2018-08-03 07:55:25 +02:00
2018-08-03 07:55:25 +02:00
2018-11-13 11:16:57 -08:00
2017-01-06 10:40:13 +01:00
2018-05-01 16:49:34 +00:00
2017-03-26 13:05:58 +02:00
2018-11-28 18:46:05 +09:00
2018-11-28 19:11:53 +09:00
2017-10-12 22:31:24 +02:00
2019-02-13 20:10:25 -02:00
2017-07-21 07:42:21 +02:00
2019-02-26 18:13:09 +09:00
2018-11-10 07:42:54 -08:00
2018-01-10 09:29:52 +01:00
2019-02-12 19:44:59 +01:00
2017-12-14 09:28:24 +01:00
2018-02-28 15:09:58 -08:00
2018-11-28 17:41:55 +09:00
2018-06-05 10:28:57 +02:00
2018-11-13 11:16:50 -08:00
2018-08-03 07:55:12 +02:00
2018-02-28 15:09:58 -08:00
2017-03-12 06:41:45 +01:00
2019-01-13 10:03:51 +01:00
2019-01-12 22:23:05 -05:00
2017-05-20 14:28:40 +02:00
2019-02-13 20:05:54 -02:00
2017-05-25 15:44:38 +02:00
2018-04-13 19:47:53 +02:00
2017-06-14 15:05:54 +02:00
2018-05-30 07:50:29 +02:00
2018-04-24 09:34:09 +02:00
2018-05-22 16:58:02 +02:00
2019-02-20 10:18:33 +01:00
2018-08-15 18:14:53 +02:00
2016-10-11 15:06:33 -07:00
2018-11-28 18:17:19 +09:00
2017-02-14 15:25:42 -08:00
2018-08-03 07:55:24 +02:00
2018-11-28 18:24:27 +09:00
2019-02-13 20:10:32 -02:00
2016-11-03 16:55:58 -04:00
2018-05-09 09:50:20 +02:00
2017-06-17 06:41:51 +02:00
2018-01-10 09:29:52 +01:00
2018-09-09 20:01:24 +02:00
2018-04-03 11:15:30 -07:00
2018-09-09 20:01:24 +02:00
2018-05-09 19:39:28 -07:00
2018-05-09 19:39:28 -07:00
2017-11-15 15:53:17 +01:00
2018-08-07 14:43:24 +08:00