[Bug 219124] /var/db/services.db is extremely large for what it does

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 7 17:09:12 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219124

--- Comment #1 from Conrad Meyer <cem at freebsd.org> ---
87% of the file is zero bytes.

>>> f = file("/var/db/services.db").read()
>>> zb = 0
>>> for b in f:
...   if b == '\x00': zb += 1
...
>>> print zb
1836320

$ ls -l /var/db/services.db
-rw-r--r--  1 root  wheel  2097920 Jan 16 15:16 /var/db/services.db

1836320 / 2097920 = 0.87530506

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list