Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2007 10:27:23 +0100
From:      "Remy de Ruysscher" <remy@unix-asp.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Servers are using limited amount of memory after upgrade from 6.2-PRE to 6.2-STABLE
Message-ID:  <20070123095957.E2DF413C459@mx1.freebsd.org>
In-Reply-To: <cmu-lmtpd-40275-1169536891-0@unix-asp.com>
References:  <cmu-lmtpd-40275-1169536891-0@unix-asp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Sorry about the previous message, it was send in error.

After upgrading from 6.2-PRERELEASE to 6.2-STABLE all my servers are
terribly slow, the webservers use only 300Mb memory instead of the 
previous 1500Mb. Anything changed between those releases which affects the
memory usage?

FreeBSD uhura.pocketinfo.nl 6.2-STABLE FreeBSD 6.2-STABLE #9: Mon Jan 22
23:07:01 CET 2007     root@uhura.pocketinfo.nl:/usr/obj/usr/src/sys/UHURA
i386

Resource limits (current):
  cputime          infinity secs
  filesize         infinity kB
  datasize          1572864 kB
  stacksize          131072 kB
  coredumpsize     infinity kB
  memoryuse        infinity kB
  memorylocked     infinity kB
  maxprocesses         5547
  openfiles           11095
  sbsize           infinity bytes
  vmemoryuse       infinity kB


last pid: 23922;  load averages:  0.86,  0.87,  0.85
up 0+09:29:53  10:25:48
95 processes:  1 running, 94 sleeping
CPU states: 13.9% user,  0.0% nice,  3.5% system,  0.1% interrupt, 82.6%
idle
Mem: 265M Active, 455M Inact, 182M Wired, 20K Cache, 112M Buf, 1100M Free

My kernel config:

machine         i386                            #i386 architecture
cpu             I686_CPU
ident           UHURA                           #Kernel config name
maxusers        0                               #Dynamically allocate
resources

# LSI Logic SAS controller
device          mpt
device          mfi

#
# Watchdog routines.
#

device          puc

#options         MP_WATCHDOG

#options         SCHED_ULE                      #Use the new ULE kernel
scheduler
options        SCHED_4BSD                       #Use the 4BSD kernel
scheduler e

options         DEVICE_POLLING                  #Adds network robustness at
slightly higher response times
options         HZ=1000                         #Polls network ever 1 sec.

options         PREEMPTION                      #Allow kernel to be
preempted by higher priority threads
options         ADAPTIVE_GIANT                  #This improves the
performance of SMP machines

options         KDB                             #Kernel debugger
options         DDB                             #Support DDB.
options         GDB                             #Support remote GDB.
makeoptions     DEBUG=-g                        #Build kernel with gdb(1)
debug symbols
options         KDB_UNATTENDED                  #Automatic reboot on Kernel
panic

#options        BEEP_ONHALT                     #Beeps the speaker multiple
times when it is safe to power off the machine
#options        BEEP_ONHALT_COUNT=3             # Times to beep
#options        BEEP_ONHALT_PITCH=1500          # Default frequency (in Hz)
#options        BEEP_ONHALT_PERIOD=250          # Default duration (in
msecs)

options         TCP_DROP_SYNFIN                 #This prevents OS
fingerprinting but breaks support for RFC1644

device          pf                              #Use the OpenBSD
packetfilter
device          carp                            #Enable CARP (OpenBSD)

#options        DUMMYNET                        #Dummynet for loadbalancing
#options        IPFIREWALL                      #Enable IPFW firewalling
#options        IPFIREWALL_VERBOSE              #Enable Logging of packets
#options        IPFIREWALL_VERBOSE_LIMIT=100
#options        IPFIREWALL_FORWARD

#options        IPDIVERT                        #Divert Sockets
options         IPSTEALTH                       #Support for stealth
forwarding packets w/o touching the TTL of packets

options         SUIDDIR
options         INET                            #InterNETworking
options         INET6                           #IPv6 communications
protocols

#
# PERFMON causes the driver for Pentium/Pentium Pro performance counters
# to be compiled.  See perfmon(4) for more information.
#
options         PERFMON

device          acpi                            #ACPI support
device          agp                             #AGP GART support
device          apic                            #I/O apic

device          ipmi

options         GEOM_GPT                # GUID Partition Tables.

options         MAXDSIZ=(1224*1024*1024)
options         DFLDSIZ=(1224*1024*1024)
options         MAXSSIZ=(128*1024*1024)

# Optional:
options         MPTABLE_FORCE_HTT       # Enable HTT CPUs with the MP Table
options         IPI_PREEMPTION

# Broadcom Gigabit Ethernet
device          bce
options         FFS                             #Berkeley Fast Filesystem
options         SOFTUPDATES                     #Enable FFS soft updates
support
options         UFS_DIRHASH                     #Improve performance on big
directories
options         UFS_ACL                         #Support for access control
lists
options         MD_ROOT                         #MD is a potential root
device
#options        NFS                             #Network Filesystem
#options        NFS_ROOT                        #NFS usable as root device,
NFS required
options         QUOTA                           #Enable disk quotas
options         MSDOSFS                         #MSDOS Filesystem
options         CD9660                          #ISO 9660 Filesystem
#options        CD9660_ROOT                     #CD-ROM usable as root,
CD9660 required
options         PSEUDOFS                        #Pseudo-filesystem framework
options         PROCFS                          #Process filesystem
options         COMPAT_43                       #Compatible with BSD 4.3
[KEEP THIS!]
options         SCSI_DELAY=1500                 #Delay (in ms) before
probing SCSI
#options        UCONSOLE                        #Allow users to grab the
console
#options        USERCONFIG                      #boot -c editor
#options         USER_LDT                       #Allow user-level control of
i386 ldt
#options        VISUAL_USERCONFIG               #visual boot -c editor
options         KTRACE                          #ktrace(1) support
options         SYSVSHM                         #SYSV-style shared memory
options         SYSVMSG                         #SYSV-style message queues
options         SYSVSEM                         #SYSV-style semaphores

options         SC_KERNEL_CONS_ATTR=(FG_LIGHTRED|BG_BLACK) # kernel message
will be printed bright red on black background
options         SC_KERNEL_CONS_REV_ATTR=(FG_BLACK|BG_RED)  # The reversed
message will be black on red background

options         MSGMNB=8192                     # max # of bytes in a queue
options         MSGMNI=40                       # number of message queue
identifiers
options         MSGSEG=512                      # number of message segments
per queue
options         MSGSSZ=64                       # size of a message segment
options         MSGTQL=2048                     # max messages in system


#options        P1003_1B                        #Posix P1003_1B real-time
extensions
options         _KPOSIX_PRIORITY_SCHEDULING
#options                ICmP_BANDLIM                    #Rate limit bad
replies
options         KBD_INSTALL_CDEV                #install a CDEV entry in
/dev
options         IPFILTER                        #Packetfilter
options         IPFILTER_LOG                    #Log denied connections
#options        IPFILTER_DEFAULT_BLOCK          #Per default block all
traffic

options         VESA
device          sc
options         SC_PIXEL_MODE

#options         IPSEC                          #IPSec encryption req. for
VPN
#options         IPSEC_ESP                      #
#options        IPSEC_DEBUG                     #debug for IPSEC - optional

options         KBD_INSTALL_CDEV                #Install CDEV entry in /dev
options         ADAPTIVE_GIANT                  #Giant mutex is adaptive
options         DDB
options         DDB_NUMSYM

options         SW_WATCHDOG                     #Software watchdog

# To make an SMP kernel, the next two are needed
options         SMP                     # Symmetric MultiProcessor Kernel
#options        APIC_IO                 # Symmetric (APIC) I/O

#device         mca
#device         eisa
device          isa
device          pci

# ALTQ options
#options        ALTQ            #alternate queueing
options        ALTQ_CBQ        #class based queueing
#options        ALTQ_WFQ        #weighted fair queueing
#options        ALTQ_FIFOQ      #fifo queueing
options        ALTQ_RED        #random early detection
#options        ALTQ_FLOWVALVE  #flowvalve for RED (needs RED)
options        ALTQ_RIO        #triple  red for diffserv (needs RED)
#options        ALTQ_LOCALQ     #local use
options        ALTQ_HFSC       #hierarchical fair service curve
#options        ALTQ_JOBS       #joint buffer management and scheduling
#options        ALTQ_IPSEC      #check ipsec in IPv4
options        ALTQ_CDNR       #diffserv traffic conditioner
#options        ALTQ_BLUE       #blue by wu-chang feng
options        ALTQ_PRIQ       #priority queue
#options        ALTQ_NOPCC      #don't use processor cycle counter
#options        ALTQ_DEBUG      #for debugging

# you might want to set kernel timer to 1kHz if you use CBQ,
# especially with 100baseT

# options added for ALTQ
#options        MROUTING        # Multicast routing
#pseudo-device  atm
#device         en
#options        NATM            #native mode atm

# DAC960 Mylex SCSI RAID
#device         mlx

# Floppy drives
device          fdc
# If you have a Toshiba Libretto with its Y-E Data PCMCIA floppy,
# don't use the above line for fdc0 but the following one:
#device         fdc0

# ATA and ATAPI devices
device          atapicam        # SCSI emulation for IDE
device          ata
device          atadisk         # ATA disk drives
device          ataraid         # ATA RAID drives
device          atapicd         # ATAPI CDROM drives
#device          atapifd         # ATAPI floppy drives
#device          atapist         # ATAPI tape drives
options         ATA_STATIC_ID   # Static device numbering
#device         ar              # Promise IDE RAID

