Article View: news.software.nntp
Article #46915Re: ReiserFS and news
From: Rolf Krahl
Date: Wed, 14 Jun 2000 00:00
Date: Wed, 14 Jun 2000 00:00
50 lines
3134 bytes
3134 bytes
In article <ylem622gid.fsf@windlord.stanford.edu>,
Russ Allbery <rra@stanford.edu> writes:
> Florian Weimer <fw@deneb.cygnus.argh.org> writes:
>
> This is unfortunately difficult to fix, and is now irrelevant for INN 2.3
> because active file queries of this sort are now dealt with through the
> overview database instead (nnrpd no longer memory maps the active file).
> If someone wants to fix it for INN 2.2 in the near future, I can accept
> the patch, but in the meantime I think I'd just recommend to ReiserFS
> users to use the INN 2.3 beta instead.
I used a simple and ugly workaround by just disabling mmap'ing the
active file and forcing nnrpd to read it with traditional file IO
(calling ReadInFile):
| if (fd >= 0) {
| if (fstat(fd, pst) == 0) {
| #if 1
| /* -------------------- FIX --------------------
| * Problem with active file on reiserfs.
| * -------------------- FIX -------------------- */
| close(fd);
| return(ReadInFile(fileName, pst));
| #else
| ptr = (char *)mmap((caddr_t)NULL, pst->st_size + 1,
| PROT_READ, MAP_SHARED, fd, 0);
| if (ptr != (char *)-1) {
| XRSize = pst->st_size + 1;
| close(fd);
| /* syslog(L_ERROR, "%s mapped %d",
| ClientHost, pst->st_size + 1);*/
| } else {
| close(fd);
| return(ReadInFile(fileName, pst));
| }
| #endif
| } else {
| close(fd);
| }
| }
I didn't test this on a server with lots of readers and high load, so
i can't tell you about the impact on the performance of this. Of
corse this would need to be integrated in the configuration scheme to
be suitable as a patch.
--
Rolf Krahl <rolf.krahl@gmx.net>
Technical Details
Message-ID:
<8i7klf$8jn$1@rotkraut.de>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!not-for-mailReferences:
<393F52CC.9FA1B9D6@int.tele.dk> <1rn1kwxq76.fsf@haey.ifi.uio.no> <8homi7$2vpt$1@mired.zark.thedonkeys.org> <yl8zwf7rr1.fsf@windlord.stanford.edu> <87u2f2oddl.fsf@deneb.cygnus.argh.org> <873dmm8uor.fsf@erlenstar.demon.co.uk> <87wvjw8ytg.fsf@deneb.cygnus.argh.org> <878zwc4kmy.fsf@erlenstar.demon.co.uk> <87em64aric.fsf@deneb.cygnus.argh.org> <ylem622gid.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <8i7klf$8jn$1@rotkraut.de> Subject: Re: ReiserFS and news Date: Wed, 14 Jun 2000 00:00:00 +0000 From: rolf.krahl@gmx.net (Rolf Krahl) References: <393F52CC.9FA1B9D6@int.tele.dk> <1rn1kwxq76.fsf@haey.ifi.uio.no> <8homi7$2vpt$1@mired.zark.thedonkeys.org> <yl8zwf7rr1.fsf@windlord.stanford.edu> <87u2f2oddl.fsf@deneb.cygnus.argh.org> <873dmm8uor.fsf@erlenstar.demon.co.uk> <87wvjw8ytg.fsf@deneb.cygnus.argh.org> <878zwc4kmy.fsf@erlenstar.demon.co.uk> <87em64aric.fsf@deneb.cygnus.argh.org> <ylem622gid.fsf@windlord.stanford.edu> 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!not-for-mail X-Deja-AN: 634355255 Sender: rolf@informatik.uni-bremen.de Content-Type: text/plain; charset=us-ascii X-PGP: 1024/41F08261 08 5B 00 CA 32 29 63 12 40 2C 8B 42 63 A1 99 AA 2048/A2A7AA41 51 C7 79 5A 41 A5 DE 82 17 A8 D8 10 B1 09 E4 0D X-Trace: fu-berlin.de 960976495 4424656 134.102.210.25 (16 [4231]) Organization: Private Linux site in Bremen, Germany X-Fan: Armin Schuricke Mime-Version: 1.0 Newsgroups: news.software.nntp