strace and CURRENT?

2003-03-03 Thread Atte Peltomaki
Installed from ports, I get 

strace: open("/proc/...", ...): No such file or directory
trouble opening proc file

Clues?


Atte Peltomäki
http://kameli.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message


Re: ACPI: -dp2 vs. -release

2003-02-21 Thread Atte Peltomaki
> > It is however possible to change this back to normal with
> > the "Fn" key (you probably have something similiar on your Toshiba) so
> > that the brightness back to "normal."  Dell laptops remember this, so
> > the next time I run the computer on batteries it will restore the
> > brightness to the level I had last time I used it on batteries.
> 
> The Fn-keys for turning the brightness up/down doesn't work with 5.0 on
> my laptop.

I had a Toshiba laptop, a rather new one (p3 500MHz) and IIRC the
powersave-modes (dimmer screen etc) adjusting via function keys didn't
ask anything from OS, BIOS trapped the keyboard signals and carried the
operation away.


Atte Peltomäki
http://kameli.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message


NFS lagging

2003-02-12 Thread Atte Peltomaki
I'm running FreeBSD 5.0-RELEASE on a dual P3 800MHz/512MB/Tekram DC-390
SCSI. Moved all my IDE disks on another 'puter to access via NFS. So I
ended up putting up a Debian server, because some of the disks were
already in ext2fs. Now I'm experiencing heavy lag on my desktop when I
use the NFS intensively, like copy a large file over. I get these 1-3
second pauses in everything, looks like ssh lag but it's local(!). Mouse
pointer in X doesn't seem affected, but even console lags if you type
in. 

I'm using NFSv3, tried it over TCP too, but since it's LAN, i dropped 
back to UDP.

Here's dmesg:

cam: using minimum scsi_delay (100ms)
Copyright (c) 1992-2003 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 5.0-RELEASE #4: Fri Feb  7 01:39:20 EET 2003
root@naama:/usr/src/sys/i386/compile/NAAMA
Preloaded elf kernel "/boot/kernel/kernel" at 0xc04e1000.
Preloaded elf module "/boot/kernel/mga.ko" at 0xc04e10a8.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc04e1150.
module_register: module pci/mga already exists!
Module pci/mga failed to register: 17
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (798.69-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  
Features=0x387fbff
real memory  = 536805376 (511 MB)
avail memory = 516177920 (492 MB)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): apic id:  0, version: 0x00040011, at 0xfee0
 cpu1 (AP):  apic id:  1, version: 0x00040011, at 0xfee0
 io0 (APIC): apic id:  2, version: 0x00178011, at 0xfec0
Initializing GEOMetry subsystem
Pentium Pro MTRR support enabled
npx0:  on motherboard
npx0: INT 16 interface
acpi0:  on motherboard
ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
Using $PIR table, 8 entries at 0xc00fdbc0
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_cpu0:  on acpi0
acpi_cpu1:  on acpi0
acpi_button0:  on acpi0
pcib0:  port 
0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0
pci0:  on pcib0
agp0:  mem 0xd000-0xd3ff at device 
0.0 on pci0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
drm0:  mem 
0xd700-0xd77f,0xd600-0xd6003fff,0xd400-0xd5ff irq 11 at device 0.0 
on pci1
info: [drm] AGP at 0xd000 64MB
info: [drm] Initialized mga 3.0.2 20010321 on minor 0
isab0:  at device 7.0 on pci0
isa0:  on isab0
pci0:  at device 7.4 (no driver attached)
sym0: <895> port 0xdc00-0xdcff mem 0xda00-0xda000fff,0xda001000-0xda0010ff irq 15 
at device 10.0 on pci0
sym0: Tekram NVRAM, ID 7, Fast-40, LVD, parity checking
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xe000-0xe07f mem 0xda002000-0xda00207f 
irq 15 at device 11.0 on pci0
xl0: Ethernet address: 00:50:da:df:09:7b
miibus0:  on xl0
xlphy0: <3c905C 10/100 internal PHY> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcm0:  port 0xe400-0xe41f irq 10 at device 12.0 on pci0
speaker0 port 0x61 on acpi0
fdc0:  port 0x3f7,0x3f0-0x3f5 
irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
atkbdc0:  port 0x64,0x60 irq 1 on acpi0
atkbd0:  flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0:  irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
orm0:  at iomem 0xca000-0xca7ff,0xc8000-0xc9fff,0xc-0xc7fff on isa0
sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
Timecounters tick every 10.000 msec
acpi_cpu: CPU throttling enabled, 2 steps from 100% to 50.0%
da0 at sym0 bus 0 target 3 lun 0
da0:  Fixed Direct Access SCSI-3 device 
da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
SMP: AP CPU #1 Launched!
cd0 at sym0 bus 0 target 6 lun 0
cd0:  Removable CD-ROM SCSI-2 device 
cd0: 20.000MB/s transfers (20.000MHz, offset 16)
cd0: Attempt to query device size failed: NOT READY, Medium not present
Mounting root from ufs:/dev/da0s1a


