🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60220

Re: cnfs file size > 2Gb problem

#60220
From: Miquel van Smoorenburg
Date: Wed, 04 Sep 2002 10:57
30 lines
2527 bytes
In article <al4h1g$gkl$1@news.ust.hk>, bill <ccbill_at_@ust.hk> wrote:
>From the documentation (README), linux have a limitation of cycbuffs < 2GB.
>However, RedHat 7.3's kernel 2.4 should overcome file size problem. I read
>from some site that it may be a problem of the library libc. Any idea?? Is
>the 2GB cycbuff size limitation still valid for RedHat 7.3? Any help would
>be appreciate.

With glibc 2.2 and up, and a 2.4 kernel, LFS support works with INN.
However the last time I tried it on our transit server, using a
2.4.16 or so kernel, the kernel fell flat on its face with VM problems.

The history file indexes became quite a bit bigger because of the
64 bits file offsets, and somehow that triggered VM inbalance.
The kernel had 1 GB memory, 500 MB free and yet it went > 300 MB
into swap as well. It trashed itself to death.

It may well be that later kernels solve this problems (esp. the
latest 2.4.20-pre kernels which have some VM fixes applied), or that
a RedHat kernel doesn't exhibit the problem at all since custom
redhat kernels have a different VM (the latest use rmap, I think).

I'm now toying with the idea of hacking storage/cnfs/cnfs.c so
that I can compile it with -D_LARGEFILE_SOURCE but NOT with
-D_FILE_OFFSET_BITS=64, i.e. adding support for mmap64(),
pread64(), stat64() and so on so that INN can be compiled
without LFS yet cnfs.c knows about files > 2GB. Seems to be
the best solution for now.

Mike.
Technical Details
Message-ID: <al4oua$1e3$2@ncc1701.cistron.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!newsgate.cistron.nl!news2.cistron.nl!news.cistron.nl!not-for-mail
References: <al4h1g$gkl$1@news.ust.hk>

Show Full Headers
Complete Article Headers
Message-ID: <al4oua$1e3$2@ncc1701.cistron.net>
Subject: Re: cnfs file size > 2Gb problem
Date: Wed, 04 Sep 2002 10:57:14 +0000
From: "Miquel van Smoorenburg" <miquels.at.cistron.nl.spamtrap@netscum.nl>
References: <al4h1g$gkl$1@news.ust.hk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!newsgate.cistron.nl!news2.cistron.nl!news.cistron.nl!not-for-mail
Newsgroups: news.software.nntp
Organization: Cistron
Lines: 29
NNTP-Posting-Host: traveler.cistron-office.nl
Content-Type: text/plain; charset=iso-8859-15
X-Trace: ncc1701.cistron.net 1031137034 1475 62.216.29.67 (4 Sep 2002 10:57:14 GMT)
X-Complaints-To: abuse@cistron.nl
NNTP-Posting-Date: Wed, 4 Sep 2002 10:57:14 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: miquels@cistron-office.nl (Miquel van Smoorenburg)