Re: Possible memory leak?



Pet Farrari <pf@xxxxxxxxxxx> writes:

Hi,

I installed FreeBSD 6.1 stable in WRAP.
As an internet/network router, I configured dhclient and bpalogin for
Telstra's cable Internet. I have installed named, and wireless access
point (ath) in the system as well.

In the Top command, I found the system started with 93MB free memory,
but in 5 days, it gradually decreased to 64MB, and then no more
internet connection until I reboot the system.

Here is the hardware config from its dmesg:

FreeBSD 6.1-STABLE #0: Tue Aug 22 10:14:07 EST 2006
root@xxxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/CORE
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by National Semi (266.67-MHz
586-class CPU)
Origin = "Geode by NSC" Id = 0x540 Stepping = 0
Features=0x808131<FPU,TSC,MSR,CX8,CMOV,MMX>
real memory = 134217728 (128 MB)
avail memory = 121892864 (116 MB)
module_register_init: MOD_LOAD (vesa, 0xc08c5554, 0) error 19
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
sis0: <NatSemi DP8381[56] 10/100BaseTX> port 0x1000-0x10ff mem
0x80000000-0x80000fff irq 10 at device 14.0 on pci0
sis0: Silicon Revision: DP83816A
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:0d:b9:03:e2:2c
sis0: [GIANT-LOCKED]
sis1: <NatSemi DP8381[56] 10/100BaseTX> port 0x1400-0x14ff mem
0x80040000-0x80040fff irq 11 at device 16.0 on pci0
sis1: Silicon Revision: DP83816A
miibus1: <MII bus> on sis1
ukphy1: <Generic IEEE 802.3u media interface> on miibus1
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis1: Ethernet address: 00:0d:b9:03:e2:2d
sis1: [GIANT-LOCKED]
ath0: <Atheros 5212> mem 0x80080000-0x8008ffff irq 9 at device 17.0 on pci0
ath0: [GIANT-LOCKED]
ath0: Ethernet address: 00:15:6d:50:0e:2a
ath0: mac 5.9 phy 4.3 radio 4.6
isab0: <PCI-ISA bridge> port 0xf400-0xf43f,0xf600-0xf63f at device
18.0 on pci0
isa0: <ISA bus> on isab0
pci0: <bridge> at device 18.1 (no driver attached)
atapci0: <National Geode SC1100 ATA33 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 18.2 on
pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <multimedia, audio> at device 18.3 (no driver attached)
pci0: <bridge> at device 18.5 (no driver attached)
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xe0000-0xe7fff on isa0
ppc0: parallel port not found.
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
Timecounters tick every 1.000 msec
IPsec: Initialized Security Association Processing.
IP Filter: v4.1.8 initialized. Default = pass all, Logging = disabled
ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding
disabled, default to accept, logging disabled
ad0: 1001MB <HYPERSTONE FLASH DISK 30/06/03> at ata0-master PIO4
Trying to mount root from ufs:/dev/ad0s1a

Here is the output of df -k command:

# df -k
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad0s1a 68951 33250 30185 52% /
devfs 1 1 0 100% /dev
/dev/ad0s1d 11351 154 10289 1% /usr/var
/dev/ad0s1e 758599 176809 521103 25% /usr
procfs 4 4 0 100% /proc
devfs 1 1 0 100% /usr/var/named/dev

I m not sure what s wrong. Your suggestion is highly appreciated.

The memory status is not a problem; in fact, it's desirable.
See the FAQ "Why does top show very little free memory even when I
have very few programs running?"
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/misc.html#TOP-FREEMEM

Can you be more descriptive about the actual problem you're seeing?

--
Lowell Gilbert, embedded/networking software engineer
http://be-well.ilk.org/~lowell/
.



Relevant Pages

  • Possible memory leak?
    ... I installed FreeBSD 6.1 stable in WRAP. ... In the Top command, I found the system started with 93MB free memory, but in 5 days, it gradually decreased to 64MB, and then no more internet connection until I reboot the system. ... Here is the hardware config from its dmesg: ... miibus0: <MII bus> on sis0 ...
    (comp.unix.bsd.freebsd.misc)
  • [PATCH] 2.6.21-git15 - Kconfig Cleanup
    ... config EXCPT_IRQ_SYSC_L1 ... bool "Locate frequently called do_irq dispatcher function in L1 Memory" ... This driver is for the ...
    (Linux-Kernel)
  • Re: [PATCH] 2.6.21-git15 - Kconfig Cleanup
    ... config EXCPT_IRQ_SYSC_L1 ... bool "Locate frequently called do_irq dispatcher function in L1 Memory" ... This driver is for the ...
    (Linux-Kernel)
  • Re: windows is running slow
    ... Download and install the User Profile Hive Cleanup Service ... you any programmes having memory leaks the memory is not released. ... History under Internet Explorer. ... Volume fragmentation ...
    (microsoft.public.windowsxp.perform_maintain)
  • CE6 hangs in GrabFSPages()
    ... It's got to be a memory configuration issue, ... KeyIndex 0 = -1 ... Receive Config message for service DBGMSG ... attribute memory space. ...
    (microsoft.public.windowsce.platbuilder)