Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 May 2017 17:09:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 219124] /var/db/services.db is extremely large for what it does
Message-ID:  <bug-219124-8-rDCOPMDpZj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-219124-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-219124-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219124

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

>>> f =3D file("/var/db/services.db").read()
>>> zb =3D 0
>>> for b in f:
...   if b =3D=3D '\x00': zb +=3D 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 =3D 0.87530506

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219124-8-rDCOPMDpZj>