Re: [ZODB-Dev] Blobstorage shrinks only after the second pack operation - bug or feature?

2012-12-30 Thread Jim Fulton
On Sun, Dec 30, 2012 at 3:50 AM, Andreas Jung li...@zopyx.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 I noticed a strange behavior with packing a storage having lots of data
 in a blob storage (Plone 4.2, Zope 2.13).

 I had a large Plone site (5 GB of data in blobstorage) in a dedicated
 storage. I removed the Plone Site object and packed the storage through
 the Zope 2 database management screen. The size of the Data.fs went down
 however the blobstorage size remained the same. Packing a second removed
 the obsolete data from the blob storage.

 So why do I have to pack two times in order to get a minimized blob
 storage?

Without knowing more details, it's impossible to know.

What did you have pack-keep-old set to?

 Bug or feature?

I doubt either.

Jim

-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton
Jerky is better than bacon! http://zo.pe/Kqm
___
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Blobstorage shrinks only after the second pack operation - bug or feature?

2012-12-30 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



Jim Fulton wrote:
 On Sun, Dec 30, 2012 at 3:50 AM, Andreas Jung li...@zopyx.com
 wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
 I noticed a strange behavior with packing a storage having lots of
 data in a blob storage (Plone 4.2, Zope 2.13).
 
 I had a large Plone site (5 GB of data in blobstorage) in a
 dedicated storage. I removed the Plone Site object and packed the
 storage through the Zope 2 database management screen. The size of
 the Data.fs went down however the blobstorage size remained the
 same. Packing a second removed the obsolete data from the blob
 storage.
 
 So why do I have to pack two times in order to get a minimized
 blob storage?
 
 Without knowing more details, it's impossible to know.
 
 What did you have pack-keep-old set to?

I used the default of the Zope 2 UI which is 0 (days).

Andreas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJQ4HhDAAoJEADcfz7u4AZjLKgLwNQWll1E1ALNol0RAfdsBQDt
XaCa3WVfuWwoRa40liWIyz1+1FJid//5hy4KgOZzICX7FsJEHFXuIK/nKNmvUloE
NrKvAUFmIujPazvR2xNCGtqawfWaLtWaJ2jDlVqyYUNLW1S2BY/daSt0VdF+kr05
QRbOePBPcgX+WaxZ7DcQ+zevmL02Op8W0eZpuJ/QfdM3HuDQwWKNtgpKb53cyMot
lpyWLbxsx2yhNNiUBiZ0EqgnJFZwJjY1vb3bapF7G9P3O+noIdosmAdGyKlcRPp+
OksaApUGHMY+N1dYrbxJctYFC2N8+wstPa0twFQM5j0fqBpMfJKhGxNPua7G4du4
WFDUH6gEGlIkgJm++SwPvU8nSpME8+o8r9vKirDq2WOsGVRBkasFM5L8BA8EzjG/
PMLWF0omeBOLYX03aLhmwbwVsPMkxO4kU2IZybT/+6HPMjXTEwx4iEOumR1KPLoB
HcVOG/0dOGLOQdU/SWh2Zrqxb9XjD2k=
=XmFy
-END PGP SIGNATURE-
attachment: lists.vcf___
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Blobstorage shrinks only after the second pack operation - bug or feature?

2012-12-30 Thread Jim Fulton
On Sun, Dec 30, 2012 at 12:22 PM, Andreas Jung li...@zopyx.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1



 Jim Fulton wrote:
 On Sun, Dec 30, 2012 at 3:50 AM, Andreas Jung li...@zopyx.com
 wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

 I noticed a strange behavior with packing a storage having lots of
 data in a blob storage (Plone 4.2, Zope 2.13).

 I had a large Plone site (5 GB of data in blobstorage) in a
 dedicated storage. I removed the Plone Site object and packed the
 storage through the Zope 2 database management screen. The size of
 the Data.fs went down however the blobstorage size remained the
 same. Packing a second removed the obsolete data from the blob
 storage.

 So why do I have to pack two times in order to get a minimized
 blob storage?

 Without knowing more details, it's impossible to know.

 What did you have pack-keep-old set to?

 I used the default of the Zope 2 UI which is 0 (days).

You didn't answer my question.  I didn't ask how many days you packed to.
I asked if you set pack-keep-old. I'm guessing from your response that you
didn't.

If you don't set pack-keep-old to false, then old blobs are kept around, just
like the file-storage file, except that, rather than making copies, hard links
are created.

The second time you packed, the old links would be removed, freeing up
the space taken by the old blobs.

Jim

-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton
Jerky is better than bacon! http://zo.pe/Kqm
___
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Blobstorage shrinks only after the second pack operation - bug or feature?

2012-12-30 Thread Andreas Jung


Jim Fulton wrote:
 On Sun, Dec 30, 2012 at 12:22 PM, Andreas Jung li...@zopyx.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1



 Jim Fulton wrote:
 On Sun, Dec 30, 2012 at 3:50 AM, Andreas Jung li...@zopyx.com
 wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

 I noticed a strange behavior with packing a storage having lots of
 data in a blob storage (Plone 4.2, Zope 2.13).

 I had a large Plone site (5 GB of data in blobstorage) in a
 dedicated storage. I removed the Plone Site object and packed the
 storage through the Zope 2 database management screen. The size of
 the Data.fs went down however the blobstorage size remained the
 same. Packing a second removed the obsolete data from the blob
 storage.

 So why do I have to pack two times in order to get a minimized
 blob storage?
 Without knowing more details, it's impossible to know.

 What did you have pack-keep-old set to?
 I used the default of the Zope 2 UI which is 0 (days).

 You didn't answer my question.  I didn't ask how many days you packed to.
 I asked if you set pack-keep-old. I'm guessing from your response that you
 didn't.

There is no such value exposed exposed in the Zope 2 database management 
control panel. It only offers the same packed-to value as it did ten years
ago. 

Andreas
attachment: lists.vcf___
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev