From: josh@joshtriplett.org
To: Randy Dunlap <rdunlap@infradead.org>
Cc: Pieter Smith <pieter@boesman.nl>,
Alexander Duyck <alexander.h.duyck@intel.com>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Alexei Starovoitov <ast@plumgrid.com>,
Andrew Morton <akpm@linux-foundation.org>,
Bertrand Jacquin <beber@meleeweb.net>,
Catalina Mocanu <catalina.mocanu@gmail.com>,
Daniel Borkmann <dborkman@redhat.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
"Eric W. Biederman" <ebiederm@xmission.com>,
Fabian Frederick <fabf@skynet.be>,
"open list:FUSE: FILESYSTEM..."
<fuse-devel@lists.sourceforge.net>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Hugh Dickins <hughd@google.com>,
Iulia Manda <iulia.manda21@gmail.com>,
Jan Beulich <JBeulich@suse.com>,
"J. Bruce Fields" <bfields@fieldses.org>,
Jeff Layton <jlayton@poochiereds.net>,
linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org,
open list <linux-kernel@vger.kernel.org>,
"open list:KERNEL NFSD, SUNR..." <linux-nfs@vger.kernel.org>,
"Luis R. Rodriguez" <mcgrof@suse.com>,
Matt Turner <mattst88@gmail.com>, Mel Gorman <mgorman@suse.de>,
"Michael S. Tsirkin" <mst@redhat.com>,
Miklos Szeredi <miklos@szeredi.hu>,
"open list:NETWORKING [GENERAL]" <netdev@vger.kernel.org>,
Oleg Nesterov <oleg@redhat.com>,
Paul Durrant <Paul.Durrant@citrix.com>,
"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
Peter Foley <pefoley2@pefoley.com>, Thomas Graf <tgraf@suug.ch>,
Tom Herbert <therbert@google.com>,
Trond Myklebust <trond.myklebust@primarydata.com>,
Willem de Bruijn <willemb@google.com>,
Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Subject: Re: [PATCH v4 0/7] kernel tinification: optionally compile out splice family of syscalls (splice, vmsplice, tee and sendfile)
Date: Tue, 25 Nov 2014 14:08:41 -0800 [thread overview]
Message-ID: <20141125220841.GB25683@cloud> (raw)
In-Reply-To: <5474ABB6.3030400@infradead.org>
[Resending this mail due to some email encoding brokenness that
prevented it from reaching LKML the first time; sorry to anyone who
receives two copies.]
On Tue, Nov 25, 2014 at 08:17:58AM -0800, Randy Dunlap wrote:
> On 11/24/2014 03:00 PM, Pieter Smith wrote:
> >REPO: https://github.com/smipi1/linux-tinification.git
> >
> >BRANCH: tiny/config-syscall-splice
> >
> >BACKGROUND: This patch-set forms part of the Linux Kernel Tinification effort (
> > https://tiny.wiki.kernel.org/).
> >
> >GOAL: Support compiling out the splice family of syscalls (splice, vmsplice,
> > tee and sendfile) along with all supporting infrastructure if not needed.
> > Many embedded systems will not need the splice-family syscalls. Omitting them
> > saves space.
>
> Hi,
>
> Is the splice family of syscalls the only one that tiny has identified
> for optional building or can we expect similar treatment for other
> syscalls?
Pretty much any system call that you could conceive of writing a
userspace without.
There's a partial project list at https://tiny.wiki.kernel.org/projects.
> Why will many embedded systems not need these syscalls? You know
> exactly what apps they run and you are positive that those apps do
> not use splice?
Yes, precisely. We're talking about embedded systems small enough that
you're booting with init=/your/app and don't even call fork(), where you
know exactly what code you're putting in and what libraries you use.
And they're almost certainly not running glibc.
> >RESULTS: A tinyconfig bloat-o-meter score for the entire patch-set:
> >
> >add/remove: 0/41 grow/shrink: 5/7 up/down: 23/-8422 (-8399)
>
> The summary is that this patch saves around 8 KB of code space --
> is that correct?
Right. For reference, we're talking about kernels where the *total*
size is a few hundred kB.
> How much storage space do embedded systems have nowadays?
For the embedded systems we're targeting for the tinification effort, in
a first pass: 512k-2M of storage (often for an *uncompressed* kernel, to
support execute-in-place), and 128k-512k of memory. We've successfully
built useful kernels and userspaces for such environments, and we'd like
to go even smaller.
- Josh Triplett
prev parent reply other threads:[~2014-11-25 22:08 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-24 23:00 [PATCH v4 0/7] kernel tinification: optionally compile out splice family of syscalls (splice, vmsplice, tee and sendfile) Pieter Smith
2014-11-24 23:01 ` [PATCH v4 1/7] fs: move sendfile syscall into fs/splice Pieter Smith
2014-11-24 23:01 ` [PATCH v4 2/7] fs: moved kernel_write to fs/read_write Pieter Smith
2014-11-24 23:01 ` [PATCH v4 3/7] fs/splice: support compiling out splice-family syscalls Pieter Smith
2014-11-25 0:49 ` Josh Triplett
2014-11-24 23:01 ` [PATCH v4 4/7] fs/fuse: support compiling out splice Pieter Smith
2014-11-24 23:01 ` [PATCH v4 5/7] fs/nfsd: " Pieter Smith
2014-11-24 23:01 ` [PATCH v4 6/7] net/core: " Pieter Smith
2014-11-24 23:01 ` [PATCH v4 7/7] fs/splice: full support for " Pieter Smith
2014-11-25 0:52 ` [PATCH v4 0/7] kernel tinification: optionally compile out splice family of syscalls (splice, vmsplice, tee and sendfile) Josh Triplett
[not found] ` <5474ABB6.3030400@infradead.org>
2014-11-25 17:13 ` David Miller
2014-11-25 18:10 ` Paul E. McKenney
2014-11-25 18:24 ` David Miller
2014-11-25 18:58 ` Theodore Ts'o
2014-11-25 19:05 ` David Miller
2014-11-25 18:53 ` josh
2014-11-25 19:04 ` David Miller
2014-11-25 19:16 ` Eric W. Biederman
2014-11-25 19:27 ` David Miller
2014-11-25 20:01 ` Eric W. Biederman
2014-11-25 20:11 ` Pieter Smith
2014-11-26 12:19 ` One Thousand Gnomes
2014-11-25 22:08 ` josh [this message]
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=20141125220841.GB25683@cloud \
--to=josh@joshtriplett.org \
--cc=JBeulich@suse.com \
--cc=Paul.Durrant@citrix.com \
--cc=akpm@linux-foundation.org \
--cc=alexander.h.duyck@intel.com \
--cc=ast@plumgrid.com \
--cc=beber@meleeweb.net \
--cc=bfields@fieldses.org \
--cc=catalina.mocanu@gmail.com \
--cc=davem@davemloft.net \
--cc=dborkman@redhat.com \
--cc=ebiederm@xmission.com \
--cc=edumazet@google.com \
--cc=fabf@skynet.be \
--cc=fuse-devel@lists.sourceforge.net \
--cc=geert@linux-m68k.org \
--cc=hughd@google.com \
--cc=iulia.manda21@gmail.com \
--cc=jlayton@poochiereds.net \
--cc=linux-api@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=mattst88@gmail.com \
--cc=mcgrof@suse.com \
--cc=mgorman@suse.de \
--cc=miklos@szeredi.hu \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=pefoley2@pefoley.com \
--cc=pieter@boesman.nl \
--cc=rdunlap@infradead.org \
--cc=tgraf@suug.ch \
--cc=therbert@google.com \
--cc=trond.myklebust@primarydata.com \
--cc=viro@zeniv.linux.org.uk \
--cc=willemb@google.com \
--cc=xiaoguangrong@linux.vnet.ibm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox