newscache: cache size limit


Previous by date: 25 Jul 2006 15:01:45 +0100 Re: cache size limit, Straub Herbert
Next by date: 25 Jul 2006 15:01:45 +0100 Open-news-network.org Version von NewsCache, Arnold Schiller
Previous in thread: 25 Jul 2006 15:01:45 +0100 Re: cache size limit, Straub Herbert
Next in thread: 25 Jul 2006 15:01:45 +0100 Re: cache size limit, Herbert Straub

Subject: Re: cache size limit
From: "Cristian Avram" ####@####.####
Date: 25 Jul 2006 15:01:45 +0100
Message-Id: <a30657b70607250701t3aa4ff26i5fb60d4b2ae661a5@mail.gmail.com>

Thanks for the quick reply. I had to comment the line with error.h in
your source in order to get a clean compile.

gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.4 [FreeBSD] 20050518


I've tried to load a big file (8gig) this is the output:

./test_mmap bigfile.iso
mmap error for input

Can you help me, what should I do next?

Thanks!

On 7/25/06, Straub Herbert ####@####.#### wrote:
>
>
>
> Please try to use the following compile options:
>
>   -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
>
>  Here a short testprogram:
>
>  #include <stdio.h>
>  #include <sys/types.h>
>  #include <sys/stat.h>
>  #include <sys/mman.h> /* mmap() is defined in this header */
>  #include <fcntl.h>
>  #include <error.h>
>
>
>  int main (int argc, char *argv[])
>  {
>           int fdin, fdout;
>           char *src, *dst;
>           struct stat statbuf;
>
>          if ((fdin = open (argv[1], O_RDONLY)) < 0) {
>                  perror ("open error\n");
>                  return(1);
>          }
>
>          if (fstat (fdin,&statbuf) < 0) {
>                  printf ("fstat error\n");
>                  return(1);
>          }
>
>          if ((src = mmap (0, statbuf.st_size, PROT_READ, MAP_SHARED, fdin,
> 0)) == (caddr_t) -1) {
>                  perror ("mmap error for input\n");
>                  return(1);
>          }
>
>          close (fdin);
>          return (0);
>  }
>
>
>  gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE   -o test_mmap test_mmap.c
>
>  Please report the situation.
>
>
>  -----Original Message-----
>  From: Cristian Avram ####@####.####
>  Sent: Tue 7/25/2006 10:37 AM
>  To: ####@####.####
>  Subject: cache size limit
>
>  Hi,
>
>  i'm trying to set up NewsCache on a FreeBSD 6.1 Stable machine. (2800
>  Mhz Pentium 4 / 1024M RAM). If I try to run newscache as news/news
>  user and group the .db file never grows larger than 2048M (even if i
>  set the max cache size to 40gig+). If i run newscache as root/wheel
>  the same thing happens... but with a segfault, too...
>  Here's what I see in the log:
>
>  ---
>  NewsCache[9219]: updating the overview database
>  failed(alt.binaries.blah.blah): NVContainer::make_current(): mmap
>  failed
>  kernel: pid 9219 (newscache), uid 0: exited on signal 11 (core dumped)
>  NewsCache[9192]: 9219 caught signal 11
>  ---
>  I'm using the FreeBSD port version (Makefile states PORTVERSION=
> 1.2.r.6)
>
>
>  I tried to get a cvs snapshot, but it seems that the cvs password
>  listed on site doesn't work anymore.
>
>  Anyone could give me a hint, why should i do in order to get a full
>  update / bigger than 2048M?
>
>
>  PS
>  The file system is UFS (/dev/ad0s1a on / (ufs, local, soft-updates)
>
>  Thank You!
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
> ####@####.####
>  For additional commands, e-mail: ####@####.####
>
>
>
>
>

Previous by date: 25 Jul 2006 15:01:45 +0100 Re: cache size limit, Straub Herbert
Next by date: 25 Jul 2006 15:01:45 +0100 Open-news-network.org Version von NewsCache, Arnold Schiller
Previous in thread: 25 Jul 2006 15:01:45 +0100 Re: cache size limit, Straub Herbert
Next in thread: 25 Jul 2006 15:01:45 +0100 Re: cache size limit, Herbert Straub


Powered by ezmlm-browse 0.20.