Files
linux/fs
tao zeng 0d3f347e10 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>
2018-12-06 02:57:50 -08:00
..
2018-07-11 16:40:16 +02:00
2017-08-06 18:59:43 -07:00
2018-05-30 13:19:56 +02:00
2016-05-20 17:58:30 -07:00
2017-09-26 00:32:37 -07:00
2018-05-30 13:19:56 +02:00
2018-07-03 18:27:19 +02:00
2018-05-30 13:19:56 +02:00
2017-11-30 08:39:04 +00:00
2018-05-19 14:06:17 +02:00
2018-07-03 18:27:19 +02:00
2018-04-24 11:26:46 +02:00
2018-05-30 13:19:56 +02:00
2017-08-07 14:21:32 -07:00
2018-07-03 11:23:17 +02:00
2018-06-06 16:44:38 +02:00
2018-03-05 15:34:36 +08:00
2017-06-14 15:06:00 +02:00
2016-09-27 21:20:53 -04:00
2017-07-05 16:18:14 +02:00
2018-05-30 13:19:56 +02:00
2017-09-07 10:32:23 +02:00
2017-07-21 08:55:50 +02:00
2016-09-27 18:47:38 -04:00
2018-05-16 11:39:34 +02:00
2017-09-20 09:59:51 +02:00
2017-09-26 00:32:37 -07:00
2017-09-26 00:32:37 -07:00
2017-10-18 09:45:37 +02:00
2018-04-24 11:26:46 +02:00
2018-02-17 13:21:15 +01:00
2017-07-12 17:07:29 +02:00
2017-07-21 08:55:50 +02:00
2017-06-14 15:06:01 +02:00
2018-03-05 07:38:41 +01:00
2017-12-20 10:51:15 +01:00