Re: LARGE single-system Cyrus installs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 6 Oct 2007, Rob Mueller wrote:

That's strange. What mount options are/were you using? We use/used:

reiserfs - rw,noatime,nodiratime,notail,data=journal
ext3 - noatime,nodiratime,data=journal

Same, but data=ordered in both cases

If you weren't using "notail" on reiserfs, that would definitely have a performance impact.

Definitely using notail.

Wow weird, must be something different. What kernel was it? Do you know where the memory leak was occuring?

Standard SLES kernels for SLES9.

The memory leak could be show by mmap() on a single file (see attachment). Kernel memory explodes, and nothing is released when the program exits.

--
David Carter                             Email: David.Carter@xxxxxxxxxxxxx
University Computing Service,            Phone: (01223) 334502
New Museums Site, Pembroke Street,       Fax:   (01223) 334679
Cambridge UK. CB2 3QH.
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>

#define BLOCK_SIZE (4096)

static void fatal(char *err)
{
    fprintf(stderr, "%s\n", err);
    exit(1);
}

int main(int argc, char *argv[])
{
    int i;
    int fd, fd2;
    char *s;

    if (argc != 3)
        fatal("Args: <source file> <dest file>");

    for (i=0; i < 100000 ; i++) {
        if ((fd = open(argv[1], O_RDONLY)) < 0)
            fatal("open");

        if ((s=mmap(NULL, BLOCK_SIZE, PROT_READ, MAP_SHARED, fd, 0)) == NULL)
            fatal("mmap");

        if ((fd2 = open(argv[2], O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
            fatal("open");

        if (write(fd2, s, BLOCK_SIZE) < BLOCK_SIZE)
            fatal("write");

        if (close(fd2) < 0)
            fatal("close");
        
        if (munmap(s, BLOCK_SIZE) < 0)
            fatal("munmap");

        if (close(fd) < 0)
            fatal("close");
    }
    return(0);
}
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux