Root partition growing uncontrolably during a transaction
Zopists, Does anyone know the best way to find which file is growing to insane proportions during an Catalog Update? It's not in /Zope's partition. Zope has it's own parition, as does /Zope/var. I'm trying to find it, but to now avail. The "/" root partition is growing and is now at 70% in a disk free results. It started at 30%. It's a 1GB partition. The only partition growing is "/" Now it's at 71%. Any ideas. RH 5.2 Linux 2.0.36 kernel Python 1.5.2 Zope beta5 I have a ~100 MB Data.fs file, and about 22,000 objects after a recent pack. All my best, Jason Spisak
On Wed, 1 Sep 1999, Jason Spisak wrote:
Zopists,
Does anyone know the best way to find which file is growing to insane proportions during an Catalog Update? It's not in /Zope's partition. Zope has it's own parition, as does /Zope/var. I'm trying to find it, but to now avail. The "/" root partition is growing and is now at 70% in a disk free results. It started at 30%. It's a 1GB partition. The only partition growing is "/" Now it's at 71%. Any ideas. RH 5.2 Linux 2.0.36 kernel Python 1.5.2 Zope beta5
I have a ~100 MB Data.fs file, and about 22,000 objects after a recent pack.
All my best,
Um, here's a shot in the dark, Is your /tmp directory part of your root partition? --------------------------------------------------- - Scott Robertson Phone: 714.972.2299 - - CodeIt Computing Fax: 714.972.2399 - - http://codeit.com - ---------------------------------------------------
Scott, My /tmp had only one file and that was for KDE in it. ls -a revealed nothing else in there. I looked in all of the tmp directories, because I thought the same thing. Jason Scott Robertson wrote:
On Wed, 1 Sep 1999, Jason Spisak wrote:
Zopists,
Does anyone know the best way to find which file is growing to insane proportions during an Catalog Update? It's not in /Zope's partition. Zope has it's own parition, as does /Zope/var. I'm trying to find it, but to now avail. The "/" root partition is growing and is now at 70% in a disk free results. It started at 30%. It's a 1GB partition. The only partition growing is "/" Now it's at 71%. Any ideas. RH 5.2 Linux 2.0.36 kernel Python 1.5.2 Zope beta5
I have a ~100 MB Data.fs file, and about 22,000 objects after a recent pack.
All my best,
Um, here's a shot in the dark, Is your /tmp directory part of your root partition?
--------------------------------------------------- - Scott Robertson Phone: 714.972.2299 - - CodeIt Computing Fax: 714.972.2399 - - http://codeit.com - ---------------------------------------------------
On Wed, 1 Sep 1999, Jason Spisak wrote:
Scott,
My /tmp had only one file and that was for KDE in it. ls -a revealed nothing else in there. I looked in all of the tmp directories, because I thought the same thing.
Ok round #2, I remember Jim babeling about temp files one time when I visited DC. He had mentioned something about creating a temp file and unlinking the file descriptor or something like that. The point was that this was the "proper" way to handle a temp file because if your program crashed the file storage would be reclaimed by the OS. It sounded really cool. So maybe this is what is happening here. Sorry if I'm being vauge learning from Jim is somewhat akin to drinking from a fire hose. --------------------------------------------------- - Scott Robertson Phone: 714.972.2299 - - CodeIt Computing Fax: 714.972.2399 - - http://codeit.com - ---------------------------------------------------
Scott Robertson wrote:
On Wed, 1 Sep 1999, Jason Spisak wrote:
Scott,
My /tmp had only one file and that was for KDE in it. ls -a revealed nothing else in there. I looked in all of the tmp directories, because I thought the same thing.
Ok round #2, I remember Jim babeling about temp files one time when I visited DC. He had mentioned something about creating a temp file and unlinking the file descriptor or something like that. The point was that this was the "proper" way to handle a temp file because if your program crashed the file storage would be reclaimed by the OS. It sounded really cool. So maybe this is what is happening here.
Unlinking temporary files after creation is a standard Unix trick to assure temporary file garbage collection. Zope uses temprary files for sub-transactions. So perhaps this is what is accounting for the disk usage. Zope uses the TemporaryFile class in the standard Python tmpfile module. You can look at that so see how this works. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
participants (3)
-
Jason Spisak -
Jim Fulton -
Scott Robertson