Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 May 2001 18:23:48 -0400 (EDT)
From:      Marius <marius@mail.communityconnect.com>
To:        Ramon A Hermon <rahermon@iastate.edu>
Cc:        freebsd-stable@FreeBSD.org
Subject:   Re: Mem Use
Message-ID:  <Pine.BSF.4.21.0105031816230.82281-100000@utterlux.hq.communitconnect.com>
In-Reply-To: <003701c0d41c$91c08520$5103ba81@cs.iastate.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

As stated before, the whole matter with memory usage is normal.  As seen
in my output for top:

>last pid: 83829;  load averages:  1.02,  1.03,  1.01   up 19+23:09:05
18:17:08
>70 processes:  4 running, 66 sleeping
>CPU states: 14.7% user, 56.2% nice,  9.7% system,  0.0% interrupt, 19.4%
idle
>Mem: 109M Active, 138M Inact, 38M Wired, 2752K Cache, 48M Buf, 87M Free
>Swap: 100M Total, 1224K Used, 99M Free, 1% Inuse
*snip*

So that shouldn't bother you at all.  But then, is 'ls' really slow?
I am sure my cpu is much slower then yours, but a simple command like
'ls' returns faster then I can finnsh pressing the enter key.=20

-Marius M. Rex =20


On Thu, 3 May 2001, Ramon A Hermon wrote:

