Thread View: news.software.nntp
5 messages
5 total messages
Started by Felix Kugler
Wed, 05 Aug 1998 00:00
INN-2.1/Solaris 2.6 and large cycbuffs
Author: Felix Kugler
Date: Wed, 05 Aug 1998 00:00
Date: Wed, 05 Aug 1998 00:00
61 lines
2932 bytes
2932 bytes
I have setup an INN-2.1 test server. Traditional storage and storage-api were
doing fine. However, cnfs method failed to accept cycbuffs >2GB, both using
raw devices and large files.
with raw device:
/dev/dsk/c2t2d0s2 partition map
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
2 5 00 0 8382528 8382527
6 4 00 4536 8377992 8382527
root@hekla [~] ll /cycbuff/c2t2d0s6
brw-rw-r-- 1 news news 32,262 Aug 5 14:21 /cycbuff/c2t2d0s6
cycbuff.conf: cycbuff:C2T2D0:/cycbuff/c2t2d0s6:4180000
metacycbuff:BASE:C2T2D0
storage.ctl: cnfs:*:0:0:0:BASE
news.notice:
Aug 4 13:42:45 hekla.switch.ch innd: CNFS-sm: CNFSinitdisks: mmap for
/cycbuff/c2t3d0s6 offset 0 len 0 failed: Invalid argument
Aug 4 13:42:45 hekla.switch.ch innd: SM storage method 'cnfs' failed
initialization
with large file (c2t3d0 has identical partition map as c2t2d0):
# newfs -v -m 1 -i 65536 /dev/dsk/c2t3d0s6
# mount /dev/dsk/c2t3d0s6 /cnfs/1
# dd if=/dev/zero of=/cnfs/1/buf1 bs=1k count=4120000
cycbuff.conf: cycbuff:C2T3-06:/cnfs/1/buf1:4120000
metacycbuff:ALT:C2T3-06
storage.ctl: cnfs:alt.*:1:0:0:ALT
root@hekla [/cycbuff] ll /cnfs/1/buf1
-rw-rw-r-- 1 news news 4218880000 Aug 4 14:27 buf1
news.notice:
Aug 4 14:33:45 hekla.switch.ch innd: CNFS-sm: file '/cnfs/1/buf1' does
not exist, ignoring 'C2T3-06' cycbuff
Aug 4 14:33:45 hekla.switch.ch innd: SM storage method 'cnfs' failed
initialization
Both raw device/file-based cycbuffs work well as soon as I stick to 2GB
bufsize. However, this 2GB limit appears a bit unfortunate in a time I get
15GB/day with an annual growth rate of 3..4.
I am puzzled because Solaris seems to cope well with large files, and
INN-2.1 should do so too according to the INSTALL notes.
Do I miss something obvious ?
Felix
---------------------------------------------------------------------
Felix Kugler | email: kugler@switch.ch
SWITCH (Swiss Academic & Research Network) | Phone: +41 1 268 15 30
Limmatquai 138, 8001 Zurich, Switzerland | FAX: +41 1 268 15 68
Re: INN-2.1/Solaris 2.6 and large cycbuffs
Author: Lupe Christoph
Date: Thu, 06 Aug 1998 00:00
Date: Thu, 06 Aug 1998 00:00
28 lines
1815 bytes
1815 bytes
kugler@switch.ch (Felix Kugler) writes: >I have setup an INN-2.1 test server. Traditional storage and storage-api were >doing fine. However, cnfs method failed to accept cycbuffs >2GB, both using >raw devices and large files. ... details deleted ... >Both raw device/file-based cycbuffs work well as soon as I stick to 2GB >bufsize. However, this 2GB limit appears a bit unfortunate in a time I get >15GB/day with an annual growth rate of 3..4. >I am puzzled because Solaris seems to cope well with large files, and >INN-2.1 should do so too according to the INSTALL notes. >Do I miss something obvious ? You don't say if you followed the instructions in lfcompile(5) when you build INN. I have not yet tried 2.x, but I doubt it build with largefile support by default. The INSTALL does not mention Solaris 2.6 explicitly. Grepping through the source, I found no indication that anybody has done this before. -- | lupe@alanya.m.isar.de (private) | lupe@octogon.de (business) | | "In short, just as the Multics mentality of careful access controls | | shows up throughout Unix, the cretinous CP/M mentality of uncontrolled | | havoc shows up in DOS and all its mutant children." Tom Christiansen |
Re: INN-2.1/Solaris 2.6 and large cycbuffs
Author: Felix Kugler
Date: Fri, 07 Aug 1998 00:00
Date: Fri, 07 Aug 1998 00:00
35 lines
2295 bytes
2295 bytes
In article <6qc5da$3kn$1@alanya.m.isar.de>, lupe@alanya.m.isar.de (Lupe Christoph) wrote: >>I am puzzled because Solaris seems to cope well with large files, and >>INN-2.1 should do so too according to the INSTALL notes. >>Do I miss something obvious ? >You don't say if you followed the instructions in lfcompile(5) when >you build INN. I have not yet tried 2.x, but I doubt it build with >largefile support by default. The INSTALL does not mention Solaris 2.6 >explicitly. Grepping through the source, I found no indication that >anybody has done this before. indeed I didn't do anything special while running configure/compiling. Following your suggestion I rtfm and added two compiler flags: GCFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 <whatever was here> Surprisingly it did the job, my server is up and running since 12 hours now with a 4GB cycbuff on a raw device and I see no indications of (new) problems. However, I'm afraid that this small modification might be a little bit too naive. Anyway I'd love to see a bit more help regarding largefile support both in the INSTALL notes and the cycbuff.conf man page. BTW does anybody have ideas about performance penalties associated with this largefile stuff ? Felix --------------------------------------------------------------------- Felix Kugler | email: kugler@switch.ch SWITCH (Swiss Academic & Research Network) | Phone: +41 1 268 15 30 Limmatquai 138, 8001 Zurich, Switzerland | FAX: +41 1 268 15 68
Re: INN-2.1/Solaris 2.6 and large cycbuffs
Author: Lupe Christoph
Date: Sat, 08 Aug 1998 00:00
Date: Sat, 08 Aug 1998 00:00
42 lines
2440 bytes
2440 bytes
kugler@switch.ch (Felix Kugler) writes: >indeed I didn't do anything special while running configure/compiling. >Following your suggestion I rtfm and added two compiler flags: >GCFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 <whatever was here> >Surprisingly it did the job, my server is up and running since 12 hours now >with a 4GB cycbuff on a raw device and I see no indications of (new) >problems. Glad to hear that. >However, I'm afraid that this small modification might be a >little bit too >naive. Anyway I'd love to see a bit more help regarding largefile support >both in the INSTALL notes and the cycbuff.conf man page. AFAIK, the compiler flags just change the size of arguments to functions or systemcalls like lseek. If INN 2.1 is clean in that it uses abstract types for things like offsets, and it probably *has* to do that to be able to run on Alpha, you out free. If you want to check yourself, read interface64(5) and check if INN 2.1 is consistent with what the manpage describes. But I have to agree that I, too, would be hesitant to put this think into production right away. Having it running for a month with some people beta-testing it would probably a Good Idea(tm). >BTW does anybody have ideas about performance penalties associated with >this largefile stuff ? AFAIK, just the penalty of moving around 64 bit quantities instead of 32 bit ones. Should be minor, even more so with 2.7, I'd presume. -- | lupe@alanya.m.isar.de (private) | lupe@octogon.de (business) | | "In short, just as the Multics mentality of careful access controls | | shows up throughout Unix, the cretinous CP/M mentality of uncontrolled | | havoc shows up in DOS and all its mutant children." Tom Christiansen |
Re: INN-2.1/Solaris 2.6 and large cycbuffs
Author: Felix Kugler
Date: Mon, 10 Aug 1998 00:00
Date: Mon, 10 Aug 1998 00:00
37 lines
2309 bytes
2309 bytes
In article <6qhvaq$33m$1@alanya.m.isar.de>, lupe@alanya.m.isar.de (Lupe Christoph) wrote: >AFAIK, the compiler flags just change the size of arguments to functions >or systemcalls like lseek. If INN 2.1 is clean in that it uses abstract >types for things like offsets, and it probably *has* to do that to >be able to run on Alpha, you out free. >If you want to check yourself, read interface64(5) and check if >INN 2.1 is consistent with what the manpage describes. I really do not feel fit for this 8-( >But I have to agree that I, too, would be hesitant to put this >think into production right away. Having it running for a month >with some people beta-testing it would probably a Good Idea(tm). you don't have to wait a month. Guess what happened this morning when my 4GB cycbuff was half full: Aug 10 08:34:17 hekla.switch.ch innd: SERVER cant store article Aug 10 08:34:17 hekla.switch.ch innd: CNFS-sm: cnfs_store xwritev failed for 'C2 T2-06' offset 0x7ffffe00: Invalid argument Aug 10 08:34:17 hekla.switch.ch innd: SERVER throttled Invalid argument writing SMstore file -- throttling Your feeling that INN's large file support might still be a bit experimental might be justified. Felix --------------------------------------------------------------------- Felix Kugler | email: kugler@switch.ch SWITCH (Swiss Academic & Research Network) | Phone: +41 1 268 15 30 Limmatquai 138, 8001 Zurich, Switzerland | FAX: +41 1 268 15 68
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