Thanks for any help,


Atte Peltomäki
http://kameli.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: FreeBSD 5.0 as SOHO firewall, gateway -- STABLE?

2003-02-11 Thread Atte Peltomaki
> I have been watching this list and I have not seen much talk about the
> stability of FreeBSD 5.0 (RELENG_5_0) or of its use as a server?  I did see
> that some people have upgraded their 4.7 servers to 5.0.  Can anybody relate
> their experience with the OS release?  I am looking for cases in particular
> for SOHO firewall/gateway environments.  I have been waiting for Java and it
> looks as if this release just might offer the features I need.

http://www.freebsd.org/ says:

New Technology Release: 5.0
Production Release: 4.7

If this isn't enough to convince you one way or other, ask yourself:
What feature do your servers really need that only 5.0 has? 


Atte Peltomäki
http://kameli.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Performance problems with 5.0-RELEASE

2003-01-27 Thread Atte Peltomaki
> > If it's long enough to pause the console noticibly, the next
> > thing to try is breaking to the debugger -- which might require
> > an NMI card -- to see what code it's stuck in during the pause.
> 
> It's noticeable - if you type under heavy load in console, you
> experience similar to ssh lag - you can't see what you type, but it
> appears a second later to the screen. 

Just as an update: I've been listening to quite a lot of techno/trance
music lately, and it scares me - every now and then xmms loses the beat
when playing, even if there was absolutely no other load. The pause is
so quick you can't really notice it elsewhere, but it's definetely
there. 

Continuing investigations.


Atte Peltomäki
http://kameli.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Performance problems with 5.0-RELEASE

2003-01-24 Thread Atte Peltomaki
> > > If you lean on the keyboard, or if you set up the network adapters
> > > as "entropy" sources, does the problem fix itself?
> > 
> > If you're thinking it's /dev/random blocking on him, 5.0's output never
> > blocks.  Its output is a PRNG periodically seeded from random data,
> > including interrupt timings and LAN traffic by default.
> 
> Mostly, I was thinking that the other suggestions (WITNESS,
> INVARIANTS, malloc flags) didn't really have any chance of
> being the cause of the lock-ups, and without some message on
> the console, it's unlikely that it was a driver tiemout, either.

No messages on console.

> If it's long enough to pause the console noticibly, the next
> thing to try is breaking to the debugger -- which might require
> an NMI card -- to see what code it's stuck in during the pause.

It's noticeable - if you type under heavy load in console, you
experience similar to ssh lag - you can't see what you type, but it
appears a second later to the screen. 

I've spoken about this issue on IRC for a few times, and ran into a guy
who said he was experiencing similar problems on 5.0-REL. Just to let
you know. 

I've tried adding HR< to malloc.conf and removing ALL unneccessary
options from the kernel, no help. 


Atte Peltomäki
http://kameli.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Performance problems with 5.0-RELEASE

2003-01-23 Thread Atte Peltomaki
I've used 5.0-RELEASE for few days now, and I've been experiencing some
serious performance problems. I haven't had the time to examine it more
closely, and frankly, I have no clue where to start looking for. Perhaps
someone knows what this is all about.

