Re: Relinking to create unique kernel... failed!

2023-01-13 Thread Nick Templeton
Thanks for the tips. I opened up the case and checked the cables,
nothing obviously damaged or poorly connected, but certainly dusty in
there. I reseated the cables and rebooted into single-user mode. fsck
-f on each partition didn't reveal any issues, but after rebooting
again the ahci0 errors went away. However, the reorder_kernel error
remained.

BUT your pointers got me to think "maybe the files in
/usr/share/relink/kernel/GENERIC.MP/ are corrupt and overwriting them
might fix things." I didn't know the best way to go about doing that,
so I forced an OS "update" via bsd.rd and what do you know, things
seem to be running smoothly again, relinking/reodering and everything.

I may have a failing harddrive, but for now this immediate problem
seems to be resolved.

Thanks!
-Nick

On Fri, Jan 13, 2023 at 2:00 PM Crystal Kolipe
 wrote:
>
> On Fri, Jan 13, 2023 at 11:45:31AM -0800, Philip Guenther wrote:
> > On Fri, Jan 13, 2023 at 10:59 AM Nick Templeton 
> > wrote:
> >
> > > Ever since upgrading my machine to 7.2 I've been unable to relink my
> > > kernel, anybody have any idea why?
> >
> >  ...
> >
> > > Running "/usr/libexec//reorder_kernel" manually resulted in a kernel 
> > > panic:
> > >
> > > mode = 0100600, inum = 7, fs = /tmp
> > > panic: ffs_valloc: dup alloc
> > > Stopped at db_enter+0x10: popq %rbp
> > >
> >
> > You have at least one filesystem with latent corruption.  You should reboot
> > in single-user mode and run fsck with the -f option on each partition.
>
> But it would be wise to check the hardware first, because he also mentions:
>
> > Rebooting the machine results in this at the login prompt:
> >
> > login: ahci0: attempting to idle device
> > ahci0: couldn't recover NCQ error, failing all outstanding commands.
> > ahci0: attempting to idle device
> > ahci0: couldn't recover NCQ error, failing all outstanding commands.
>
> This could be caused by a faulty sata cable, dirty connector, or something
> more serious.
>
> Probably not a great idea to get half way through an fsck and have the drive
> start failing commands.



Relinking to create unique kernel... failed!

2023-01-13 Thread Nick Templeton
Ever since upgrading my machine to 7.2 I've been unable to relink my
kernel, anybody have any idea why? I was reminded of this when I
attempted to apply the latest errata today:

$ doas syspatch
Get/Verify syspatch72-009_xserver... 100% |*|  4384 KB00:01
Installing patch 009_xserver
Get/Verify syspatch72-010_vmd.tgz 100% ||  2338   00:00
Installing patch 010_vmd
Get/Verify syspatch72-011_gpuinv.tgz 100% |*|   197 KB00:00
Installing patch 011_gpuinv
Get/Verify syspatch72-012_acme.tgz 100% |***| 40197   00:00
Installing patch 012_acme
Get/Verify syspatch72-013_tcp.tgz 100% ||   508 KB00:00
Installing patch 013_tcp
Relinking to create unique kernel... failed!
!!! "/usr/libexec/reorder_kernel" must be run manually to install the new kernel

Running "/usr/libexec//reorder_kernel" manually resulted in a kernel panic:

mode = 0100600, inum = 7, fs = /tmp
panic: ffs_valloc: dup alloc
Stopped at db_enter+0x10: popq %rbp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
* 47548 27451 0 0x13 0 4K sh
db_enter() at db_enter+0x10
panic (81f1612f) at panic+0xbf
ffs_inode_alloc(fd820bedf878,8180, fd81fe987008,
800022e4f528) at ffs_inode_alloc+0x42e
ufs_makeinode (8180, fd8200b73130,
800022e4f820,800022e4f850) at ufs_makeinode+0x79
ufs_create(800022e4f5d8) at ufs_create+0x3c
VOP CREATE (fd8200b73130,800022e4f820, 800022e4f850,
800022e4f630) at VOP_CREATE+0x3f
vn_open(800022e4f7f0, a03,180) at vn_open+0x162
doopenat (800022ba8a88, ff9c, 5d2b50be3b0, a02, 180,
800022e4f9d0) at doo penat+0x1cd
syscall(800022e4fa40) at syscall+0x35f
Xsyscall at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7c9820, count: 5
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports. Insufficient info makes it difficult to find and fix bugs.
ddb{4}> show panic
cpu4: ffs_valloc: dup alloc
ddb{4}) trace
db_enter() at db_enter+0x10
panic (81f1612f) at panic+0xbf|
ffs_inode_alloc(fd820bedf878,8180, fd81fe987008,
800022e4f528) at ffs_inode_alloc+0x42e
ufs_makeinode (8180,
fd8200b73130,800022e4f820,800022e4f850) at ufs_m ake
inode+0x79
ufs_create(800022e4f5d8) at ufs_create+0x3c
VOP_CREATE(fd8200b73130,800022e4f820,800022e4f850,800022e4f630)
at VOP_CREATE+0x3f
vn_open(800022e4f7f0, a03,180) at vn_open+0x162
doopenat (800022ba8a88, ff9c, 5d2b50be3b0, a02, 180,
800022e4f9d0) at doo penat+0x1cd
syscall(800022e4fa40) at syscall+0x35f
Xsyscall at Xsyscall+0x128
end of kernel end trace frame: 0x7f7c9820, count: -10
ddb{4}> mach ddbcpu 0
Stopped at x86_ipi_db+0x12: leave
x86_ipi_db(822c7ff0) at x86_ipi_db+0x12
x86_ipi_handler() at x86_ipi_handler+0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi +0x23
acpicpu_idle() at acpicpu_idle+0x203
sched_idle(822c7ff0) at sched_idle+0x280
end trace frame: 0x0, count: 10
ddb {0}> mach ddbcpu 1
Stopped at x86_ipi_db+0x12: leave
x86_ipi_db(800022509ff0) at x86_ipi_db+0x12
x86_ipi_handler() at x86_ipi_handler+0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_idle+0x203
sched_idle(800022509ff0) at sched_idle+0x280
end trace frame: 0x0, count: 10
ddb{1}> mach ddbcpu 2
Stopped at x86_ipi_db+0x12: leave
x86_ipi_db(800022512ff0) at x86_ipi_db+0x12
x86_ipi_handler() at x86_ipi_handler+0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_id le+0x203
sched_idle(800022512ff0) at sched_idle+0x280
end trace frame: 0x0, count: 10
ddb{2}> mach ddbcpu 3
Stopped at x86_ipi_db+0x12: leave
x86_ipi_db(80002251bff0) at x86_ipi_db+0x12
x86_ipi_handler() at x86_ipi_handler+0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_idle+0x203
sched_idle(80002251bff0) at sched_idle+0x280
end trace frame: 0x0, count: 10
ddb{3}> mach ddbcpu 5
Stopped at x86_ipi_db+0x12: leave
x86_ipi_db(80002252dff0) at x86_ipi_db+0x12
x86_ipi_handler() at x86_ipi_handler+0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_idle+0x203
sched_idle(80002252dff0) at sched_idle+0x280
end trace frame: 0x0, count: 10
ddb{5}) mach ddbcpu 6
Stopped at x86_ipi_db+0x12: leave
x86_ipi_db(800022536ff0) at x86_ipi_db+0x12
x86_ipi_handler() at x86_ipi_handler +0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_id le+0x203
sched_idle(800022536ff0) at sched_idle+0x280
end trace frame: 0x0, count: 10
ddb {6}) mach ddbcpu 7
Stopped at x86_ipi_db+0x12: leave
x86_ipi_db(80002253fff0) at x86_ipi_db+0x12
x86_ipi_handler() at x86_ipi_handler +0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_idle+0x203
sched_idle (80002253fff0) at sched_idle+0x280
end trace frame: 0x0, count: 10
ddb{7}>

(ps output from the kernel debugger is not copy/pasting well, but I
can provide it if it is truly necessary as mentioned on

SYBA SI-PEX40065 / Marvell 88SE9215 Support

2013-04-21 Thread Nick Templeton
Hi All,

Is there any chance for the SYBA SI-PEX40065
(http://www.sybausa.com/productInfo.php?iid=1375) SATA Controller Card
being supported? According to the product page it uses a Marvell
88SE9215 Controller
(http://www.marvell.com/storage/system-solutions/assets/Marvell-88SE92xx-002-product-brief.pdf)
if that's helpful at all.

Below is my dmesg with an external (eSATA) drive connected.

Any help is appreciated, thanks!

-Nick

OpenBSD 5.3-current (GENERIC) #121: Thu Apr  4 09:42:08 MDT 2013
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1022230528 (974MB)
avail mem = 987402240 (941MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf (63 entries)
bios0: vendor Dell Inc version 1.0.3 date 10/02/2006
bios0: Dell Inc Dimension E521
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP BOOT SSDT HPET MCFG SLIC APIC
acpi0: wakeup devices HUB0(S5) XVRA(S5) XVRB(S5) XVRC(S5) USB0(S3)
USB2(S3) AZAD(S5) MMAC(S5) MMCI(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: disabled
acpimcfg0 at acpi0 addr 0xf000, bus 0-255
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 Processor 3200+, 2004.45 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,SVM,EAPICSP,AMCR8
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 200MHz
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (HUB0)
acpicpu0 at acpi0: PSS
acpibtn0 at acpi0: PWRB
cpu0: PowerNow! K8 2004 MHz: speeds: 2000 1800 1000 MHz
pci0 at mainbus0 bus 0
NVIDIA C51 Host rev 0xa2 at pci0 dev 0 function 0 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 1 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 2 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 3 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 4 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 5 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 6 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 7 not configured
ppb0 at pci0 dev 2 function 0 NVIDIA C51 PCIE rev 0xa1
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 Intel PRO/1000 MT (82574L) rev 0x00:
apic 2 int 11, address 00:1b:21:ab:ce:c6
ppb1 at pci0 dev 3 function 0 NVIDIA C51 PCIE rev 0xa1
pci2 at ppb1 bus 2
ppb2 at pci0 dev 4 function 0 NVIDIA C51 PCIE rev 0xa1
pci3 at ppb2 bus 3
ahci0 at pci3 dev 0 function 0 vendor Marvell, unknown product
0x9215 rev 0x10: apic 2 int 5, AHCI 1.0
ahci0: failed to start port, cannot probe PMP
ahci0: device on port 1 didn't come ready, TFD: 0x180BSY
ahci0: failed to start port, cannot softreset
ahci0: unable to communicate with device on port 1
scsibus0 at ahci0: 32 targets
vga1 at pci0 dev 5 function 0 NVIDIA GeForce 6150 LE rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
NVIDIA MCP51 Host rev 0xa2 at pci0 dev 9 function 0 not configured
pcib0 at pci0 dev 10 function 0 NVIDIA MCP51 ISA rev 0xa3
nviic0 at pci0 dev 10 function 1 NVIDIA MCP51 SMBus rev 0xa3
iic0 at nviic0
spdmem0 at iic0 addr 0x52: 512MB DDR2 SDRAM non-parity PC2-4200CL5
spdmem1 at iic0 addr 0x53: 512MB DDR2 SDRAM non-parity PC2-4200CL5
iic1 at nviic0
NVIDIA MCP51 Memory rev 0xa3 at pci0 dev 10 function 2 not configured
ohci0 at pci0 dev 11 function 0 NVIDIA MCP51 USB rev 0xa3: apic 2
int 15, version 1.0, legacy support
ehci0 at pci0 dev 11 function 1 NVIDIA MCP51 USB rev 0xa3: apic 2 int 7
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 NVIDIA EHCI root hub rev 2.00/1.00 addr 1
pciide0 at pci0 dev 14 function 0 NVIDIA MCP51 SATA rev 0xa1: DMA
pciide0: using apic 2 int 11 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: ST3500630AS
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
wd1 at pciide0 channel 1 drive 0: HDS728080PLA380
wd1: 16-sector PIO, LBA48, 76293MB, 15625 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 6
pciide1 at pci0 dev 15 function 0 NVIDIA MCP51 SATA rev 0xa1: DMA
pciide1: using apic 2 int 10 for native-PCI interrupt
wd2 at pciide1 channel 0 drive 0: ST2000DM001-1CH164
wd2: 16-sector PIO, LBA48, 1907729MB, 3907029168 sectors
wd2(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
wd3 at pciide1 channel 1 drive 0: Hitachi HDS5C3020ALA632
wd3: 16-sector PIO, LBA48, 1907729MB, 3907029168 sectors
wd3(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 6
ppb3 at pci0 dev 16 function 0 NVIDIA MCP51 PCI-PCI rev 0xa2
pci4 at ppb3 bus 4
bce0 at pci4 

Re: Considering laptops: Thinkpad T410, T420 others?

2012-04-27 Thread Nick Templeton
I have a ThinkPad T410 and it works great. It does still have the console/X
issues you refer to as of the April 23rd amd64 snapshot though.

-Nick
On Apr 27, 2012 11:34 AM, Ian Dotson izdot...@gmail.com wrote:

 I'm looking for a laptop that will run -current without too much
 fiddling. Currently considering a Thinkpad T410 or T420 -- anyone who
 has one want to share how well it works? Have recent changes fixed
 problems[1] with the console after starting X?

 I'd be interested in hearing about success stories with other Core i5
 or i7 laptops as well. (I know I should be avoiding configurations
 with nvidia video.)

 Thanks,
 Ian

 1. http://marc.info/?l=openbsd-miscm=132639015131933w=2



Re: Odd Network Lockups

2012-02-29 Thread Nick Templeton
This is no longer an issue for me. Not because I was able to track down the
issue and fix it, but because this machine has been repurposed and the
replacement machine (very different hardware) doesn't exhibit the symptoms.
Thanks to those that tried to help!

-Nick
 On Feb 1, 2012 6:20 PM, Nick Templeton n...@nicktempleton.com wrote:

 Anybody else have any suggestions as to what I can do to further
 troubleshoot this? After a recent upgrade the issue still exists (I've
 provided the latest dmesg). I've taken to adding a periodic reboot to
 my cron jobs so that I don't get stuck without network access while
 I'm away from the machine, that's obviously not a real solution.

 -Nick

 OpenBSD 5.1-beta (GENERIC.MP) #189: Thu Jan 26 16:06:17 MST 2012
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 RTC BIOS diagnostic error 11memory_size
 real mem = 4216655872 (4021MB)
 avail mem = 4090253312 (3900MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0450 (71 entries)
 bios0: vendor Dell Inc. version 2.4.0 date 05/24/2007
 bios0: Dell Inc. Dell DXC061
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP SSDT APIC BOOT MCFG HPET DUMY SLIC SSDT SSDT SSDT
 acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI4(S5) PCI2(S5) PCI3(S5)
 PCI1(S5) PCI5(S5) PCI6(S5) MOU_(S3) USB0(S3) USB1(S3) USB2(S3)
 USB3(S3) USB4(S3)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz, 1862.28 MHz
 cpu0:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF
 cpu0: 2MB 64b/line 8-way L2 cache
 cpu0: apic clock running at 266MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz, 1862.02 MHz
 cpu1:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF
 cpu1: 2MB 64b/line 8-way L2 cache
 ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 8
 acpimcfg0 at acpi0 addr 0xe000, bus 0-255
 acpihpet0 at acpi0: 14318179 Hz
 acpiprt0 at acpi0: bus 3 (PCI4)
 acpiprt1 at acpi0: bus 2 (PCI2)
 acpiprt2 at acpi0: bus -1 (PCI3)
 acpiprt3 at acpi0: bus 1 (PCI1)
 acpiprt4 at acpi0: bus -1 (PCI5)
 acpiprt5 at acpi0: bus -1 (PCI6)
 acpiprt6 at acpi0: bus 0 (PCI0)
 acpicpu0 at acpi0: PSS
 acpicpu1 at acpi0: PSS
 acpibtn0 at acpi0: VBTN
 cpu0: Enhanced SpeedStep 1862 MHz: speeds: 1867, 1600 MHz
 memory map conflict 0xbf655c00/0x9aa400
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 Intel 82G965 Host rev 0x02
 ppb0 at pci0 dev 1 function 0 Intel 82G965 PCIE rev 0x02: msi
 pci1 at ppb0 bus 1
 em0 at pci1 dev 0 function 0 Intel PRO/1000 MT (82574L) rev 0x00:
 msi, address 00:1b:21:ab:bf:ca
 vga1 at pci0 dev 2 function 0 Intel 82G965 Video rev 0x02
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 intagp0 at vga1
 agp0 at intagp0: aperture at 0xc000, size 0x1000
 inteldrm0 at vga1: apic 8 int 16
 drm0 at inteldrm0
 Intel 82G965 Video rev 0x02 at pci0 dev 2 function 1 not configured
 em1 at pci0 dev 25 function 0 Intel ICH8 IFE rev 0x02: msi, address
 00:16:76:c1:5b:1f
 uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x02: apic 8 int 16
 uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x02: apic 8 int 17
 ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x02: apic 8 int 22
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
 azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x02: msi
 azalia0: codecs: Conexant/0x2bfa, Sigmatel STAC9227X, using Sigmatel
 STAC9227X
 audio0 at azalia0
 ppb1 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x02: msi
 pci2 at ppb1 bus 2
 em2 at pci2 dev 0 function 0 Intel PRO/1000 MT (82574L) rev 0x00:
 msi, address 00:1b:21:ab:d3:53
 uhci2 at pci0 dev 29 function 0 Intel 82801H USB rev 0x02: apic 8 int 23
 uhci3 at pci0 dev 29 function 1 Intel 82801H USB rev 0x02: apic 8 int 17
 uhci4 at pci0 dev 29 function 2 Intel 82801H USB rev 0x02: apic 8 int 18
 ehci1 at pci0 dev 29 function 7 Intel 82801H USB rev 0x02: apic 8 int 23
 usb1 at ehci1: USB revision 2.0
 uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
 ppb2 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xf2
 pci3 at ppb2 bus 3
 TI TSB43AB22 FireWire rev 0x00 at pci3 dev 10 function 0 not configured
 pcib0 at pci0 dev 31 function 0 Intel 82801HH LPC rev 0x02
 ahci0 at pci0 dev 31 function 2 Intel 82801H AHCI rev 0x02: msi, AHCI 1.1
 scsibus0 at ahci0: 32 targets
 sd0 at scsibus0 targ 0 lun 0: ATA, SAMSUNG SP2504C, VT10 SCSI3
 0/direct fixed t10.ATA_SAMSUNG_SP2504C_S09QJ1SP112542
 sd0

Re: smartphones and managing openbsd servers

2012-02-20 Thread Nick Templeton
I use ConnectBot to SSH into servers on my Google/Samsung Nexus S 4G
running CyanogenMod with the Hacker's Keyboard. It works great in a
pinch, but I wouldn't want to spend all day using it to admin a
server.

-Nick

On Sat, Feb 18, 2012 at 5:06 PM, Marcos Ariel Laufer
mar...@ipversion4.com wrote:
 Hello list,
 This might not be OpenBSD specific, but maybe users can share their
 experiences with smartphones an managing OpenBSD servers.
 So far, my smartphone has been a very usefull tool to manage my OpenBSD
 servers. Currently i am using a Palm Treo 680 with some lousy ssh
 application to access my servers, it is usefull, but this is getting pretty
 ancient, doesn't have wifi for exaple, and i would like that feature on a
 smartphone. I also love the touch screen.
 What newer smartphones do you recommend for using also as a tool for
 managing OpenBSD servers (maybe windogs too) ? What experiences had you had
 with smartphones and OpenBSD managing?

 Best regards,
 Marcos



Re: Odd Network Lockups

2012-02-01 Thread Nick Templeton
spdmem3 at iic0 addr 0x53: 1GB DDR2 SDRAM non-parity PC2-5300CL5
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 Intel UHCI root hub rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
mtrr: Pentium Pro MTRR support
uhidev0 at uhub5 port 1 configuration 1 interface 0 Logitech USB
Receiver rev 1.10/9.10 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 5 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub5 port 2 configuration 1 interface 0 Logitech USB
Receiver rev 1.10/10.20 addr 3
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub5 port 2 configuration 1 interface 1 Logitech USB
Receiver rev 1.10/10.20 addr 3
uhidev2: iclass 3/0, 2 report ids
uhid0 at uhidev2 reportid 1: input=2, output=0, feature=0
uhid1 at uhidev2 reportid 2: input=1, output=0, feature=0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (4a10c7c95af7b910.a) swap on sd0b dump on sd0b


On Thu, Jan 5, 2012 at 6:06 PM, Nick Templeton n...@nicktempleton.com
wrote:
 Okay, so finally I got around to disabling the vether/tun/bridge
 interfaces and mbuf usage still seems to be climbing. Here's the
 output from 'netstat -m' and 'systat mbuf' from the morning of Jan.
 3rd (an hour or so after a reboot):

 79 mbufs in use:
47 mbufs allocated to data
24 mbufs allocated to packet headers
8 mbufs allocated to socket names and addresses
 45/64/8192 mbuf 2048 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 4096 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 8192 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 9216 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 12288 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 16384 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 65536 byte clusters in use (current/peak/max)
 356 Kbytes allocated to network (30% in use)
 0 requests for memory denied
 0 requests for memory delayed
 0 calls to protocol drain routines

1 usersLoad 0.37 0.32 0.27 Tue Jan  3 10:02:04
2012

 IFACE LIVELOCKS  SIZE ALIVE   LWM   HWM   CWM
 System0   25680   9
   2k45  32
 lo0
 em02k 9 4   256 9
 em12k13 4   25613
 em22k 8 4   256 8
 enc0
 pflog0

 And here the output from the evening of Jan. 5th (with no reboot since the
3rd):

 3390 mbufs in use:
3349 mbufs allocated to data
24 mbufs allocated to packet headers
17 mbufs allocated to socket names and addresses
 3347/3398/8192 mbuf 2048 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 4096 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 8192 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 9216 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 12288 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 16384 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 65536 byte clusters in use (current/peak/max)
 7904 Kbytes allocated to network (95% in use)
 0 requests for memory denied
 0 requests for memory delayed
 0 calls to protocol drain routines

2 usersLoad 0.34 0.25 0.18 Thu Jan  5 18:00:30
2012

 IFACE LIVELOCKS  SIZE ALIVE   LWM   HWM   CWM
 System0   256  3382 229
   2k  33471699
 lo0
 em02k11 4   25611
 em12k12 4   25612
 em22k 8 4   256 8
 enc0
 pflog0

 -Nick

 On Mon, Dec 19, 2011 at 4:22 AM, Stuart Henderson s...@spacehopper.org
wrote:
 I just noticed the vether/tun/bridge in your systat output.
 To try and narrow things down, are you able to disable these
 to see if there's any improvement?


 On 2011-12-08, Nick Templeton n...@nicktempleton.com wrote:
 I think you're right Stuart, raising kern.maxclusters is only buying me
time.

 The only sysctl values I've modified are:
 net.inet.ip.forwarding=1
 ddb.panic=0
 kern.maxclusters=8192

 netstat -m shows increasing values over time, here's the output from
 this morning:

 3510 mbufs in use:
   3479 mbufs allocated to data
   24 mbufs allocated to packet headers
   7 mbufs allocated to socket names

Re: Odd Network Lockups

2012-01-05 Thread Nick Templeton
Okay, so finally I got around to disabling the vether/tun/bridge
interfaces and mbuf usage still seems to be climbing. Here's the
output from 'netstat -m' and 'systat mbuf' from the morning of Jan.
3rd (an hour or so after a reboot):

79 mbufs in use:
47 mbufs allocated to data
24 mbufs allocated to packet headers
8 mbufs allocated to socket names and addresses
45/64/8192 mbuf 2048 byte clusters in use (current/peak/max)
0/8/8192 mbuf 4096 byte clusters in use (current/peak/max)
0/8/8192 mbuf 8192 byte clusters in use (current/peak/max)
0/8/8192 mbuf 9216 byte clusters in use (current/peak/max)
0/8/8192 mbuf 12288 byte clusters in use (current/peak/max)
0/8/8192 mbuf 16384 byte clusters in use (current/peak/max)
0/8/8192 mbuf 65536 byte clusters in use (current/peak/max)
356 Kbytes allocated to network (30% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

1 usersLoad 0.37 0.32 0.27 Tue Jan  3 10:02:04
2012

IFACE LIVELOCKS  SIZE ALIVE   LWM   HWM   CWM
System0   25680   9
   2k45  32
lo0
em02k 9 4   256 9
em12k13 4   25613
em22k 8 4   256 8
enc0
pflog0

And here the output from the evening of Jan. 5th (with no reboot since the
3rd):

3390 mbufs in use:
3349 mbufs allocated to data
24 mbufs allocated to packet headers
17 mbufs allocated to socket names and addresses
3347/3398/8192 mbuf 2048 byte clusters in use (current/peak/max)
0/8/8192 mbuf 4096 byte clusters in use (current/peak/max)
0/8/8192 mbuf 8192 byte clusters in use (current/peak/max)
0/8/8192 mbuf 9216 byte clusters in use (current/peak/max)
0/8/8192 mbuf 12288 byte clusters in use (current/peak/max)
0/8/8192 mbuf 16384 byte clusters in use (current/peak/max)
0/8/8192 mbuf 65536 byte clusters in use (current/peak/max)
7904 Kbytes allocated to network (95% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

2 usersLoad 0.34 0.25 0.18 Thu Jan  5 18:00:30
2012

IFACE LIVELOCKS  SIZE ALIVE   LWM   HWM   CWM
System0   256  3382 229
   2k  33471699
lo0
em02k11 4   25611
em12k12 4   25612
em22k 8 4   256 8
enc0
pflog0

-Nick

On Mon, Dec 19, 2011 at 4:22 AM, Stuart Henderson s...@spacehopper.org
wrote:
 I just noticed the vether/tun/bridge in your systat output.
 To try and narrow things down, are you able to disable these
 to see if there's any improvement?


 On 2011-12-08, Nick Templeton n...@nicktempleton.com wrote:
 I think you're right Stuart, raising kern.maxclusters is only buying me
time.

 The only sysctl values I've modified are:
 net.inet.ip.forwarding=1
 ddb.panic=0
 kern.maxclusters=8192

 netstat -m shows increasing values over time, here's the output from
 this morning:

 3510 mbufs in use:
   3479 mbufs allocated to data
   24 mbufs allocated to packet headers
   7 mbufs allocated to socket names and addresses
 3477/3522/8192 mbuf 2048 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 4096 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 8192 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 9216 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 12288 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 16384 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 65536 byte clusters in use (current/peak/max)
 8204 Kbytes allocated to network (95% in use)
 0 requests for memory denied
 0 requests for memory delayed
 0 calls to protocol drain routines

 ...and here it is from this evening:

 3718 mbufs in use:
3687 mbufs allocated to data
24 mbufs allocated to packet headers
7 mbufs allocated to socket names and addresses
 3685/3734/8192 mbuf 2048 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 4096 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 8192 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 9216 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 12288 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 16384 byte clusters in use (current/peak/max)
 0/8/8192 mbuf 65536 byte clusters in use (current/peak/max)
 8628 Kbytes allocated to network (96% in use)
 0 requests for memory denied
 0 requests for memory delayed
 0 calls to protocol drain routines

 Here's the output from systat mbuf:

 1 usersLoad 0.65 0.79 0.76 Wed Dec  7 18:15:12
 2011

 IFACE LIVELOCKS  SIZE ALIVE   LWM   HWM   CWM
 System0   256  3716 242
2k  36861867
 lo0
 em0

Re: Odd Network Lockups

2011-12-20 Thread Nick Templeton
I'll give it a shot.
On Dec 19, 2011 4:27 AM, Stuart Henderson s...@spacehopper.org wrote:

 I just noticed the vether/tun/bridge in your systat output.
 To try and narrow things down, are you able to disable these
 to see if there's any improvement?


 On 2011-12-08, Nick Templeton n...@nicktempleton.com wrote:
  I think you're right Stuart, raising kern.maxclusters is only buying me
 time.
 
  The only sysctl values I've modified are:
  net.inet.ip.forwarding=1
  ddb.panic=0
  kern.maxclusters=8192
 
  netstat -m shows increasing values over time, here's the output from
  this morning:
 
  3510 mbufs in use:
3479 mbufs allocated to data
24 mbufs allocated to packet headers
7 mbufs allocated to socket names and addresses
  3477/3522/8192 mbuf 2048 byte clusters in use (current/peak/max)
  0/8/8192 mbuf 4096 byte clusters in use (current/peak/max)
  0/8/8192 mbuf 8192 byte clusters in use (current/peak/max)
  0/8/8192 mbuf 9216 byte clusters in use (current/peak/max)
  0/8/8192 mbuf 12288 byte clusters in use (current/peak/max)
  0/8/8192 mbuf 16384 byte clusters in use (current/peak/max)
  0/8/8192 mbuf 65536 byte clusters in use (current/peak/max)
  8204 Kbytes allocated to network (95% in use)
  0 requests for memory denied
  0 requests for memory delayed
  0 calls to protocol drain routines
 
  ...and here it is from this evening:
 
  3718 mbufs in use:
 3687 mbufs allocated to data
 24 mbufs allocated to packet headers
 7 mbufs allocated to socket names and addresses
  3685/3734/8192 mbuf 2048 byte clusters in use (current/peak/max)
  0/8/8192 mbuf 4096 byte clusters in use (current/peak/max)
  0/8/8192 mbuf 8192 byte clusters in use (current/peak/max)
  0/8/8192 mbuf 9216 byte clusters in use (current/peak/max)
  0/8/8192 mbuf 12288 byte clusters in use (current/peak/max)
  0/8/8192 mbuf 16384 byte clusters in use (current/peak/max)
  0/8/8192 mbuf 65536 byte clusters in use (current/peak/max)
  8628 Kbytes allocated to network (96% in use)
  0 requests for memory denied
  0 requests for memory delayed
  0 calls to protocol drain routines
 
  Here's the output from systat mbuf:
 
  1 usersLoad 0.65 0.79 0.76 Wed Dec  7
 18:15:12
  2011
 
  IFACE LIVELOCKS  SIZE ALIVE   LWM   HWM   CWM
  System0   256  3716 242
 2k  36861867
  lo0
  em02k21 4   25621
  em12k20 4   25620
  em22k14 4   25614
  enc0
  vether0
  tun0
  bridge0
  pflog0
 
  I did update the kernel at the same time as changing the bios settings,
 so
  that
  led me down the wrong path I think. Digging through /var/log/messages* it
  looks
  as though things changed when I upgraded from the October 6th snapshot
 to the
  November 15th snapshot. When I was running this (and previous snapshots):
 
  OpenBSD 5.0-current (GENERIC.MP) #96: Thu Oct 6 16:12:43 MDT 2011
  dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 
  ...I had a bunch of these errors (but no network lockups):
 
  pf: state key linking mismatch! dir=OUT, if=em1, stored af=2, a0:
  76.126.243.211:25619, a1: 192.168.10.2:49200, proto=17, found af=2, a0:
  176.15.107.37:45022, a1: 239.190.175.222:61374, proto=17
 
  After updating to this (and another update since):
 
  OpenBSD 5.0-current (GENERIC.MP) #133: Tue Nov 15 22:08:20 MST 2011
  dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 
  ...I now have these warnings (and the network lockups):
 
  WARNING: mclpools limit reached; increase kern.maxclusters
 
  -Nick
 
  On Tue, Dec 6, 2011 at 11:21 AM, Stuart Henderson s...@spacehopper.org
  wrote:
  Have you adjusted any other sysctl values?
 
  What does netstat -m say? Run it once, then again after 30 mins or so.
 
  What does systat mbuf say?
 
  Did you update the kernel at the same time as changing bios settings?
  If so, what did you run before? (check /var/log/messages*)
 
  I doubt there's a legitimate reason to increase kern.maxclusters to
  8192 on this system, best I think you can hope for with that is to make
  it run for a little longer before crashing.
 
 
 
  On 2011-12-06, Nick Templeton n...@nicktempleton.com wrote:
  You're right that I had an outdated BIOS, which I've now updated, but
  upon further review I don't think that is/was the culprit. I've since
  had the issue re-surface and this time I noticed many lines like this
  in the dmesg (not sure how I missed it before):
 
  WARNING: mclpools limit reached; increase kern.maxclusters
 
  So I've upped kern.maxclusters to 8192, however, I'm not sure if I
  really should need to. This machine is a firewall/router for my home
  network running a few services (sshd, named, httpd, tomcat) for about
  5 users. There's also a machine that is running Transmission
  BitTorrent client behind the firewall

Re: Odd Network Lockups

2011-12-07 Thread Nick Templeton
I think you're right Stuart, raising kern.maxclusters is only buying me time.

The only sysctl values I've modified are:
net.inet.ip.forwarding=1
ddb.panic=0
kern.maxclusters=8192

netstat -m shows increasing values over time, here's the output from
this morning:

3510 mbufs in use:
3479 mbufs allocated to data
24 mbufs allocated to packet headers
7 mbufs allocated to socket names and addresses
3477/3522/8192 mbuf 2048 byte clusters in use (current/peak/max)
0/8/8192 mbuf 4096 byte clusters in use (current/peak/max)
0/8/8192 mbuf 8192 byte clusters in use (current/peak/max)
0/8/8192 mbuf 9216 byte clusters in use (current/peak/max)
0/8/8192 mbuf 12288 byte clusters in use (current/peak/max)
0/8/8192 mbuf 16384 byte clusters in use (current/peak/max)
0/8/8192 mbuf 65536 byte clusters in use (current/peak/max)
8204 Kbytes allocated to network (95% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

...and here it is from this evening:

3718 mbufs in use:
   3687 mbufs allocated to data
   24 mbufs allocated to packet headers
   7 mbufs allocated to socket names and addresses
3685/3734/8192 mbuf 2048 byte clusters in use (current/peak/max)
0/8/8192 mbuf 4096 byte clusters in use (current/peak/max)
0/8/8192 mbuf 8192 byte clusters in use (current/peak/max)
0/8/8192 mbuf 9216 byte clusters in use (current/peak/max)
0/8/8192 mbuf 12288 byte clusters in use (current/peak/max)
0/8/8192 mbuf 16384 byte clusters in use (current/peak/max)
0/8/8192 mbuf 65536 byte clusters in use (current/peak/max)
8628 Kbytes allocated to network (96% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

Here's the output from systat mbuf:

1 usersLoad 0.65 0.79 0.76 Wed Dec  7 18:15:12
2011

IFACE LIVELOCKS  SIZE ALIVE   LWM   HWM   CWM
System0   256  3716 242
   2k  36861867
lo0
em02k21 4   25621
em12k20 4   25620
em22k14 4   25614
enc0
vether0
tun0
bridge0
pflog0

I did update the kernel at the same time as changing the bios settings, so
that
led me down the wrong path I think. Digging through /var/log/messages* it
looks
as though things changed when I upgraded from the October 6th snapshot to the
November 15th snapshot. When I was running this (and previous snapshots):

OpenBSD 5.0-current (GENERIC.MP) #96: Thu Oct 6 16:12:43 MDT 2011
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

...I had a bunch of these errors (but no network lockups):

pf: state key linking mismatch! dir=OUT, if=em1, stored af=2, a0:
76.126.243.211:25619, a1: 192.168.10.2:49200, proto=17, found af=2, a0:
176.15.107.37:45022, a1: 239.190.175.222:61374, proto=17

After updating to this (and another update since):

OpenBSD 5.0-current (GENERIC.MP) #133: Tue Nov 15 22:08:20 MST 2011
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

...I now have these warnings (and the network lockups):

WARNING: mclpools limit reached; increase kern.maxclusters

-Nick

On Tue, Dec 6, 2011 at 11:21 AM, Stuart Henderson s...@spacehopper.org
wrote:
 Have you adjusted any other sysctl values?

 What does netstat -m say? Run it once, then again after 30 mins or so.

 What does systat mbuf say?

 Did you update the kernel at the same time as changing bios settings?
 If so, what did you run before? (check /var/log/messages*)

 I doubt there's a legitimate reason to increase kern.maxclusters to
 8192 on this system, best I think you can hope for with that is to make
 it run for a little longer before crashing.



 On 2011-12-06, Nick Templeton n...@nicktempleton.com wrote:
 You're right that I had an outdated BIOS, which I've now updated, but
 upon further review I don't think that is/was the culprit. I've since
 had the issue re-surface and this time I noticed many lines like this
 in the dmesg (not sure how I missed it before):

 WARNING: mclpools limit reached; increase kern.maxclusters

 So I've upped kern.maxclusters to 8192, however, I'm not sure if I
 really should need to. This machine is a firewall/router for my home
 network running a few services (sshd, named, httpd, tomcat) for about
 5 users. There's also a machine that is running Transmission
 BitTorrent client behind the firewall, maybe that could be the
 culprit?

 -Nick

 On Fri, Dec 2, 2011 at 9:29 AM, Erling Westenvik
erling.westen...@gmail.com wrote:
 You should try upgrading BIOS. As far as I can tell, it would be version
 2.4 as of 8/7/2007.



http://www.dell.com/support/drivers/us/en/19/DriverDetails/DriverFileFormats?
 DriverId=HY9F0FileId=2731098639

 (I was recently given an Dell Optiplex 755, also intel Core 2 Duo, and I
 installed OpenBSD 5.0 on it. However, I got all kinds of errors - mainly
 about memory

Re: Odd Network Lockups

2011-12-05 Thread Nick Templeton
You're right that I had an outdated BIOS, which I've now updated, but
upon further review I don't think that is/was the culprit. I've since
had the issue re-surface and this time I noticed many lines like this
in the dmesg (not sure how I missed it before):

WARNING: mclpools limit reached; increase kern.maxclusters

So I've upped kern.maxclusters to 8192, however, I'm not sure if I
really should need to. This machine is a firewall/router for my home
network running a few services (sshd, named, httpd, tomcat) for about
5 users. There's also a machine that is running Transmission
BitTorrent client behind the firewall, maybe that could be the
culprit?

-Nick

On Fri, Dec 2, 2011 at 9:29 AM, Erling Westenvik
erling.westen...@gmail.com wrote:
 You should try upgrading BIOS. As far as I can tell, it would be version
 2.4 as of 8/7/2007.


http://www.dell.com/support/drivers/us/en/19/DriverDetails/DriverFileFormats?
DriverId=HY9F0FileId=2731098639

 (I was recently given an Dell Optiplex 755, also intel Core 2 Duo, and I
 installed OpenBSD 5.0 on it. However, I got all kinds of errors - mainly
 about memory conflict - and the ATi radeon 2400 wouldn't work properly.
 Then I realized the BIOS was sixteen versions old (A04) and upgraded it
 to the latest (A20) which seemed to fix just about everything..)


 On Fri, Dec 02, 2011 at 08:44:43AM -0600, Nick Templeton wrote:
 I have a Dell XPS210 that, after a few days of uptime, stops
 responding on the network - no ping, ssh, httpd, or tomcat responses -
 I simply get connection resets. I run snapshots on this computer that
 I update approximately monthly. This machine had been working well for
 many months then I decided to tweak some BIOS settings, particularly I
 turned on SpeedStep so I could use apmd(8) in cool running mode
 (-C),  I made some other tweaks in the BIOS at the time that I can't
 exactly recall, but seemed inconsequential - things like what to do
 after a power outage, boot order, etc. After making these changes in
 the BIOS is when this issue arose. I've since tried putting the BIOS
 settings back the way (I thought) they were, but it hasn't made a
 difference, so I don't know if that was really the issue. I'm not
 quite sure what to grab for diagnostic info, but there's a few odd
 lines I've noticed in the dmesg:

 ...
 RTC BIOS diagnostic error 11memory_size
 ...
 ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 8
 ...

 Anybody have any ideas?

 -Nick

 OpenBSD 5.0-current (GENERIC.MP) #146: Mon Nov 28 16:07:10 MST 2011
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 RTC BIOS diagnostic error 11memory_size
 real mem = 4216655872 (4021MB)
 avail mem = 4090273792 (3900MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0450 (71 entries)
 bios0: vendor Dell Inc. version 2.1.2 date 12/01/2006
 bios0: Dell Inc. Dell DXC061
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP SSDT APIC BOOT MCFG HPET DUMY SLIC
 acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI4(S5) PCI2(S5) PCI3(S5)
 PCI1(S5) PCI5(S5) PCI6(S5) MOU_(S3) USB0(S3) USB1(S3) USB2(S3)
 USB3(S3) USB4(S3)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz, 1862.27 MHz
 cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3
,CX16,xTPR,PDCM,NXE,LONG
 cpu0: 2MB 64b/line 8-way L2 cache
 cpu0: apic clock running at 266MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz, 1862.02 MHz
 cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3
,CX16,xTPR,PDCM,NXE,LONG
 cpu1: 2MB 64b/line 8-way L2 cache
 ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 8
 acpimcfg0 at acpi0 addr 0xe000, bus 0-255
 acpihpet0 at acpi0: 14318179 Hz
 acpiprt0 at acpi0: bus 3 (PCI4)
 acpiprt1 at acpi0: bus 2 (PCI2)
 acpiprt2 at acpi0: bus -1 (PCI3)
 acpiprt3 at acpi0: bus 1 (PCI1)
 acpiprt4 at acpi0: bus -1 (PCI5)
 acpiprt5 at acpi0: bus -1 (PCI6)
 acpiprt6 at acpi0: bus 0 (PCI0)
 acpicpu0 at acpi0
 acpicpu1 at acpi0
 acpibtn0 at acpi0: VBTN
 memory map conflict 0xbf655c00/0x9aa400
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 Intel 82G965 Host rev 0x02
 ppb0 at pci0 dev 1 function 0 Intel 82G965 PCIE rev 0x02: msi
 pci1 at ppb0 bus 1
 em0 at pci1 dev 0 function 0 Intel PRO/1000 MT (82574L) rev 0x00:
 msi, address 00:1b:21:ab:bf:ca
 vga1 at pci0 dev 2 function 0 Intel 82G965 Video rev 0x02
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 intagp0 at vga1
 agp0 at intagp0

Odd Network Lockups

2011-12-02 Thread Nick Templeton
I have a Dell XPS210 that, after a few days of uptime, stops
responding on the network - no ping, ssh, httpd, or tomcat responses -
I simply get connection resets. I run snapshots on this computer that
I update approximately monthly. This machine had been working well for
many months then I decided to tweak some BIOS settings, particularly I
turned on SpeedStep so I could use apmd(8) in cool running mode
(-C),  I made some other tweaks in the BIOS at the time that I can't
exactly recall, but seemed inconsequential - things like what to do
after a power outage, boot order, etc. After making these changes in
the BIOS is when this issue arose. I've since tried putting the BIOS
settings back the way (I thought) they were, but it hasn't made a
difference, so I don't know if that was really the issue. I'm not
quite sure what to grab for diagnostic info, but there's a few odd
lines I've noticed in the dmesg:

...
RTC BIOS diagnostic error 11memory_size
...
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 8
...

Anybody have any ideas?

-Nick

OpenBSD 5.0-current (GENERIC.MP) #146: Mon Nov 28 16:07:10 MST 2011
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 11memory_size
real mem = 4216655872 (4021MB)
avail mem = 4090273792 (3900MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0450 (71 entries)
bios0: vendor Dell Inc. version 2.1.2 date 12/01/2006
bios0: Dell Inc. Dell DXC061
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC BOOT MCFG HPET DUMY SLIC
acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI4(S5) PCI2(S5) PCI3(S5)
PCI1(S5) PCI5(S5) PCI6(S5) MOU_(S3) USB0(S3) USB1(S3) USB2(S3)
USB3(S3) USB4(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz, 1862.27 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz, 1862.02 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG
cpu1: 2MB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 8
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 3 (PCI4)
acpiprt1 at acpi0: bus 2 (PCI2)
acpiprt2 at acpi0: bus -1 (PCI3)
acpiprt3 at acpi0: bus 1 (PCI1)
acpiprt4 at acpi0: bus -1 (PCI5)
acpiprt5 at acpi0: bus -1 (PCI6)
acpiprt6 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpibtn0 at acpi0: VBTN
memory map conflict 0xbf655c00/0x9aa400
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel 82G965 Host rev 0x02
ppb0 at pci0 dev 1 function 0 Intel 82G965 PCIE rev 0x02: msi
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 Intel PRO/1000 MT (82574L) rev 0x00:
msi, address 00:1b:21:ab:bf:ca
vga1 at pci0 dev 2 function 0 Intel 82G965 Video rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0 at vga1: apic 8 int 16
drm0 at inteldrm0
Intel 82G965 Video rev 0x02 at pci0 dev 2 function 1 not configured
em1 at pci0 dev 25 function 0 Intel ICH8 IFE rev 0x02: msi, address
00:16:76:c1:5b:1f
uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x02: apic 8 int 16
uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x02: apic 8 int 17
ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x02: apic 8 int 22
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x02: msi
azalia0: codecs: Conexant/0x2bfa, Sigmatel STAC9227X, using Sigmatel STAC9227X
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x02: msi
pci2 at ppb1 bus 2
em2 at pci2 dev 0 function 0 Intel PRO/1000 MT (82574L) rev 0x00:
msi, address 00:1b:21:ab:d3:53
uhci2 at pci0 dev 29 function 0 Intel 82801H USB rev 0x02: apic 8 int 23
uhci3 at pci0 dev 29 function 1 Intel 82801H USB rev 0x02: apic 8 int 17
uhci4 at pci0 dev 29 function 2 Intel 82801H USB rev 0x02: apic 8 int 18
ehci1 at pci0 dev 29 function 7 Intel 82801H USB rev 0x02: apic 8 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xf2
pci3 at ppb2 bus 3
TI TSB43AB22 FireWire rev 0x00 at pci3 dev 10 function 0 not configured
pcib0 at pci0 dev 31 function 0 

Re: rc.subr daemons

2011-08-02 Thread Nick Templeton
Except the op is on 4.9, it's rc_scripts in rc.conf.local(8) in 4.9.

As Otto said, read the documentation on your machine.

-Nick
On Aug 2, 2011 4:16 AM, Tomas Bodzar tomas.bod...@gmail.com wrote:
 Sure. Sorry for misinformation. I'm installing current on new laptop
 right now and I saw change in name. Actual value is pkg_scripts

 On Tue, Aug 2, 2011 at 9:10 AM, Otto Moerbeek o...@drijf.net wrote:
 On Tue, Aug 02, 2011 at 07:48:16AM +0200, Henrique Ant?nio Evaristo
wrote:

 I installed obsd 4.9 recently and installed also the samba packages.
 The daemon scripts are installed also ?correctly? in the /etc/rc.d/
 directory as well as the rc.subr script.
 From the different documentation I've already read, that should be
 enough for the scripts to be executed at startup, but this isn't the
 case.
 I've checked file permissions and everything seems to be good, a
 couple of doubts have come up:
 1 - I did read somewhere online that the rc.subr should be located in
 the /etc folder and only the scripts to be executed would stay in
 /etc/rc.d folder, but I've checked the scripts and all of them seem to
 expect it to be in the /etc/rc.d folder. So is this just old
 information out in wild web?
 2 - I also noticed some mention to the variable $rc_scripts to have
 been changed to $pkg_scripts, but on my system the script is still
 using $rc_scripts. Is this something that was changed and missed on
 4.9 release version ?

 So if someone could shed some light on how to make the samba daemons
 startup at boot time I would really appreciate.
 I wanted to try applying the 2nd changes but could not yet, later at
 the end of the day I will try it if I have no reply.

 You should not trust the web.

 B B B B $ man rc.d

 is authorative and contains the documentation for your system.

 B B B B -Otto


 Regards,
 Henrique



Re: Mobile VPN

2010-10-05 Thread Nick Templeton
And WebOS phones too:
http://www.webos-internals.org/wiki/OpenVPN_for_Palm_Pre

-Nick



On Oct 5, 2010 3:40 AM, David Coppa lt;dco...@gmail.comgt; wrote:

On Tue, Oct 5, 2010 at 9:25 AM, Jussi Peltola lt;pe...@pelzi.netgt; wrote:

gt; The n900 most certainly can run openvpn.



Android phones can too: http://code.google.com/p/android-openvpn-settings/



ciao,

david



Re: Installing packages using install.site

2009-03-02 Thread Nick Templeton
I ran into the same thing.  I run ldconfig(8) before pkg_add to get rid 
of that error.  Specifically I run:


ldconfig /usr/local/lib /usr/X11R6/lib

-Nick

On 3/2/2009 5:05 AM, Sylvain Lapendry wrote:

Hi everyone,

I'm building a custom OpenBSD 4.4 thanks to site44.tgz  install.site.
In my install.site, I use pkg_add to install the apache-httpd package (which
is, with his depedencies, in the site44.tgz).
It seems to work, but during the installation, I've got this error :
/var/run/ld.so.hints: File doesn't exist.
pkg_add needs ld.so ? What can I do to fix that error ?

Thanks a lot !




Re: (bit)torrent openbsd client

2009-01-28 Thread Nick Templeton
I use azureus/vuze.  It's a memory hog and uses Java, but I like it.  I 
have a package for 4.4-release at 
http://secure.nicktempleton.com/pub/OpenBSD/4.4/packages/i386/azureus-4.0.0.4.tgz


-Nick

Mihai Popescu B.S. wrote:

Hello,

Could you make some suggestion for a good openbsd (bit)torrent client
with or without GUI ? I know some names, but I want to have some user
experience presented.

Thanks.




Re: use 3 nics as hub / switch

2009-01-02 Thread Nick Templeton
I'm doing what you're describing with a couple 4-port NICs.  I assign an 
IP to one of the interfaces so dhcpd can run on that, then bridge all 
the interfaces together.  Works like a charm.


Your config files would look something like -

hostname.rl1:
inet 192.168.1.1 255.255.255.0 192.168.1.255

hostname.rl2
up

bridgename.bridge0:
add rl1
add rl2
up

Then add dhcpd_flags=rl1 to rc.conf.local, dhcpd will respond to 
requests on either interface since it's a bridge.


-Nick

Marian Hettwer wrote:

Hi All and a happy new year,

got a short question here.
I'm building a home router from a blue box (embedded pc), which has 3 nics
(rl0, 1, 2).
Internet drops in via dhcp client on rl0. Now I got 2 NICs left and I'd
like to use them similar like a hub. Just use a cross over cable and plug
in 2 more devices which can then talk through that router.

My first try was to bridge rl1 and rl2, but then again, I want to use a
dhcp server on both interfaces and it seems like I can't do that, since I
can't give an ip on bridge0 and I wouldn't want to give an IP to rl1 and
rl2.

Any ideas to that setup?
I thought about giving rl1 an IP adress and rl2 one from another network.
Like rl1 with 192.168.1 and rl2 with 192.168.2 and then run dhcpd on rl1
and rl2 serving both subnets.
However, that doesn't look like a good approach to me.

Any other thoughts on that issue?

Ah yes, it's OpenBSD 4.4 release :)

best regards,
Marian

PS.: please CC me, I'm not subscribed to the list.




acpicpu setperf failed to alter frequency

2008-10-30 Thread Nick Templeton
I just updated to a recent snapshot (dated 10/29) on my Dell Latitude 
C640 laptop and I'm getting the following message repeated over and over 
in my dmesg/console:

CPU0:acpicpu setperf failed to alter frequency

Things seem to be working fine but it appears the CPU is not getting 
bumped up to it's top speed (I believe hw.cpuspeed should be 1600) while 
plugged in (all the sensors are new since upgrading, sweet!):

[EMAIL PROTECTED] nick$ sysctl hw
hw.machine=i386
hw.model=Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz (GenuineIntel 686-class)
hw.ncpu=1
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=wd0,cd0
hw.diskcount=2
hw.sensors.acpitz0.temp0=42.55 degC (zone temperature)
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpibat0.volt0=14.40 VDC (voltage)
hw.sensors.acpibat0.volt1=17.27 VDC (current voltage)
hw.sensors.acpibat0.watthour0=49.26 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=3.00 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=1.00 Wh (low capacity)
hw.sensors.acpibat0.watthour3=47.91 Wh (remaining capacity), OK
hw.sensors.acpibat0.raw0=2 (battery charging), OK
hw.sensors.acpibat0.raw1=11675 (rate)
hw.cpuspeed=1596
hw.setperf=100
hw.vendor=Dell Computer Corporation
hw.product=Latitude C640
hw.serialno=6QDLT11
hw.uuid=44454c4c-5100-1044-804c-b6c04f543131
hw.physmem=804753408
hw.usermem=804741120

Dmesg:
OpenBSD 4.4-current (GENERIC) #1443: Wed Oct 29 14:55:44 MDT 2008
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz (GenuineIntel 
686-class) 1.60 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
real mem  = 804753408 (767MB)
avail mem = 769073152 (733MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/05/02, BIOS32 rev. 0 @ 0xffe90, SMBIOS 
rev. 2.3 @ 0xf6dd0 (61 entries)
bios0: vendor Dell Computer Corporation version A02 date 08/05/2002
bios0: Dell Computer Corporation Latitude C640
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP
acpi0: wakeup devices LID_(S3) PBTN(S4) PCI0(S3) UAR1(S3) USB0(S1) USB1(S1) 
USB2(S1) MODM(S3) PCIE(S3) MPCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (PCIE)
acpiprt3 at acpi0: bus -1 (MPCI)
acpicpu0 at acpi0: C2, FVS, 0, 0 MHz
acpitz0 at acpi0: critical temperature 100 degC
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model CL3800B serial 0 type LION oem PanasCompa
acpibat1 at acpi0: BAT1 not present
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpidock at acpi0 not configured
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0xf000 0xcf000/0x800! 0xcf800/0x800!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82845 Host rev 0x04
ppb0 at pci0 dev 1 function 0 Intel 82845 AGP rev 0x04
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon Mobility M7 LW rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xe800, size 0x400
radeondrm0 at vga1
uhci0 at pci0 dev 29 function 0 Intel 82801CA/CAM USB rev 0x02: irq 11
ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x42
pci2 at ppb1 bus 2
xl0 at pci2 dev 0 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 11, address 
00:08:74:48:38:cd
exphy0 at xl0 phy 24: 3Com internal media interface
cbb0 at pci2 dev 1 function 0 TI PCI1420 CardBus rev 0x00: irq 11
cbb1 at pci2 dev 1 function 1 TI PCI1420 CardBus rev 0x00: irq 11
ral0 at pci2 dev 3 function 0 Ralink RT2561S rev 0x00: irq 11, address 
00:1a:4d:33:b6:03
ral0: MAC/BBP RT2561C, RF RT2527
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 4 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 5 device 0 cacheline 0x8, lattimer 0x20
pcmcia1 at cardslot1
ichpcib0 at pci0 dev 31 function 0 Intel 82801CAM LPC rev 0x02
pciide0 at pci0 dev 31 function 1 Intel 82801CAM IDE rev 0x02: DMA, 
channel 0 configured to compatibility, channel 1 configured to 
compatibility
wd0 at pciide0 channel 0 drive 0: IC25N020ATCS04-0
wd0: 16-sector PIO, LBA, 19077MB, 39070080 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: MATSHITA, UJDA360, 1.02 ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
auich0 at pci0 dev 31 function 5 Intel 82801CA/CAM AC97 rev 0x02: irq 11, 
ICH3 AC97
ac97: codec id 0x4352595b (Cirrus Logic CS4205 rev 3)
ac97: codec features mic channel, tone, simulated stereo, bass boost, 20 bit 
DAC, 18 bit ADC, SRS 3D
audio0 at auich0
Intel 82801CA/CAM Modem rev 0x02 at pci0 dev 31 function 6 not configured
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 Intel UHCI root hub 

Re: acpicpu setperf failed to alter frequency

2008-10-30 Thread Nick Templeton
I should probably specifically note that the error is appearing when I 
run apmd (specifically apmd -A), killing apmd also kills the error.

-Nick

On Thu, Oct 30, 2008 at 05:23:58PM -0500, Nick Templeton wrote:
 I just updated to a recent snapshot (dated 10/29) on my Dell Latitude 
 C640 laptop and I'm getting the following message repeated over and over 
 in my dmesg/console:
 
 CPU0:acpicpu setperf failed to alter frequency
 
 Things seem to be working fine but it appears the CPU is not getting 
 bumped up to it's top speed (I believe hw.cpuspeed should be 1600) while 
 plugged in (all the sensors are new since upgrading, sweet!):
 
 [EMAIL PROTECTED] nick$ sysctl hw
 hw.machine=i386
 hw.model=Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz (GenuineIntel 686-class)
 hw.ncpu=1
 hw.byteorder=1234
 hw.pagesize=4096
 hw.disknames=wd0,cd0
 hw.diskcount=2
 hw.sensors.acpitz0.temp0=42.55 degC (zone temperature)
 hw.sensors.acpiac0.indicator0=On (power supply)
 hw.sensors.acpibat0.volt0=14.40 VDC (voltage)
 hw.sensors.acpibat0.volt1=17.27 VDC (current voltage)
 hw.sensors.acpibat0.watthour0=49.26 Wh (last full capacity)
 hw.sensors.acpibat0.watthour1=3.00 Wh (warning capacity)
 hw.sensors.acpibat0.watthour2=1.00 Wh (low capacity)
 hw.sensors.acpibat0.watthour3=47.91 Wh (remaining capacity), OK
 hw.sensors.acpibat0.raw0=2 (battery charging), OK
 hw.sensors.acpibat0.raw1=11675 (rate)
 hw.cpuspeed=1596
 hw.setperf=100
 hw.vendor=Dell Computer Corporation
 hw.product=Latitude C640
 hw.serialno=6QDLT11
 hw.uuid=44454c4c-5100-1044-804c-b6c04f543131
 hw.physmem=804753408
 hw.usermem=804741120
 
 Dmesg:
 OpenBSD 4.4-current (GENERIC) #1443: Wed Oct 29 14:55:44 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz (GenuineIntel 
 686-class) 1.60 GHz
 cpu0: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
 real mem  = 804753408 (767MB)
 avail mem = 769073152 (733MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 08/05/02, BIOS32 rev. 0 @ 0xffe90, 
 SMBIOS rev. 2.3 @ 0xf6dd0 (61 entries)
 bios0: vendor Dell Computer Corporation version A02 date 08/05/2002
 bios0: Dell Computer Corporation Latitude C640
 acpi0 at bios0: rev 0
 acpi0: tables DSDT FACP
 acpi0: wakeup devices LID_(S3) PBTN(S4) PCI0(S3) UAR1(S3) USB0(S1) USB1(S1) 
 USB2(S1) MODM(S3) PCIE(S3) MPCI(S3)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 1 (AGP_)
 acpiprt2 at acpi0: bus 2 (PCIE)
 acpiprt3 at acpi0: bus -1 (MPCI)
 acpicpu0 at acpi0: C2, FVS, 0, 0 MHz
 acpitz0 at acpi0: critical temperature 100 degC
 acpiac0 at acpi0: AC unit online
 acpibat0 at acpi0: BAT0 model CL3800B serial 0 type LION oem PanasCompa
 acpibat1 at acpi0: BAT1 not present
 acpibtn0 at acpi0: LID_
 acpibtn1 at acpi0: PBTN
 acpibtn2 at acpi0: SBTN
 acpidock at acpi0 not configured
 acpivideo at acpi0 not configured
 bios0: ROM list: 0xc/0xf000 0xcf000/0x800! 0xcf800/0x800!
 cpu0 at mainbus0: (uniprocessor)
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 pchb0 at pci0 dev 0 function 0 Intel 82845 Host rev 0x04
 ppb0 at pci0 dev 1 function 0 Intel 82845 AGP rev 0x04
 pci1 at ppb0 bus 1
 vga1 at pci1 dev 0 function 0 ATI Radeon Mobility M7 LW rev 0x00
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 agp0 at vga1: aperture at 0xe800, size 0x400
 radeondrm0 at vga1
 uhci0 at pci0 dev 29 function 0 Intel 82801CA/CAM USB rev 0x02: irq 11
 ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x42
 pci2 at ppb1 bus 2
 xl0 at pci2 dev 0 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 11, 
 address 00:08:74:48:38:cd
 exphy0 at xl0 phy 24: 3Com internal media interface
 cbb0 at pci2 dev 1 function 0 TI PCI1420 CardBus rev 0x00: irq 11
 cbb1 at pci2 dev 1 function 1 TI PCI1420 CardBus rev 0x00: irq 11
 ral0 at pci2 dev 3 function 0 Ralink RT2561S rev 0x00: irq 11, address 
 00:1a:4d:33:b6:03
 ral0: MAC/BBP RT2561C, RF RT2527
 cardslot0 at cbb0 slot 0 flags 0
 cardbus0 at cardslot0: bus 4 device 0 cacheline 0x8, lattimer 0x20
 pcmcia0 at cardslot0
 cardslot1 at cbb1 slot 1 flags 0
 cardbus1 at cardslot1: bus 5 device 0 cacheline 0x8, lattimer 0x20
 pcmcia1 at cardslot1
 ichpcib0 at pci0 dev 31 function 0 Intel 82801CAM LPC rev 0x02
 pciide0 at pci0 dev 31 function 1 Intel 82801CAM IDE rev 0x02: DMA, 
 channel 0 configured to compatibility, channel 1 configured to 
 compatibility
 wd0 at pciide0 channel 0 drive 0: IC25N020ATCS04-0
 wd0: 16-sector PIO, LBA, 19077MB, 39070080 sectors
 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
 atapiscsi0 at pciide0 channel 1 drive 0
 scsibus0 at atapiscsi0: 2 targets, initiator 7
 cd0 at scsibus0 targ 0 lun 0: MATSHITA, UJDA360, 1.02 ATAPI 5/cdrom 
 removable
 cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
 auich0 at pci0 dev 31 function 5 Intel 82801CA/CAM AC97 rev 0x02: irq 11

Re: ral(4) and Gigabyte GN-WI01GS 802.11b/g card

2008-09-25 Thread Nick Templeton
I have one in my Dell laptop and it works great.  Here's how it looks in 
my dmesg:


ral0 at pci2 dev 3 function 0 Ralink RT2561S rev 0x00: irq 11, address 
00:1a:4d:33:b6:03

ral0: MAC/BBP RT2561C, RF RT2527

I haven't tried it in hostap mode, but I've had good luck with another 
Gigabyte ral(4)-based card as an access point.


-Nick

Kevin Elliott wrote:

I am thinking of buying a Gigabyte GN-WI01GS to replace my Wistron
CM9.  It's listed as supported under the man file.  I was curious if
anyone has any experience with this card and can confirm that it's
FULLY supported under OpenBSD-4.3 (i386).

Thank you.
Kevin

Hope in reality is the worst of all evils because it prolongs the
torments of man.

 -Nietzsche




Re: Firefox 2.0.0.12

2008-04-07 Thread Nick Templeton

Unix Fan wrote:

Jacob Meuser wrote:
  

or, quit using firefox.  it's security record is rather lousy, wouldn't
you agree?



That's a stupid outlook on things... 2.0.0.6 was released in July, that's a 
hell of a long time between April, exploits in depencies are bound to show up 
in that time frame.

OpenBSD developers are intentionally putting their users at risk by not providing 
security updates, because... no workstation can sanely be secure if the only decent web 
browser is several versions behind.

As for other browsers, there are none... switching to the KDE thing would 
require.. KDE, or at least several of it's libraries, which is stupid if you're not using KDE or QT.

If only text had expressive emoticons, because I'd be rolling my eyes right 
about now...



-Nix Fan.
  


Didn't you participate in this flamefest already:
http://marc.info/?l=openbsd-miscm=119750317632017w=2

You already know the reasons for this.

-Nick



Re: GnuPG2 package or port

2007-12-18 Thread Nick Templeton
On Mon, Dec 17, 2007 at 05:45:51PM -0800, new_guy wrote:
 I've looked, but can't find it. Before getting the source and compiling, is
 this somewhere in ports?
 
 Thanks,
 Brad
 -- 
 View this message in context: 
 http://www.nabble.com/GnuPG2-package-or-port-tp14375855p14375855.html
 Sent from the openbsd user - misc mailing list archive at Nabble.com.

It's easy to search ports:

# cd /usr/ports
# make search key=gnupg

This is in the ports(7) manpage.

-Nick



Re: xfce windows manager

2007-06-25 Thread Nick Templeton
Here are the packages (and their dependencies) that I install
to get a nice Xfce desktop:

xfce-utils
xfce4-session
xfce4-taskbar
xfdesktop
xfwm4

Nick


-Original Message-
From: [EMAIL PROTECTED] on behalf of Alex Kwan
Sent: Mon 6/25/2007 11:26 AM
To: OpenBSD general usage list
Subject: xfce windows manager

Hello,

I wanted to use xfce for my systems' windows manager, which packages are
must required? (I have install the X base).

thanks!
Alex



Re: spamd-setup in blacklisting mode run from rc

2007-05-21 Thread Nick Templeton
On Sun, May 20, 2007 at 12:55:58PM +0200, Maurice Janssen wrote:
 On Saturday, May 19, 2007 at 22:46:29 +0100, Jason McIntyre wrote:
 On Fri, May 18, 2007 at 05:25:32PM -0500, Nick Templeton wrote:
  Since when running spamd(8) in blacklisting mode requires
  that spamd-setup(8) also be run with the -b option, should
  /etc/rc (the system startup script) be modified with something
  like I provide below?
  
  Index: rc
  ===
  RCS file: /cvs/src/etc/rc,v
  retrieving revision 1.304
  diff -u -r1.304 rc
  --- rc  25 Apr 2007 14:12:05 -  1.304
  +++ rc  18 May 2007 22:10:31 -
  @@ -668,9 +668,10 @@
   if [ X${spamd_flags} != XNO ]; then
  if [ X${spamd_black} != XNO ]; then
  spamd_flags=${spamd_flags} -b
  +   spamd_setup_flags=-b
  fi
  echo -n ' spamd';   eval /usr/libexec/spamd 
  ${spamd_flags}
  -   /usr/libexec/spamd-setup
  +   /usr/libexec/spamd-setup ${spamd_setup_flags}
  if [ X${spamd_black} = XNO ]; then
  echo -n ' spamlogd'
  /usr/libexec/spamlogd ${spamlogd_flags}
  
 
 why do you want to do this? spamd(8) says to use crontab.
 
 Yes, but the default is once per hour.  So without the -b flag to
 spamd-setup in /etc/rc, the blacklisted hosts are not sent to the
 spamd table in pf for quite some time.
 I think the proposed patch makes sense.
 
 Maurice
 

Right.  spamd-setup was already being executed via /etc/rc, I
simply added the -b flag.

Nick



spamd-setup in blacklisting mode run from rc

2007-05-18 Thread Nick Templeton
Since when running spamd(8) in blacklisting mode requires
that spamd-setup(8) also be run with the -b option, should
/etc/rc (the system startup script) be modified with something
like I provide below?

Index: rc
===
RCS file: /cvs/src/etc/rc,v
retrieving revision 1.304
diff -u -r1.304 rc
--- rc  25 Apr 2007 14:12:05 -  1.304
+++ rc  18 May 2007 22:10:31 -
@@ -668,9 +668,10 @@
 if [ X${spamd_flags} != XNO ]; then
if [ X${spamd_black} != XNO ]; then
spamd_flags=${spamd_flags} -b
+   spamd_setup_flags=-b
fi
echo -n ' spamd';   eval /usr/libexec/spamd ${spamd_flags}
-   /usr/libexec/spamd-setup
+   /usr/libexec/spamd-setup ${spamd_setup_flags}
if [ X${spamd_black} = XNO ]; then
echo -n ' spamlogd'
/usr/libexec/spamlogd ${spamlogd_flags}


Also maybe a mention that the cron job needs the -b flag added
in the BLACKLISTING section of spamd(8)'s man page.

-Nick Templeton