> Ok, as you might notice I am learning. Just installed FreeBSD 4.3
> and made my box stable. Last world was build this morning.
> I modified my kernel as follow from GENERIC:
>=20
> ########################################
> machine=09i386
> cpu=09=09I586_CPU
> ident=09 =09*****
> maxusers =09100
>=20
> options =09MATH_EMULATE=09#Support for x87 emulation
> options =09INET=09=09=09#InterNETworking
> options =09INET6=09=09=09#IPv6 communications protocols
> options =09FFS=09=09=09#Berkeley Fast Filesystem
> options =09FFS_ROOT=09=09#FFS usable as root device [keep this!]
> options =09SOFTUPDATES=09=09#Enable FFS soft updates support
> options =09MFS=09=09=09#Memory Filesystem
> options =09MD_ROOT=09=09#MD is a potential root device
> options =09MSDOSFS=09=09#MSDOS Filesystem
> options =09CD9660=09=09#ISO 9660 Filesystem
> options =09CD9660_ROOT=09=09#CD-ROM usable as root, CD9660 required
> options =09PROCFS=09=09#Process filesystem
> options =09COMPAT_43=09=09#Compatible with BSD 4.3 [KEEP THIS!]
> options =09SCSI_DELAY=3D15000=09#Delay (in ms) before probing SCSI
> options =09UCONSOLE=09=09#Allow users to grab the console
> options =09USERCONFIG=09=09#boot -c editor
> options =09VISUAL_USERCONFIG=09#visual boot -c editor
> options =09KTRACE=09=09#ktrace(1) support
> options =09SYSVSHM=09=09#SYSV-style shared memory
> options =09SYSVMSG=09=09#SYSV-style message queues
> options =09SYSVSEM=09=09#SYSV-style semaphores
> options =09P1003_1B=09=09#Posix P1003_1B real-time extensions
> options =09_KPOSIX_PRIORITY_SCHEDULING
> options=09ICMP_BANDLIM=09#Rate limit bad replies
> options =09KBD_INSTALL_CDEV=09# install a CDEV entry in /dev
> options=09TCP_DROP_SYNFIN=09#drop TCP packets with SYN+FIN
> options=09TCP_RESTRICT_RST=09#restrict emission of TCP RST
> options=09DDB
> options=09NTFS
> options =09USER_LDT=09=09#allow user-level control of i386 ldt
>=20
> device=09=09isa
> device=09=09eisa
> device=09=09pci
>=20
> # ATA and ATAPI devices
> device=09=09ata0=09at isa? port IO_WD1 irq 14
> device=09=09ata1=09at isa? port IO_WD2 irq 15
> device=09=09ata
> device=09=09atadisk=09=09# ATA disk drives
> device=09=09atapicd=09=09# ATAPI CDROM drives
> device=09=09atapifd=09=09# ATAPI floppy drives
> device=09=09atapist=09=09# ATAPI tape drives
> options =09ATA_STATIC_ID=09=09#Static device numbering
>=20
>=20
> device=09=09adv0=09at isa?
> device=09=09adw
> device=09=09bt0=09at isa?
> device=09=09aha0=09at isa?
> device=09=09aic0=09at isa?
>=20
>=20
> # SCSI peripherals
> device=09=09scbus=09=09# SCSI bus (required)
> device=09=09da=09=09# Direct Access (disks)
> device=09=09sa=09=09# Sequential Access (tape etc)
> device=09=09cd=09=09# CD
> device=09=09pass=09=09# Passthrough device (direct SCSI access)
>=20
> # RAID controllers interfaced to the SCSI subsystem
> device=09=09dpt=09=09# DPT Smartcache - See LINT for options!
> options=09=09DPT_LOST_IRQ
>=20
>=20
> # atkbdc0 controls both the keyboard and the PS/2 mouse
> device=09=09atkbdc0=09at isa? port IO_KBD
> device=09=09atkbd0=09at atkbdc? irq 1 flags 0x1
> device=09=09psm0=09=09at atkbdc? irq 12
>=20
> device=09=09vga0=09=09at isa?
> options=09=09VESA
>=20
> # splash screen/screen saver
> pseudo-device=09splash
>=20
> #Video Capture
> device=09=09smbus
> device=09=09iicbus
> device=09=09iicbb
> device=09=09bktr
>=20
> #Sound
> device=09=09pcm
> device=09=09sbc0=09at isa? port 0x220 irq 5 drq 1 flags 0x15
>=20
> pseudo-device=09speaker
>=20
>=20
> # syscons is the default console driver, resembling an SCO console
> device=09=09sc0=09at isa? flags 0x100
> options=09=09SC_HISTORY_SIZE=3D200
> options=09=09SC_DISABLE_REBOOT
>=20
>=20
>=20
> # Floating point support - do not disable.
> device=09=09npx0=09at nexus? port IO_NPX irq 13
>=20
> # Serial (COM) ports
> device=09=09sio0=09at isa? port IO_COM1 flags 0x10 irq 4
> device=09=09sio1=09at isa? port IO_COM2 irq 3
>=20
>=20
> # Parallel port
> device=09=09ppc0=09at isa? irq 7
> device=09=09ppbus=09=09# Parallel port bus (required)
> device=09=09lpt=09=09# Printer
> device=09=09ppi=09=09# Parallel port interface device
>=20
>=20
>=20
> # 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 NI=
Cs!
> device=09=09miibus=09=09# MII bus support
>=20
> # ISA Ethernet NICs.
> device=09=09ep
>=20
> # The probe order of these is presently determined by i386/isa/isa_compat=
=2Ec.
> device=09=09ie0=09at isa? port 0x300 irq 10 iomem 0xd0000
> #device=09=09le0=09at isa? port 0x300 irq 5 iomem 0xd0000
> device=09=09lnc0=09at isa? port 0x280 irq 10 drq 0
> device=09=09cs0=09at isa? port 0x300
> device=09=09sn0=09at isa? port 0x300 irq 10
>=20
> # Pseudo devices - the number indicates how many units to allocate.
> pseudo-device=09loop=09=09# Network loopback
> pseudo-device=09ether=09=09# Ethernet support
> pseudo-device=09tun=09=09# Packet tunnel.
> pseudo-device=09pty=09=09# Pseudo-ttys (telnet etc)
> pseudo-device=09md=09=09# Memory "disks"
> pseudo-device=09gif=094=09# IPv6 and IPv4 tunneling
> pseudo-device=09faith=091=09# IPv6-to-IPv4 relaying (translation)
>=20
> # The `bpf' pseudo-device enables the Berkeley Packet Filter.
> # Be aware of the administrative consequences of enabling this!
> pseudo-device=09bpf=09=09#Berkeley packet filter
>=20
> # USB support
> device=09=09uhci=09=09# UHCI PCI->USB interface
> device=09=09ohci=09=09# OHCI PCI->USB interface
> device=09=09usb=09=09# USB Bus (required)
> device=09=09ugen=09=09# Generic
> device=09=09uhid=09=09# "Human Interface Devices"
> device=09=09ukbd=09=09# Keyboard
> device=09=09ulpt=09=09# Printer
> device=09=09umass=09=09# Disks/Mass storage - Requires scbus and da
> device=09=09ums=09=09# Mouse
> device=09=09uscanner=09# Scanners
>=20
> #######################################################
>=20
>=20
> So why put all this? Because I think something is terribly wrong.
> The box has 256MB of RAM but as I look at the memory utilization
> all the RAM is used and swap may go to 1%(total swap 515MB)  Even after
> closing the apps my mem does not come down. No errors are reported :(
> Is that a memory leak?
> Oh, using KDE 2.1.1.
> Nothing major running just normal use, like browsing
> the www or using GTV Mpeg player. Even on console mode, since i dont boot
> to KDE, a simple ls command will be noticeably slow.  Perhaps, this is
> normal !
>=20
> I have been doing some reading, searching newsgroups and asking friends.
> But I haven=92t been looking in the right places since I still have no id=
ea of
> the problem.
>=20
> I am not asking for anybody to do the work for me but simply to point me =
in
> the right direction. All the junk I included was for information and mayb=
e
> someone will see what is not obvious to me.
>=20
> Also, I have installed the OS like 5 times, build world just as many and
> hack
> the kernel another 8.
>=20
> Thanks for listening,
> sorry about the whining, just a little tired.
>=20
>=20
>   Copyright (c) 1992-2001 The FreeBSD Project.
>   Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 199=
4
>          The Regents of the University of California. All rights reserved=
=2E
>   FreeBSD 4.3-STABLE #0: Thu May  3 01:09:29 CDT 2001
>       root@******.iastate.edu:/usr/obj/usr/src/sys/*******
>   Timecounter "i8254"  frequency 1193182 Hz
>   Timecounter "TSC"  frequency 501139856 Hz
>   CPU: AMD-K6(tm) 3D processor (501.14-MHz 586-class CPU)
>     Origin =3D "AuthenticAMD"  Id =3D 0x58c  Stepping =3D 12
>     Features=3D0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
>     AMD Features=3D0x80000800<SYSCALL,3DNow!>
>   real memory  =3D 268435456 (262144K bytes)
>   config> di sn0
>   config> di lnc0
>   config> di ie0
>   config> di fe0
>   No such device: fe0
>   Invalid command or syntax.  Type `?' for help.
>   config> di ed0
>   No such device: ed0
>   Invalid command or syntax.  Type `?' for help.
>   config> di cs0
>   config> q
>   avail memory =3D 257515520 (251480K bytes)
>   Preloaded elf kernel "kernel" at 0xc03a6000.
>   Preloaded userconfig_script "/boot/kernel.conf" at 0xc03a609c.
>   VESA: v3.0, 16320k memory, flags:0x1, mode table:0xc0335b42 (1000022)
>   VESA: STB Systems, Inc
>   K6-family MTRR support enabled (2 registers)
>   md0: Malloc disk
>   npx0: <math processor> on motherboard
>   npx0: INT 16 interface
>   pcib0: <Host to PCI bridge> on motherboard
>   pci0: <PCI bus> on pcib0
>   pcib2: <VIA 82C598MVP (Apollo MVP3) PCI-PCI (AGP) bridge> at device 1.0=
 on
>   pci0 pci1: <PCI bus> on pcib2
>   pci1: <NVidia Riva TNT graphics accelerator> at 0.0 irq 11
>   isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
>   isa0: <ISA bus> on isab0
>   atapci0: <VIA 82C686 ATA66 controller> port 0xd000-0xd00f at device 7.1=
 on
>   pci0 ata0: at 0x1f0 irq 14 on atapci0
>   ata1: at 0x170 irq 15 on atapci0
>   uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 10 at device =
7.2
>  on pci0
>   usb0: <VIA 83C572 USB controller> on uhci0
>   usb0: USB revision 1.0
>   uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>   uhub0: 2 ports with 2 removable, self powered
>   uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 10 at device =
7.3
>  on pci0
>   usb1: <VIA 83C572 USB controller> on uhci1
>   usb1: USB revision 1.0
>   uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>   uhub1: 2 ports with 2 removable, self powered
>   bktr0: <BrookTree 848> mem 0xe4800000-0xe4800fff irq 3 at device 9.0 on
> pci0
>   iicbb0: <I2C generic bit-banging driver> on bti2c0
>   iicbus0: <Philips I2C bus> on iicbb0 master-only
>   smbus0: <System Management Bus> on bti2c0
>   bktr0: Detected a DPL34-1@-@0 at 0x84
>   bktr0: Intel Smart Video III/VideoLogic Captivator PCI, <no> tuner,
> dpl3518a dolby.
>   pcm0: <Creative EMU10K1> port 0xdc00-0xdc1f irq 4 at device 10.0 on pci=
0
>   dpt0: <DPT Caching SCSI RAID Controller> port 0x500-0x51f irq 11 at dev=
ice
>  12.0 on pci0
>   dpt0: DPT PM2024A/9X FW Rev. 07CK, 1 channel, 64 CCBs
>   pcib1: <Host to PCI bridge> on motherboard
>   pci2: <PCI bus> on pcib1
>   ep0: <3Com 3C509-TPO EtherLink III> at port 0x300-0x30f irq 5 on isa0
>   ep0: Ethernet address *************
>   atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
>   atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
>   kbd0 at atkbd0
>   psm0: <PS/2 Mouse> irq 12 on atkbdc0
>   psm0: model IntelliMouse Explorer, device ID 4
>   vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on is=
a0
>   sc0: <System console> at flags 0x100 on isa0
>   sc0: VGA <16 virtual consoles, flags=3D0x300>
>   sio0: configured irq 4 not in bitmap of probed irqs 0
>   sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
>   sio0: type 8250
>   sio1: configured irq 3 not in bitmap of probed irqs 0
>   ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
>   ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
>   ppc0: FIFO with 16/16/8 bytes threshold
>   ppbus0: IEEE1284 device found /NIBBLE/ECP
>   Probing for PnP devices on ppbus0:
>   ppbus0: <HEWLETT-PACKARD DESKJET 720C> SCP,VLINK
>   lpt0: <Printer> on ppbus0
>   lpt0: Interrupt-driven port
>   ppi0: <Parallel I/O> on ppbus0
>   ad0: 19574MB <WDC WD205BA> [39770/16/63] at ata0-master UDMA66
>   ad1: 9671MB <WDC AC310100B> [19650/16/63] at ata0-slave UDMA33
>   afd0: 120MB <LS-120 CSMO 05 UHD Floppy> [963/8/32] at ata1-slave using
> PIO2
>   Waiting 15 seconds for SCSI devices to settle
>   Mounting root from ufs:/dev/ad1s1a
>   cd0 at dpt0 bus 0 target 6 lun 0
>   cd0: <SAF CD-R4012 6.0N> Removable CD-ROM SCSI-2 device
>   cd0: Attempt to query device size failed: NOT READY, Medium not present
>   pid 312 (artsd), uid 1001: exited on signal 11 (core dumped)
>=20
>=20
>=20
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
>=20



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0105031816230.82281-100000>