newscache: cache size limit


Previous by date: 25 Jul 2006 11:03:58 +0100 cache size limit, Cristian Avram
Next by date: 25 Jul 2006 11:03:58 +0100 Re: cache size limit, Cristian Avram
Previous in thread: 25 Jul 2006 11:03:58 +0100 cache size limit, Cristian Avram
Next in thread: 25 Jul 2006 11:03:58 +0100 Re: cache size limit, Cristian Avram

Subject: RE: cache size limit
From: "Straub Herbert" ####@####.####
Date: 25 Jul 2006 11:03:58 +0100
Message-Id: <3BFD6610938CF248B670B10533A25DD2011E5D47@xc2kvmg1.wienkav.at>

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 11:03:58 +0100 cache size limit, Cristian Avram
Next by date: 25 Jul 2006 11:03:58 +0100 Re: cache size limit, Cristian Avram
Previous in thread: 25 Jul 2006 11:03:58 +0100 cache size limit, Cristian Avram
Next in thread: 25 Jul 2006 11:03:58 +0100 Re: cache size limit, Cristian Avram


Powered by ezmlm-browse 0.20.