From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 19:41:48 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEF9916A421 for ; Mon, 3 Sep 2007 19:41:48 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id CD00C13C478 for ; Mon, 3 Sep 2007 19:41:48 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.222] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id l83JfUH7065673; Mon, 3 Sep 2007 12:41:30 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <46DC636A.1060109@freebsd.org> Date: Mon, 03 Sep 2007 12:41:30 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Giorgos Keramidas References: <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> <20070903001803.GA8098@kobe.laptop> In-Reply-To: <20070903001803.GA8098@kobe.laptop> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Yar Tikhiy , hackers@freebsd.org Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 19:41:49 -0000 Giorgos Keramidas wrote: > > ... [chown] is still almost 4x the size of chmod: > > $ ls -ld chown > -rwxrwxr-x 1 keramida users - 550624 Sep 3 03:06 chown > $ ls -ld chmod > -rwxrwxr-x 1 keramida users - 165884 Sep 3 03:08 chmod getpwuid() pulls in DNS, NIS, and a bunch of other network routines, which are quite large. chmod doesn't need to look up user or group names. Tim Kientzle P.S. Interesting experiment: for every function in libc, create a statically linked and stripped binary that references that one function and look at the sizes.