From: Nicolas Pitre <nicolas.pitre@linaro.org>
To: Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 0/7] scheduler tinification
Date: Mon, 29 May 2017 17:02:55 -0400 [thread overview]
Message-ID: <20170529210302.26868-1-nicolas.pitre@linaro.org> (raw)
Many embedded systems don't need the full scheduler support. Most of the
time, user space is tightly controlled and many of the scheduler facilities
are simply unused.
This patch series makes it possible to configure out some parts of the
scheduler such as the deadline and realtime scheduler classes. The saving
in kernel footprint is non negligible.
Small ARM kernel config before this series:
text data bss dec hex filename
28623 3404 128 32155 7d9b kernel/sched/built-in.o
With this series and dl and rt classes disabled:
text data bss dec hex filename
20734 3334 40 24108 5e2c kernel/sched/built-in.o
And for the record, my Fedora workstation still boots and apparently runs
fine with those patches activated. I didn't test it at length though.
A significant part of the remaining code is support for various system calls
that could be automatically removed when user space doesn't use them but that
is a topic for another day.
diffstat for this series:
include/linux/init_task.h | 15 +-
include/linux/rtmutex.h | 69 ++++
include/linux/sched.h | 4 +
include/linux/sched/deadline.h | 2 +-
include/linux/sched/rt.h | 4 +-
init/Kconfig | 23 +-
kernel/locking/Makefile | 2 +
kernel/locking/rtmutex.c | 9 +
kernel/sched/Makefile | 7 +-
kernel/sched/core.c | 777 +++++------------------------------
kernel/sched/deadline.c | 336 +++++++++++++++
kernel/sched/debug.c | 6 +
kernel/sched/rt.c | 320 ++++++++++++++-
kernel/sched/sched.h | 35 +-
kernel/sched/stop_task.c | 6 +
kernel/sched/topology.c | 6 +
kernel/sysctl.c | 4 +-
kernel/time/posix-cpu-timers.c | 6 +-
lib/Kconfig.debug | 2 +-
19 files changed, 930 insertions(+), 703 deletions(-)
next reply other threads:[~2017-05-29 21:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-29 21:02 Nicolas Pitre [this message]
2017-05-29 21:02 ` [PATCH 1/7] cpuset/sched: cpuset makes sense for SMP only Nicolas Pitre
2017-05-29 21:02 ` [PATCH 2/7] sched: omit stop_sched_class when !SMP Nicolas Pitre
2017-06-08 9:30 ` [tip:sched/core] sched/core: Omit building " tip-bot for Nicolas Pitre
2017-05-29 21:02 ` [PATCH 3/7] sched/deadline: move dl related code out of sched/core.c Nicolas Pitre
2017-05-29 21:02 ` [PATCH 4/7] sched/deadline: make it configurable Nicolas Pitre
2017-05-29 21:03 ` [PATCH 5/7] sched/rt: move rt related code out of sched/core.c Nicolas Pitre
2017-05-29 21:03 ` [PATCH 6/7] sched/rt: make it configurable Nicolas Pitre
2017-05-30 8:41 ` Peter Zijlstra
2017-05-30 12:17 ` Nicolas Pitre
2017-05-30 12:31 ` Peter Zijlstra
2017-05-31 2:18 ` Nicolas Pitre
2017-05-31 9:57 ` Daniel Bristot de Oliveira
2017-05-31 10:40 ` Peter Zijlstra
2017-05-31 16:06 ` [6/7] " Rob Herring
2017-05-31 16:25 ` Nicolas Pitre
2017-05-29 21:03 ` [PATCH 7/7] rtmutex: compatibility with CONFIG_SCHED_RT=n Nicolas Pitre
2017-05-30 8:32 ` [PATCH 0/7] scheduler tinification Peter Zijlstra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170529210302.26868-1-nicolas.pitre@linaro.org \
--to=nicolas.pitre@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.