Large history file and fopen().
jhansen at xmission.com
Mon Jan 29 18:35:08 UTC 2001
On Sun, Jan 21, 2001 at 11:53:51PM -0800, Russ Allbery wrote:
> Jason Hansen <jhansen at xmission.com> writes:
> > I've run into a problem when the history file grows larger than 2GB.
> > The setup here is inn 2.3.0, with large files on a linux box.
> > Dual PIII 800's, 1GB ram.
> > Linux kernel 2.4.0.
> > glibc 2.1.3-13, recompiled for LFS support.
> > 3 CNFS spools: 36GB, 231GB, and 249GB.
> > Everything was running well, until the last expire. The large cycbuffs
> > have wrapped a total of 7 times. But now the history file has hit the
> > non-LFS limit of 2GB, and innd failed with the error:
> > Jan 14 03:03:02 terabinaries innd: SERVER cant fopen
> > /var/spool/newslib/db/history File too large
> > terabinaries:db# ls -l history
> > -rw-r----- 1 news news 2163827563 Jan 14 03:03 history
> > Is the fix as simple as opening the history db with fopen64() instead of
> > plain old fopen() in innd.c? Or does this hint to a problem in local
> > configuration of the expiration routine?
> > I tried dropping the /remember/ limit in expire.ctl to 7 from 10, and
> > re-running news.daily, but that didn't seem to do the trick.
> It should, and that's probably the best way of solving this problem. I
> bet the history file is, at this point, too large for expire to handle as
> well. You could manually remove lines without tokens on them from the
> history file to get it small enough to let expire take a whack at it.
> You can compile INN with large file support by using --with-largefiles at
> configure time, but note that this changes some on-disk data structures if
> you're using tradindexed (at least; some other parts of INN may have the
> same problem), so you may not be able to use your current spool with the
> new compile after making that change.
The odd thing, is that the "rest" of inn was compiled with largefiles. Inn
wouldn't even start without it. Especially since the buffers themselves
are all _well_ beyond the 2GB limit. And inn would refuse to start without
Things have been running smoothly so far. After rebuilding the overview and
history file, expire has been keeping the history under 2GB.
Jason Hansen jhansen at xmission.com
"The necktie is a serpentlike symbol of evil worn by humales."
---from an Xist space transmission intercepted by the U.S. Navy, 1960.
More information about the inn-workers