# SCSI Controllers
#device         ahb             # EISA AHA1742 family
#device         ahc             # AHA2940 and onboard AIC7xxx devices
#device         amd             # AMD 53C974 (Tekram DC-390(T))
#device         isp             # Qlogic family
#device         ncr             # NCR/Symbios Logic
device          sym             # NCR/Symbios Logic (newer chipsets)
#options        SYM_SETUP_LP_PROBE_MAP=0x40
                                # Allow ncr to attach legacy NCR devices
when
                                # both sym and ncr are configured

#device         ncv             # NCR 53C500
#device         nsp             # Workbit Ninja SCSI-3
#device         stg             # TMC 18C30/18C50

# SCSI peripherals
device          scbus           # SCSI bus (required)
device          da              # Direct Access (disks)
#device         sa              # Sequential Access (tape etc)
#device         cd              # CD
device          pass            # Passthrough device (direct SCSI access)

# RAID controllers interfaced to the SCSI subsystem
#device         asr             # DPT SmartRAID V, VI and Adaptec SCSI RAID
#device         dpt             # DPT Smartcache - See LINT for options!
#device          iir             # Intel Integrated RAID

#device         mly             # Mylex AcceleRAID/eXtremeRAID
#device         ciss            # Compaq SmartRAID 5* series

# RAID controllers
#device         aac             # Adaptec FSA RAID, Dell PERC2/PERC3
#device         aacp            # SCSI passthrough for aac (requires CAM)
device          ida             # Compaq Smart RAID
#device         amr             # AMI MegaRAID
#device         mlx             # Mylex DAC960 family
#device         twe             # 3ware Escalade

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard
device          psm             # PS/2 mouse

device          vga

# splash screen/screen saver
device  splash

# syscons is the default console driver, resembling an SCO console
device          sc

# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device         vt0     at isa?
#options        XSERVER                 # support for X server on a vt
console
#options        FAT_CURSOR              # start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT
lines
#options        PCVT_SCANSET=2          # IBM keyboards are non-std

# Floating point support - do not disable.
device          npx

# Power management support (see LINT for more options)
#device         apm
#device          gzip            #Exec gzipped a.out's. REQUIRES
COMPAT_AOUT!
#device          apm_saver       # Requires APM

# Serial (COM) ports
device          sio             # 8250, 16[45]50 based serial ports

# Parallel port
device          ppc
device          ppbus           # Parallel port bus (required)
device          lpt             # Printer
#device         plip            # TCP/IP over parallel
#device         ppi             # Parallel port interface device
#device         vpo             # Requires scbus and da


# PCI Ethernet NICs.
#device         de              # DEC/Intel DC21x4x (``Tulip'')
#device         em              # Intel PRO/1000 adapter Gigabit Ethernet
Card (``Wiseman'')
#device         txp             # 3Com 3cR990 (``Typhoon'')
#device         vx              # 3Com 3c590, 3c595 (``Vortex'')

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device          miibus          # MII bus support
#device         de              # DEC/Intel 21143 based Fast Ethernet NICs /
ZYNX ZX 3xx
#device         dc              # DEC/Intel 21143 and various workalikes
#device         fxp             # Intel EtherExpress PRO/100B (82557, 82558)
#device         pcn             # AMD Am79C97x PCI 10/100 NICs
device          rl              # RealTek 8129/8139
#device         sf              # Adaptec AIC-6915 (``Starfire'')
#device         sis             # Silicon Integrated Systems SiS 900/SiS
7016
#device         ste             # Sundance ST201 (D-Link DFE-550TX)
device          tl              # Texas Instruments ThunderLAN
#device         tx              # SMC EtherPower II (83c170 ``EPIC'')
#device         vr              # VIA Rhine, Rhine II
#device         wb              # Winbond W89C840F
device          sk              # Marvell Gigabit
device          xl              # 3Com 3c90x (``Boomerang'', ``Cyclone'')
#device         bge             # Broadcom BCM570x (``Tigon III'')

# Pseudo devices - the number indicates how many units to allocate.
device          mem             # Memory and kernel memory devices
device          io              # I/O device
device          random          # Entropy device
device          loop            # Network loopback
device          ether           # Ethernet support
device          sl              # Kernel SLIP
device          ppp             # Kernel PPP
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"
device          gif             # IPv6 and IPv4 tunneling
device          faith           # IPv6-to-IPv4 relaying (translation)

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device  bpf                     #Berkeley packet filter

# USB support
#device         uhci            # UHCI PCI->USB interface
#device         ohci            # OHCI PCI->USB interface
#device         usb             # USB Bus (required)
#device         ugen            # Generic
#device         uhid            # "Human Interface Devices"
#device         ukbd            # Keyboard
#device         ulpt            # Printer
#device         umass           # Disks/Mass storage - Requires scbus and da
#device         ums             # Mouse



Thanks for your help.

Remy.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070123095957.E2DF413C459>