FreeBSD data size tuning

From: apellido jr., wilfredo p (hazecast_at_yahoo.com)
Date: 11/21/03

  • Next message: Petri Helenius: "Re: FreeBSD data size tuning"
    Date: Thu, 20 Nov 2003 23:59:57 -0800 (PST)
    To: freebsd-performance@freebsd.org
    
    

    Hello,

    I have PIII 500 with 1GB of RAM on 4.9-RELEASE
    running Squid 2.5-STABLE4 and I got this error after a
    few hours of Squid running.

    proxy (squid): xmalloc: Unable to allocate 65535
    bytes!

    According to Squid FAQ

    8.7 xmalloc: Unable to allocate 4096 bytes!
    by Henrik Nordstrom

    Messages like "FATAL: xcalloc: Unable to allocate 4096
    blocks of 1 bytes!" appear when Squid can't allocate
    more memory, and on most operating systems (inclusive
    BSD) there are only two possible reasons:

    1. The machine is out of swap
    2. The process' maximum data segment size has been
    reached

    I got 2500MB swap file and isnt used when i try to use
    the cmd top. How do i recompile a kernel with larger
    datasize settings?

    here's the options that i added im my kernel

    maxusers 128
    options USER_LDT
    options DUMMYNET
    options IPFIREWALL
    options IPFIREWALL_VERBOSE
    options IPFIREWALL_VERBOSE_LIMIT=100
    options IPFIREWALL_FORWARD
    options IPFIREWALL_DEFAULT_TO_ACCEPT
    options IPDIVERT
    options HZ=80
    options NMBCLUSTERS=65536

    sysctl.conf

    vfs.vmiodirenable=1
    kern.ipc.maxsockbuf=2097152
    kern.ipc.somaxconn=8192
    kern.ipc.maxsockets=16424
    kern.maxfiles=65536
    kern.maxfilesperproc=32768
    net.inet.tcp.rfc1323=1
    net.inet.tcp.delayed_ack=0
    net.inet.tcp.sendspace=65535
    net.inet.tcp.recvspace=65535
    net.inet.udp.recvspace=65535
    net.inet.udp.maxdgram=57344
    net.local.stream.recvspace=65535
    net.local.stream.sendspace=65535

    loader.conf

    userconfig_script_load="YES"
    hw.ata.wc="1"

    Squid Configuration

    cache_mem 384

    thanks very much ....

    =====
    wilfredo pahilanga apellido jr.
    technical support
    mactan online
    bacolod city, philippines
    +63 34 4348311

    If you can't hear me, it's because i'm in parentheses.

    __________________________________
    Do you Yahoo!?
    Free Pop-Up Blocker - Get it now
    http://companion.yahoo.com/
    _______________________________________________
    freebsd-performance@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-performance
    To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"


  • Next message: Petri Helenius: "Re: FreeBSD data size tuning"

    Relevant Pages

    • Re: (no subject)
      ... > I am using squid to access the the internet with other users on a small ... presumably they aren't running squid themselves, ... using Squid on the "server" as their web proxy. ... > notice an IP sddress on my network 192.168.1.244 which is strange. ...
      (Fedora)
    • Re: Download email behind proxy with Gnomes Evolution Mail Client
      ... My server is winXP, running Squid at port 3128. ... My client is ubuntu dapper beta. ...
      (Ubuntu)
    • Re: Squid and harddrive cleanup
      ... >I'm running Squid on a Fedora box and it has been running well for 10 ... check the squid config file to see how much disk space the cache ... I had a 2GB SCSI disk for my squid cache, ...
      (alt.os.linux.redhat)
    • optimizing squid and freebsd
      ... Running squid on a 6.x box. ... I'm going to implement digest user authentication, and want to ensure squid is running optimally. ... Googling and reading "Squid the Definitive Guide" by Oreilly indicates that the file descriptors should be raised. ... in my kernel config file? ...
      (freebsd-questions)
    • Re: Web logging
      ... If the server is running squid, ... To look for the presence of a Squid cache between you and the WWW, ...
      (Security-Basics)