Thread View: news.software.nntp
6 messages
6 total messages
Started by JB
Sat, 05 Mar 2005 15:18
INN msync error - Mac OS X 10.3.8
Author: JB
Date: Sat, 05 Mar 2005 15:18
Date: Sat, 05 Mar 2005 15:18
32 lines
2395 bytes
2395 bytes
I've been running INN under Mac OS X 10.2.x more or less successfully for some time, and have just now tried to move to 10.3.8. I re-initialized the disk and installed 10.3 from scratch, then brought it up to 10.3.8, then installed the latest Xcode Tools (Apple's developer stuff), version 1.5. INN seemed to compile and install OK, but when I tried to run it, it died quickly. A few incoming articles appear in ~/log/news, and ~/log/news.err contains: innd: SERVER msync failed /usr/local/news/db/active Invalid argument Before I started this project, I had already compiled INN on another OS 10.3.x box at home and gotten it to run as an isolated server. I could connect to it with a newsreader, post articles to a test group, and read them. No incoming feeds. I think this was a different version of Xcode Tools, though, maybe 1.1 or 1.2. I'll have to wait till I get back home to check. The machine that I'm working on now is our production server. I preserved the spool (tradspool) and the active and newsgroups files, put them into the freshly compiled INN, and rebuilt the overview and history before trying to start INN. I'll try to rebuild with an earlier version of XCode Tools and see what happens. Any other ideas?
Re: INN msync error - Mac OS X 10.3.8
Author: Bo Lindbergh
Date: Sat, 05 Mar 2005 20:07
Date: Sat, 05 Mar 2005 20:07
4 lines
1059 bytes
1059 bytes
Mac OS X 10.3 introduced a bug in the msync system call. It always fails if the flags argument equals MS_ASYNC. /Bo Lindbergh
Re: INN msync error - Mac OS X 10.3.8
Author: JB
Date: Sun, 06 Mar 2005 01:38
Date: Sun, 06 Mar 2005 01:38
12 lines
1737 bytes
1737 bytes
Bo Lindbergh wrote: > Mac OS X 10.3 introduced a bug in the msync system call. > It always fails if the flags argument equals MS_ASYNC. But why did INN seem to work when I tried it at home? Hmmm... [grep through source code] aha, let me guess: innd uses msync but nnrpd doesn't? I see the msync call is made only if HAVE_MMAP is true. I'll try setting that flag to 0 in config.h, as a workaround.
Re: INN msync error - Mac OS X 10.3.8
Author: Russ Allbery
Date: Sun, 06 Mar 2005 02:04
Date: Sun, 06 Mar 2005 02:04
31 lines
2286 bytes
2286 bytes
JB <jtb5358@yahoo.com> writes:
> Bo Lindbergh wrote:
>> Mac OS X 10.3 introduced a bug in the msync system call. It always
>> fails if the flags argument equals MS_ASYNC.
> But why did INN seem to work when I tried it at home? Hmmm... [grep
> through source code] aha, let me guess: innd uses msync but nnrpd
> doesn't?
Right, nnrpd doesn't write anything out to disk, and therefore doesn't
need to flush mmaped files.
> I see the msync call is made only if HAVE_MMAP is true. I'll try
> setting that flag to 0 in config.h, as a workaround.
INN requires mmap, so that isn't going to do what you want.
A better approach would be to add something like:
#undef MS_ASYNC
#define MS_ASYNC MS_SYNC
to include/portable/mmap.h after the inclusion of sys/mman.h. Note that
this will have a possibly noticable performance impact.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN msync error - Mac OS X 10.3.8
Author: Jon Bell
Date: Sun, 06 Mar 2005 08:46
Date: Sun, 06 Mar 2005 08:46
20 lines
1930 bytes
1930 bytes
In article <87u0npa5sn.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: > >A better approach would be to add something like: > > #undef MS_ASYNC > #define MS_ASYNC MS_SYNC > >to include/portable/mmap.h after the inclusion of sys/mman.h. Note that >this will have a possibly noticable performance impact. That got things working again, thanks! I don't think the performance impact will be significant in our case, because we carry just the Big 8 and some other small hierarchies. Hopefully Mac OS 10.4 will resolve this problem. -- Jon Bell <jtbellm4h@presby.edu> Presbyterian College Dept. of Physics and Computer Science Clinton, South Carolina USA
Re: INN msync error - Mac OS X 10.3.8
Author: Bo Lindbergh
Date: Sat, 30 Apr 2005 01:44
Date: Sat, 30 Apr 2005 01:44
12 lines
1428 bytes
1428 bytes
[posted and e-mailed] In article <d0eg1r$n5t$1@jtbell.presby.edu>, jtbellj3p@presby.edu (Jon Bell) wrote: > Hopefully Mac OS 10.4 will resolve this problem. And a quick test says it did. No more spurious EINVALs from msync(..., MS_ASYNC). /Bo Lindbergh
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