Description:

Every time machine is under heavy load (CPU, network, disks) it
completely jamms for fraction of a second for every ten seconds or so,
everything just stops and then continues. I noticed this while compiling
software and copying files over NFS while listening to MP3's, later
realized it wasn't just MP3's that lagged, but the whole machine,
including console and everything. 

Hardware:

dual p3 800MHz on Abit VP6
512MB RAM
Tekram DC-390U2W
SCSI-only (IDE-controllers disabled from BIOS)
SB Live!
3c905c NIC

dmesg:

Copyright (c) 1992-2003 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 5.0-RELEASE #0: Mon Jan 20 03:07:25 EET 2003
root@naama:/usr/src/sys/i386/compile/NAAMA
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0483000.
Preloaded elf module "/boot/kernel/snd_emu10k1.ko" at 0xc04830a8.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc0483158.
Preloaded elf module "/boot/kernel/mga.ko" at 0xc0483204.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc04832ac.
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (798.69-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  
Features=0x387fbff
real memory  = 536805376 (511 MB)
avail memory = 516567040 (492 MB)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): apic id:  0, version: 0x00040011, at 0xfee0
 cpu1 (AP):  apic id:  1, version: 0x00040011, at 0xfee0
 io0 (APIC): apic id:  2, version: 0x00178011, at 0xfec0
Initializing GEOMetry subsystem
Pentium Pro MTRR support enabled
npx0:  on motherboard
npx0: INT 16 interface
acpi0:  on motherboard
ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
Using $PIR table, 8 entries at 0xc00fdbc0
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_cpu0:  on acpi0
acpi_cpu1:  on acpi0
acpi_button0:  on acpi0
pcib0:  port 
0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0
pci0:  on pcib0
agp0:  mem 0xd000-0xd3ff at device 
0.0 on pci0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
drm0:  mem 
0xd700-0xd77f,0xd600-0xd6003fff,0xd400-0xd5ff irq 11 at device 0.0 
on pci1
info: [drm] AGP at 0xd000 64MB
info: [drm] Initialized mga 3.0.2 20010321 on minor 0
isab0:  at device 7.0 on pci0
isa0:  on isab0
pci0:  at device 7.4 (no driver attached)
sym0: <895> port 0xdc00-0xdcff mem 0xda00-0xda000fff,0xda001000-0xda0010ff irq 15 
at device 10.0 on pci0
sym0: Tekram NVRAM, ID 7, Fast-40, LVD, parity checking
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xe000-0xe07f mem 0xda002000-0xda00207f 
irq 15 at device 11.0 on pci0
xl0: Ethernet address: 00:50:da:df:09:7b
miibus0:  on xl0
xlphy0: <3c905C 10/100 internal PHY> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcm0:  port 0xe400-0xe41f irq 10 at device 12.0 on pci0
fdc0:  port 0x3f7,0x3f0-0x3f5 
irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
ppc0 port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppi0:  on ppbus0
atkbdc0:  port 0x64,0x60 irq 1 on acpi0
atkbd0:  flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0:  irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
orm0:  at iomem 0xca000-0xca7ff,0xc8000-0xc9fff,0xc-0xc7fff on isa0
sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
Timecounters tick every 10.000 msec
Waiting 3 seconds for SCSI devices to settle
acpi_cpu: CPU throttling enabled, 2 steps from 100% to 50.0%
SMP: AP CPU #1 Launched!
cd0 at sym0 bus 0 target 6 lun 0
cd0:  Removable CD-ROM SCSI-2 device 
cd0: 20.000MB/s transfers (20.000MHz, offset 16)
cd0: Attempt to query device size failed: NOT READY, Medium not present
da0 at sym0 bus 0 target 3 lun 0
da0:  Fixed Direct Access SCSI-3 device 
da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
Mounting root from ufs:/dev/da0s1a

kernel configuration:

Won't paste it all here now, but it's been stripped down to be as light 
as possible. 

modules:

Id Refs AddressS