notbugIf you buy from Amazon USA, please support us by using this link.
How big is it

It was a few days ago that I was thinking about search engines crawling through this website. I began to wonder just how many web pages there are here. To calculate this total, it's not just a simple matter of counting files on disk. Most of the web pages are created from entries in the database. One recent evening, I started to design a formula to find out how many web pages there are. Roughly. This will not be 100% accurate, but it will be close.

Pages on disk

First, let's count the number of pages on disk:

$ ls *.php | wc -l
64
Number of categories

There is a page for each category:

# select count(*) from categories;
 count
-------
   119
(1 row)
Number of ports

There are ports, and there are deleted ports. I'll show both:

# select count(*) from ports_all where status = 'A';
 count
-------
 35053

# select count(*) from ports_all where status = 'D';
 count
-------
 14637
(1 row)
Number of files in the ports tree

There is a page for each file in the ports tree:

[dan@ngaio:/usr/ports] $ find . | wc -l
177497
[dan@ngaio:/usr/ports] $
Count last performed at Mon, 20 Aug 2018 03:01:15 GMT
Number of commits

There is a page for each commit:

# select count(*) from commit_log;
 count
-------
421848
(1 row)
Number of ports for each commit

For each commit, you can view the files modified by that commit for a particular port:

# select count(*) from commit_log_ports;
 count
-------
923055
(1 row)
How many days?

For each day, there is a page showing the commits for that day. How many days do we have?

# select count(distinct commit_date) from commit_log;
 count
-------
  6650
(1 row)
How many users?

Each user has a page:

# select count(*) from users;
 count
-------
 12617
(1 row)
How many watch lists?

For each watch list, there is a page:

# select count(*) from watch_list;
 count
-------
 13051
(1 row)
Estimated total

That gives a grand total of 1,604,591 pages. On my last count, that's about 0.019913% of the web pages on Google1

Notes

  • These statistics are updated daily.
  • 1The number of Google pages used in this calculation is 8,058,044,651.
How much diskspace?

The total space used by the FreshPorts database is:

# select pg_database_size('freshports.org');
 pg_database_size
------------------
39,299,684,888
(1 row)

That's bytes...

This value might be easier to parse: 37 GB

Login
User Login
Create account

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD

This site
What is FreshPorts?
About the authors
Issues
FAQ
How big is it?
The latest upgrade!
Privacy
Forums
Blog
Contact

Search
Enter Keywords:
 
more...

Latest Vulnerabilities
botan2Aug 17
jenkinsAug 15
jenkins-ltsAug 15
linux-flashplayerAug 14
samba46Aug 14
samba47Aug 14
samba48Aug 14
wpa_supplicantAug 14
chickenAug 12
giteaAug 12
GraphicsMagickAug 11
mbedtlsAug 10
postgresql10-serverAug 10
postgresql93-serverAug 10
postgresql94-serverAug 10

15 vulnerabilities affecting 134 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities

Last updated:
2018-08-17 23:13:03


Ports
Home
Categories
Deleted ports
Sanity Test Failures
Newsfeeds

Statistics
Graphs
NEW Graphs (Javascript)
Traffic

Calculated hourly:
Port count 35061
Broken 75
Deprecated 94
Ignore 317
Forbidden 3
Restricted 162
No CDROM 74
Vulnerable 32
Expired 6
Set to expire 79
Interactive 0
new 24 hours 11
new 48 hours19
new 7 days72
new fortnight115
new month2614

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2018 Dan Langille. All rights reserved.