Third "RFC" on on pkg-data ideas for ports

Garance A Drosihn drosih at rpi.edu
Sun May 23 21:24:06 PDT 2004


At 12:07 AM -0400 5/24/04, Garance A Drosihn wrote:
>
>So we took some time to write a script which goes through a
>ports collection and gathers some statistics what files
>exist (on a per-port basis), and how much room they take up.


Here are the stats for the present ports collection.
This is broken up into "standard files" and "standard
directories".  In the "standard directories" section,
you'll notice a fake directory called "patches".  What
we did there is take all filenames which matched:
      files/*patch*
and pretended that we found them in a directory called
"patches" instead of the directory called "files".

You'll also notice a few non-standard directories.   It
turned out there were only a few of those, and it seemed
like it would be interesting to see the names of those
few non-standard directories, so we added them to the list.

This only counts files which are found in a *port* directory.
It ignores files in ports/Mk, ports/Tools, ports/distfiles, etc.

"Bytes used by blocks" is what you get by multiplying st_blocks
by 512, while "bytes used in files" are the values from st_size.
In the directories-section, "Times found" is the number of times
a directory of that name was found.  "Files held" counts up all
the files found inside those directories, and the remaining
columns are for both the directories and the files inside them.

Hopefully the rest of this is pretty self-explanatory.  None
of this is as complete as I'd like, but I wanted to write at
least some of this up this weekend.  Let me know if there are
other stats which might be interesting.
   - - - -

Statistics for /Users/limd/pd-orig/ports, which has 10944 ports.

Times   Bytes used   Bytes used  Bytes/  %Byt/  Maximum          
Found    by blocks     in files    File  Block  FileSiz  File name
-----  -----------   ----------  ------  -----  -------  ---------
10944   26,048,512   13,619,279  1244.5  52.3%    35143  Makefile
     7       22,528       11,731  1675.9  52.1%     5120  Makefile.inc
10176   21,012,480    1,415,747   139.1   6.7%    30539  distinfo
   131      276,480       94,386   720.5  34.1%     3196  pkg-deinstall
10520   21,563,392    4,266,369   405.5  19.8%     4092  pkg-descr
   290      772,096      410,223  1414.6  53.1%    25764  pkg-install
  1105    2,416,640      665,024   601.8  27.5%    49293  pkg-message
  8677   64,276,480   50,863,068  5861.8  79.1%   665358  pkg-plist
    39      104,448       50,355  1291.2  48.2%    11363  pkg-req
   519    4,077,568    3,286,103  6331.6  80.6%   336936  "Other"
-----  -----------   ----------  ------  -----  -------  -------
42408  140,570,624   74,682,285  1761.0  53.1%           File-Totals

Times  Files   Bytes used   Bytes used  Bytes/  %Byt/  Maximum
Found   held    by blocks     in files    File  Block  FileSiz  Dir. name
-----  -----  -----------   ----------  ------  -----  -------  ----------
  5538   7755   21,858,304   10,297,331  1327.8  47.1%   350958  files
     1      4        8,192        4,647  1161.8  56.7%     1991  files.5
     1      5       10,240        3,833   766.6  37.4%     1343  files.client
     0  17200   46,163,968   21,893,791  1272.9  47.4%   298708  patches
     2     18       45,056       16,760   931.1  37.2%     2746  patches.4
     2     24       69,632       35,810  1492.1  51.4%     3728  patches.5
   212    466    1,198,080      529,118  1135.4  44.2%    22270  scripts
    13     46      356,352      289,170  6286.3  81.1%    66100  src
     0      0            0            0     0.0   0.0%        0  "Other"
-----  -----  -----------   ----------  ------  -----  -------  -------
  5769  25518   69,709,824   33,070,460  1296.0  47.4%           Dir-Totals


-- 
Garance Alistair Drosehn            =   gad at gilead.netel.rpi.edu
Senior Systems Programmer           or  gad at freebsd.org
Rensselaer Polytechnic Institute    or  drosih at rpi.edu


More information about the freebsd-ports mailing list