Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 May 2001 17:01:11 -0500
From:      "Ramon A Hermon" <rahermon@iastate.edu>
To:        <freebsd-stable@FreeBSD.org>
Subject:   Mem Use
Message-ID:  <003701c0d41c$91c08520$5103ba81@cs.iastate.edu>

next in thread | raw e-mail | index | archive | help
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:

########################################
machine	i386
cpu		I586_CPU
ident	 	*****
maxusers 	100

options 	MATH_EMULATE	#Support for x87 emulation
options 	INET			#InterNETworking
options 	INET6			#IPv6 communications protocols
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	MFS			#Memory Filesystem
options 	MD_ROOT		#MD is a potential root device
options 	MSDOSFS		#MSDOS Filesystem
options 	CD9660		#ISO 9660 Filesystem
options 	CD9660_ROOT		#CD-ROM usable as root, CD9660 required
options 	PROCFS		#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=15000	#Delay (in ms) before probing SCSI
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
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 	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	TCP_DROP_SYNFIN	#drop TCP packets with SYN+FIN
options	TCP_RESTRICT_RST	#restrict emission of TCP RST
options	DDB
options	NTFS
options 	USER_LDT		#allow user-level control of i386 ldt

device		isa
device		eisa
device		pci

# ATA and ATAPI devices
device		ata0	at isa? port IO_WD1 irq 14
device		ata1	at isa? port IO_WD2 irq 15
device		ata
device		atadisk		# ATA disk drives
device		atapicd		# ATAPI CDROM drives
device		atapifd		# ATAPI floppy drives
device		atapist		# ATAPI tape drives
options 	ATA_STATIC_ID		#Static device numbering


device		adv0	at isa?
device		adw
device		bt0	at isa?
device		aha0	at isa?
device		aic0	at isa?


# 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		dpt		# DPT Smartcache - See LINT for options!
options		DPT_LOST_IRQ


# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1 flags 0x1
device		psm0		at atkbdc? irq 12

device		vga0		at isa?
options		VESA

# splash screen/screen saver
pseudo-device	splash

#Video Capture
device		smbus
device		iicbus
device		iicbb
device		bktr

#Sound
device		pcm
device		sbc0	at isa? port 0x220 irq 5 drq 1 flags 0x15

pseudo-device	speaker


# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? flags 0x100
options		SC_HISTORY_SIZE=200
options		SC_DISABLE_REBOOT



# Floating point support - do not disable.
device		npx0	at nexus? port IO_NPX irq 13

# Serial (COM) ports
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3


# Parallel port
device		ppc0	at isa? irq 7
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		ppi		# Parallel port interface device



# 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

# ISA Ethernet NICs.
device		ep

# The probe order of these is presently determined by i386/isa/isa_compat.c.
device		ie0	at isa? port 0x300 irq 10 iomem 0xd0000
#device		le0	at isa? port 0x300 irq 5 iomem 0xd0000
device		lnc0	at isa? port 0x280 irq 10 drq 0
device		cs0	at isa? port 0x300
device		sn0	at isa? port 0x300 irq 10

# Pseudo devices - the number indicates how many units to allocate.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	md		# Memory "disks"
pseudo-device	gif	4	# IPv6 and IPv4 tunneling
pseudo-device	faith	1	# IPv6-to-IPv4 relaying (translation)

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-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
device		uscanner	# Scanners

#######################################################


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 !

I have been doing some reading, searching newsgroups and asking friends.
But I haven’t been looking in the right places since I still have no idea of
the problem.

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 maybe
someone will see what is not obvious to me.

Also, I have installed the OS like 5 times, build world just as many and
hack
the kernel another 8.

Thanks for listening,
sorry about the whining, just a little tired.


  Copyright (c) 1992-2001 The FreeBSD Project.
  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
  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 = "AuthenticAMD"  Id = 0x58c  Stepping = 12
    Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
    AMD Features=0x80000800<SYSCALL,3DNow!>
  real memory  = 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 = 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 pci0
  dpt0: <DPT Caching SCSI RAID Controller> port 0x500-0x51f irq 11 at device
 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 isa0
  sc0: <System console> at flags 0x100 on isa0
  sc0: VGA <16 virtual consoles, flags=0x300>
  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)



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?003701c0d41c$91c08520$5103ba81>