diff options
| author | Ingo Molnar <mingo@elte.hu> | 2007-08-02 11:41:40 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2007-08-02 11:41:40 -0400 |
| commit | 94c18227d1e3f02de5b345bd3cd5c960214dc9c8 (patch) | |
| tree | c2cb18bf1deb097f61cea3ebec23bbd844e1e072 | |
| parent | 6cfb0d5d06bea2b8791f32145eae539d524e5f6c (diff) | |
[PATCH] sched: reduce task_struct size
more task_struct size reduction, by moving the debugging/instrumentation
fields to under CONFIG_SCHEDSTATS:
(i386, nodebug):
size
----
pre-CFS 1328
CFS 1472
CFS+patch 1376
Signed-off-by: Ingo Molnar <mingo@elte.hu>
| -rw-r--r-- | include/linux/sched.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index c9e0c2a6a950..17249fae5014 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -904,23 +904,28 @@ struct sched_entity { | |||
| 904 | struct rb_node run_node; | 904 | struct rb_node run_node; |
| 905 | unsigned int on_rq; | 905 | unsigned int on_rq; |
| 906 | 906 | ||
| 907 | u64 exec_start; | ||
| 908 | u64 sum_exec_runtime; | ||
| 907 | u64 wait_start_fair; | 909 | u64 wait_start_fair; |
| 910 | u64 sleep_start_fair; | ||
| 911 | |||
| 912 | #ifdef CONFIG_SCHEDSTATS | ||
| 908 | u64 wait_start; | 913 | u64 wait_start; |
| 909 | u64 exec_start; | 914 | u64 wait_max; |
| 915 | s64 sum_wait_runtime; | ||
| 916 | |||
| 910 | u64 sleep_start; | 917 | u64 sleep_start; |
| 911 | u64 sleep_start_fair; | ||
| 912 | u64 block_start; | ||
| 913 | u64 sleep_max; | 918 | u64 sleep_max; |
| 919 | s64 sum_sleep_runtime; | ||
| 920 | |||
| 921 | u64 block_start; | ||
| 914 | u64 block_max; | 922 | u64 block_max; |
| 915 | u64 exec_max; | 923 | u64 exec_max; |
| 916 | u64 wait_max; | ||
| 917 | u64 last_ran; | ||
| 918 | 924 | ||
| 919 | u64 sum_exec_runtime; | ||
| 920 | s64 sum_wait_runtime; | ||
| 921 | s64 sum_sleep_runtime; | ||
| 922 | unsigned long wait_runtime_overruns; | 925 | unsigned long wait_runtime_overruns; |
| 923 | unsigned long wait_runtime_underruns; | 926 | unsigned long wait_runtime_underruns; |
| 927 | #endif | ||
| 928 | |||
| 924 | #ifdef CONFIG_FAIR_GROUP_SCHED | 929 | #ifdef CONFIG_FAIR_GROUP_SCHED |
| 925 | struct sched_entity *parent; | 930 | struct sched_entity *parent; |
| 926 | /* rq on which this entity is (to be) queued: */ | 931 | /* rq on which this entity is (to be) queued: */ |
