This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Sparse file criteria malfunction - binutils produces sparse .exe & .dll files


On Thu, Jun 05, 2003 at 03:48:29PM -0400, Pierre A. Humblet wrote:
> Christopher Faylor wrote:
> 
> > There has been very little actual data provided here 
> 
> Here is some data, using the program from 
> http://cygwin.com/ml/cygwin/2003-06/msg00321.html
> 
> I remade the executables in an old version of inetutils.
> The numbers below show that only the larger ones are sparse
> (so the relative overhead is small) and that stripping them
> removes sparseness. 
> 
> Pierre

Hi Pierre,

I did the same here and I've added the block count which shows how much
blocks has been wasted by being a sparse file:

 188 -rwxr-xr-x    1 corinna  root       191765 Jun  6 09:55 ./ftp/ftp.exe
Sparse bit 200
 497 -rwxr-xr-x    1 corinna  root       508186 Jun  6 09:55 ./ftpd/ftpd.exe
Sparse bit 200
 748 -rwxr-xr-x    1 corinna  root       765264 Jun  6 09:55 ./inetd/inetd.exe
Sparse bit 200
  75 -rwxr-xr-x    1 corinna  root        76703 Jun  6 09:55 ./rcp/rcp.exe
Sparse bit 0
 397 -rwxr-xr-x    1 corinna  root       406162 Jun  6 09:55 ./rexecd/rexecd.exe
Sparse bit 200
  71 -rwxr-xr-x    1 corinna  root        71934 Jun  6 09:55 ./rlogin/rlogin.exe
Sparse bit 0
  93 -rwxr-xr-x    1 corinna  root        94908 Jun  6 09:55 ./rlogind/rlogind.exe
Sparse bit 200
  63 -rwxr-xr-x    1 corinna  root        63796 Jun  6 09:55 ./rsh/rsh.exe
Sparse bit 0
  72 -rwxr-xr-x    1 corinna  root        73679 Jun  6 09:55 ./rshd/rshd.exe
Sparse bit 0
  43 -rwxr-xr-x    1 corinna  root        43306 Jun  6 09:55 ./syslog/syslog.exe
Sparse bit 0
 203 -rwxr-xr-x    1 corinna  root       207452 Jun  6 09:55 ./talk/talk.exe
Sparse bit 200
  82 -rwxr-xr-x    1 corinna  root        83924 Jun  6 09:55 ./talkd/talkd.exe
Sparse bit 200
 250 -rwxr-xr-x    1 corinna  root       255853 Jun  6 09:55 ./telnet/telnet.exe
Sparse bit 200
 180 -rwxr-xr-x    1 corinna  root       183916 Jun  6 09:55 ./telnetd/telnetd.exe
Sparse bit 200
  78 -rwxr-xr-x    1 corinna  root        78942 Jun  6 09:55 ./tftp/tftp.exe
Sparse bit 0
  68 -rwxr-xr-x    1 corinna  root        69378 Jun  6 09:55 ./tftpd/tftpd.exe
Sparse bit 0
  64 -rwxr-xr-x    1 corinna  root        64758 Jun  6 09:55 ./uucpd/uucpd.exe
Sparse bit 0

So there's no waste of blocks at all.

To make people more happy I've raised the lseek hole which triggers
making a file sparse to 128K.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]