From owner-freebsd-small Fri Dec 22 11:55:40 2000 From owner-freebsd-small@FreeBSD.ORG Fri Dec 22 11:55:38 2000 Return-Path: Delivered-To: freebsd-small@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 11B5C37B400 for ; Fri, 22 Dec 2000 11:55:38 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id eBMJtON78497; Fri, 22 Dec 2000 11:55:24 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200012221955.eBMJtON78497@iguana.aciri.org> Subject: Re: a question In-Reply-To: <20001222110144.A498@tao.org.uk> from Josef Karthauser at "Dec 22, 2000 11: 1:44 am" To: joe@tao.org.uk (Josef Karthauser) Date: Fri, 22 Dec 2000 11:55:24 -0800 (PST) Cc: rizzo@aciri.org, small@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: rizzo@iguana.aciri.org Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > P.S. for the curious: ssh+sshd+scp crunched together take 190KB > > uncompressed, versus the over 500KB for openssh and friends using > > the same method. Another example of a 'fat' app is tcpdump, which ... > On the other hand is there anyone who knows openssh who would be > willing to help make it smaller? > It seems to me to be better to use code that's already in the tree > if possible. Ideally yes, but people might object in polluting the code in the source tree just for picobsd purposes. Adapting the kernel is one thing, but for applications it is not such a big issue to have two source trees when necessary. Take the tcpdump example -- the version in 3.4 is 48KB when included in the build. The version in 4.2 is 100KB, as it has lot more "printers". Trimming it requires #ifdef'ing out parts in many source files to remove functionality, in the end it becomes a very diffent thing and it is easier to just use the older version. Ditto for *ssh -- even worse there because the code is very ugly and badly structured, and taking pieces away is not trivial. cheers luigi ----------------------------------+----------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message