Thread View: news.software.nntp
9 messages
9 total messages
Started by Morten Lund
Thu, 08 Jun 2000 00:00
ReiserFS and news
Author: Morten Lund
Date: Thu, 08 Jun 2000 00:00
Date: Thu, 08 Jun 2000 00:00
17 lines
1163 bytes
1163 bytes
Anyone who has experimented with ReiserFS and news? According to ReiserFS's homepage: http://devlinux.com/projects/reiserfs/ ReiserFS should have a lot of performance improvements compared to traditional filesystems (like ufs and ext2). If using CNFS with INN, will I feel these perfomance-improvements (if they exists at all). Or would I be better off, using BSD for news? Regards Morten Lund
Re: ReiserFS and news
Author: Kjetil Torgrim Homme
Date: Thu, 08 Jun 2000 00:00
Date: Thu, 08 Jun 2000 00:00
19 lines
1322 bytes
1322 bytes
[Morten Lund] > Anyone who has experimented with ReiserFS and news? According to > ReiserFS's homepage: http://devlinux.com/projects/reiserfs/ > ReiserFS should have a lot of performance improvements compared to > traditional filesystems (like ufs and ext2). > > If using CNFS with INN, will I feel these perfomance-improvements > (if they exists at all). For CNFS, the file system doesn't matter. I'm sure FAT would work just fine. If you want to tweak out the last percent of performance, you should look at rawfs by Miquel Smoorenburg. Kjetil T.
Re: ReiserFS and news
Author: Russ Allbery
Date: Thu, 08 Jun 2000 00:00
Date: Thu, 08 Jun 2000 00:00
21 lines
1731 bytes
1731 bytes
Geoff Wilson <gmwils@zark.thedonkeys.org> writes: > For servers aimed more at feeding, yes. But for a box using CNFS that > aimed at readers, the IO bottleneck isn't nessasarilary the CNFS > buffers. It may help to have the overview siting on a better > filesystem. But you would have to factor in the risk that it is still > being developed, vs ext2fs which is reasonalby well tested by now. There's some sort of odd problem with ReiserFS and INN when the active file is on a ReiserFS file system (and possibly with overview that's mmap'd; I'm not sure). Something about how INN uses mmap and how ReiserFS supports it doesn't entirely get along, and I've never been able to track down the details (not having access to ReiserFS myself). The ReiserFS folks claim that it's a bug in INN, which is quite possible, but they've never given us a real bug report so I don't know where to look to try to fix it. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: ReiserFS and news
Author: Geoff Wilson
Date: Thu, 08 Jun 2000 00:00
Date: Thu, 08 Jun 2000 00:00
30 lines
2127 bytes
2127 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote on the 08 Jun 2000 15:22:37 +0200: > [Morten Lund] >> Anyone who has experimented with ReiserFS and news? According to >> ReiserFS's homepage: http://devlinux.com/projects/reiserfs/ >> ReiserFS should have a lot of performance improvements compared to >> traditional filesystems (like ufs and ext2). >> >> If using CNFS with INN, will I feel these perfomance-improvements >> (if they exists at all). > For CNFS, the file system doesn't matter. I'm sure FAT would work > just fine. If you want to tweak out the last percent of performance, > you should look at rawfs by Miquel Smoorenburg. For servers aimed more at feeding, yes. But for a box using CNFS that aimed at readers, the IO bottleneck isn't nessasarilary the CNFS buffers. It may help to have the overview siting on a better filesystem. But you would have to factor in the risk that it is still being developed, vs ext2fs which is reasonalby well tested by now. Geoff -- a paranoid is just someone with all of the facts at his disposal - william seaward burroughs 1914-1997 Geoff M. Wilson <gmwils@zark.thedonkeys.org> www.zark.thedonkeys.org/~gmwils
Re: ReiserFS and news
Author: Andrew Gierth
Date: Fri, 09 Jun 2000 00:00
Date: Fri, 09 Jun 2000 00:00
43 lines
2827 bytes
2827 bytes
>>>>> "Florian" == Florian Weimer <fw@deneb.cygnus.argh.org> writes:
Florian> When the size of the active file is an integral
Florian> multiple of the page size of the system, accessing the byte
Florian> beyond the end of the actual file might result in a SIGSEGV
SIGBUS, actually, according to the SUSv2.
But this isn't a Linux-specific issue... any correctly implemented
mmap will behave this way.
Florian> The INN approach mentioned above is perhaps problematic.
Florian> Linux mmap() used to behave as required by INN, and I once
Florian> believed that other implementations do as well, but Alan Cox
Florian> says it's a linuxism that you can mmap() more bytes than
Florian> there are in a file to get additional zero bytes.
The SUSv2 sez:
The off argument is constrained to be aligned and sized according
to the value returned by sysconf() when passed _SC_PAGESIZE or
_SC_PAGE_SIZE. When MAP_FIXED is specified, the argument addr must
also meet these constraints. The implementation performs mapping
operations over whole pages. Thus, while the argument len need not
meet a size or alignment constraint, the implementation will
include, in any mapping operation, any partial page specified by
the range [pa, pa + len).
The system always zero-fills any partial page at the end of an
object. Further, the system never writes out any modified portions
of the last page of an object that are beyond its end. References
within the address range starting at pa and continuing for len
bytes to whole pages following the end of an object result in
delivery of a SIGBUS signal.
An implementation may deliver SIGBUS signals when a reference
would cause an error in the mapped object, such as out-of-space
condition.
--
Andrew.
Re: ReiserFS and news
Author: Florian Weimer
Date: Fri, 09 Jun 2000 00:00
Date: Fri, 09 Jun 2000 00:00
48 lines
3268 bytes
3268 bytes
Russ Allbery <rra@stanford.edu> writes:
> There's some sort of odd problem with ReiserFS and INN when the active
> file is on a ReiserFS file system (and possibly with overview that's
> mmap'd; I'm not sure). Something about how INN uses mmap and how ReiserFS
> supports it doesn't entirely get along, and I've never been able to track
> down the details (not having access to ReiserFS myself).
When mmap()ing the active file, INN assumes that a NUL character
follows the actual file data (by mapping one more byte than the file
contains, see nnrpd/group.c in INN 2.2.2). When the size of the
active file is an integral multiple of the page size of the system,
accessing the byte beyond the end of the actual file might result in
a SIGSEGV (at least POSIX permits this behavior, and it's enforced by
very recent Linux kernels, I think). Earlier comments from me on this
subject were probably wrong.
> The ReiserFS folks claim that it's a bug in INN, which is quite
> possible,
The INN approach mentioned above is perhaps problematic. Linux mmap()
used to behave as required by INN, and I once believed that other
implementations do as well, but Alan Cox says it's a linuxism that you
can mmap() more bytes than there are in a file to get additional zero
bytes.
> but they've never given us a real bug report so I don't know where
> to look to try to fix it.
ReiserFS sometimes writes junk to the last block on disk after the end
of the file. It looks like this:
| |
FILE DATA FILE DATA FILE DATA | SOME RANDOM GARBAGE |
| |
^ ^
| |
End of file -/ End of disk block -/
If you read data using read(), the read operation stops at the end
of the file. But if you use mmap(), integral blocks are mapped to
memory, and the garbage is suddenly visible. Actually, mmap() is
correct here (it's implemented this way on most of the file systems, I
think), but the garbage should never have been written to disk.
Re: ReiserFS and news
Author: Russ Allbery
Date: Tue, 13 Jun 2000 00:00
Date: Tue, 13 Jun 2000 00:00
29 lines
2030 bytes
2030 bytes
Florian Weimer <fw@deneb.cygnus.argh.org> writes:
> I finally agree that there's indeed a bug in INN. Maybe you could
> submit a bug report? Your explanation is very clear. In INN 2.2.2, the
> following code in nnrpd/group.c is problematic:
> | char *
> | XReadInFile(const char *fileName, struct stat *pst)
> | {
> [...]
> | fd = open(fileName, O_RDONLY);
> | if (fd >= 0) {
> | if (fstat(fd, pst) == 0) {
> | ptr = (char *)mmap((caddr_t)NULL, pst->st_size + 1,
> | PROT_READ, MAP_SHARED, fd, 0);
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.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: ReiserFS and news
Author: 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>
Re: ReiserFS and news
Author: bill davidsen
Date: Mon, 19 Jun 2000 00:00
Date: Mon, 19 Jun 2000 00:00
21 lines
1825 bytes
1825 bytes
In article <87em64aric.fsf@deneb.cygnus.argh.org>, Florian Weimer <fw-usenet@deneb.cygnus.argh.org> wrote: | Yes, I agree. Unfortunately, the ReiserFS team doesn't care about | this bug. They even argued that the extra zeroing would impact | performance and they won't make it the default. I would be happier if they didn't support mmap at all rather than deliberately do it wrong. I wonder how many other corners they cut trying to be the fastest filesystem around? I'd rather let someone else find out, thanks. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc "Doing interesting things with little computers since 1979"(tm) It doesn't bother me that people make flavored yogurt with fruits. It doesn't bother me that someone makes carmel broccoli yogurt. It doesn't even bother me that people buy it to rub on each other's naked bodies. What DOES bother me is that people buy it to EAT!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads