Re: ntpd.drift values?

2015-01-13 Thread Peter Strömberg
$ cat /var/db/ntpd.drift
2.475987e-03

ASUS M3A78-T



On Mon, Jan 12, 2015 at 5:30 PM, Christian Weisgerber na...@mips.inka.de
wrote:

 I'm interested in what values people have in their /var/db/ntpd.drift
 files.

 To prevent a deluge: Looking over my own machines, I see that most
 values are Xe-05, with a few Xe-04 and Xe-06.  So that's the common
 range, I don't care about that.  But if you have machines with a
 frequency accuracy outside that range, I'd like to hear about it.

 E.g., my Sun Blade 100 has 1.180462e-03.

 --
 Christian naddy Weisgerber  na...@mips.inka.de

[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of dmesg.boot]



Re: poor setwork performance on gigabit link

2010-02-26 Thread Peter Strömberg

On 2/26/2010 5:27 PM, jean-francois wrote:

pciide1 at pci0 dev 9 function 0 NVIDIA MCP77 AHCI rev 0xa2: DMA
(unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide1: using apic 4 int 11 (irq 11) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0:OCZ SOLID_SSD
wd0: 1-sector PIO, LBA, 30800MB, 63078400 sectors
wd1 at pciide1 channel 1 drive 0:WDC WD10EADS-00L5B1
wd1: 16-sector PIO, LBA48, 953869MB, 1953525168 sectors
   

Eh, running in pio-mode won't help your performance ...

I copied 36.1 GB of data in slightly less than 9 minutes for 71 MB/S

client: windows vista 64
server: openbsd amd64
kern.bufcachepercent=40
samba
socket options = SO_RCVBUF=65536 SO_SNDBUF=65536
em nic, 4K jumbo frames
ahci0 at pci0 dev 17 function 0 ATI SBx00 SATA rev 0x00: apic 4 
int 22 (irq 10), AHCI 1.1
sd0 at scsibus0 targ 1 lun 0: ATA, WDC WD10EADS-00L, 01.0 SCSI3 
0/direct fixed

switch: hp ProCurve 1800-24G



Re: Client no-ip in the OpenBSD.

2010-01-17 Thread Peter Strömberg

On 1/17/2010 4:21 AM, Saulo Bozzi wrote:

cool, but now the no-ip binary work.
but, where put him to run in the boot?
rc.conf.local?
   

/etc/rc.local

After # Add your local startup actions here. something like this will do

if [ -x /usr/local/sbin/noip2 ]; then
echo -n ' noip2';   /usr/local/sbin/noip2
fi



Re: 200g harddisk after newfs = Available 174g?

2009-10-28 Thread Peter Strömberg
On 28 Oct 2009 at 14:59, Jennifer Ma wrote:

 hi all, lately, i obtained a seagate 200g(wd1) harddisk from my elder
 brother, after i disklabel, newfs and mount the disk.  only 174g is
 shown as available, in windows(through samba), said 9.16g already been
 used.  is there any way i can claim those space back?  much thanks!
 ...
 bytes/sector: 512
 total sectors: 390721968

Harddisk manufacturers gigabyte != computer gigabyte

$ bc
scale=2
390721968*512/10^9 
200.04
390721968*512/2^30
186.31

So, you have a 186GB disk



Re: AMD 780/790GX Motherboards

2009-07-12 Thread Peter Strömberg

Glenn Gombert wrote:

Hello,

I was interested in finding out if OpenBSD supported the new
(i.e. M4A78-E) motherboards that use the AMD 780/790GX series chip sets? It
could not find them mentioned on the AMD64 support page, Goggling did not
produce any hits on this subject either. I get an error when trying to load
4.5 on this new motherboard that I purchased.

  


I have an M3A78-T (790GX) which works fine, after some bios tweaks

1) I had to disable USB2, or the machine would spontaneously reboot

2) The built-in NIC is useless
mskc0 at pci3 dev 0 function 0 Marvell Yukon 88E8056 rev 0x12, 
Yukon-2 EC Ultra (0x3): apic 4 int 18 (irq 11)

msk0 at mskc0 port A: address 00:22:15:86:05:1c
eephy0 at msk0 phy 0: 88E1149 Gigabit PHY, rev. 1
start an torrent and it will stop working in less than a minute

I put in an PCI-E Intel PRO/1000 PT instead, with some difficulties.
It doesn't work in slot 2 and 3
em0: Hardware Initialization Failed
em0: Unable to initialize the hardware
but it works in slot 4 (I haven't tried slot 1)

3) And lastly I disabled the useless azalia on the northbridge
azalia0 at pci1 dev 5 function 1 ATI RS780 HD Audio rev 0x00: apic 4 
int 19 (irq 10)

azalia0: invalid ADC PCM format: 0x
azalia0: No codecs found
so I got audio from the other azaila
azalia1 at pci0 dev 20 function 2 ATI SBx00 HD Audio rev 0x00: apic 4 
int 16 (irq 7)

azalia1: codecs: Realtek ALC888
audio0 at azalia1

Now it's running 24/7 as my main file server/samba/torrent/console 
server machine

I've had it since 4.4-current

This is 4.6-current
real mem = 3756720128 (3582MB)
avail mem = 3633623040 (3465MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f400 (71 entries)
bios0: vendor American Megatrends Inc. version 0502 date 10/30/2008
bios0: ASUSTeK Computer INC. M3A78-T
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC MCFG OEMB HPET OSFR SSDT
acpi0: wakeup devices PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) 
PCE7(S4) PCE9(S4) PCEA(S4) SBAZ(S4) PS2K(S3) PS2M(S3) P0PC(S4) UHC1(S4) 
UHC2(S4) UHC3(S4) USB4(S4) UHC5(S4) UHC6(S4) UHC7(S4) PWRB(S3)

acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Phenom(tm) 9750 Quad-Core Processor, 2406.40 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache, 2MB 64b/line 32-way L3 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully 
associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully 
associative

cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Phenom(tm) 9750 Quad-Core Processor, 2406.12 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache, 2MB 64b/line 32-way L3 cache
cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully 
associative
cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully 
associative

cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD Phenom(tm) 9750 Quad-Core Processor, 2406.12 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache, 2MB 64b/line 32-way L3 cache
cpu2: ITLB 32 4KB entries fully associative, 16 4MB entries fully 
associative
cpu2: DTLB 48 4KB entries fully associative, 48 4MB entries fully 
associative

cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD Phenom(tm) 9750 Quad-Core Processor, 2406.12 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu3: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache, 2MB 64b/line 32-way L3 cache
cpu3: ITLB 32 4KB entries fully associative, 16 4MB entries fully 
associative
cpu3: DTLB 48 4KB entries fully associative, 48 4MB entries fully 
associative

ioapic0 at mainbus0 apid 4 pa 0xfec0, version 21, 24 pins
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiprt2 at acpi0: bus -1 (PCE2)
acpiprt3 at acpi0: bus 2 (PCE3)
acpiprt4 at acpi0: bus -1 (PCE4)
acpiprt5 at acpi0: bus -1 (PCE5)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus 3 (P0PC)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpicpu2 at acpi0: PSS
acpicpu3 at acpi0: PSS
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 AMD RS780 Host rev 0x00
ppb0 at pci0 dev 1 function 

Re: How to combine boot bsd.rd and set tty?

2009-02-12 Thread Peter Strömberg
On 12 Feb 2009 at 15:47, J.A. Bal wrote:

 Hi all, 
 I have problems booting a box with 4.4 stable. Been able to extract
 dmesg with a serial console (set tty at boot). Also been able to boot
 bsd.rd. Now i would like to combine both in order to obtain the dmesg
 from bsd.rd. 
 
 So my question is: How to combine boot bsd.rd and set tty? Just
 combining at boot results in: boot: illegal argument set. 

At the boot prompt:

set image bsd.rd
set tty com0



Re: ASUS m2a-vm and 4.2

2007-12-29 Thread Peter Strömberg
On 28 Dec 2007 at 21:29, Pawel Veselov wrote:

 Hi,
 
 Just had some experience installing 4.2 on ASUS m2a-vm... Wasn't pleasant.

Try -current, it will work better, with some gotchas thou.

 3Gbs drive shows max of 0.2MBs tranfer rate (according to iostat). My
 old drive shows appx 30MB on IDE bus. Tested using dd if=/dev/zero
 of=file. Any disk access takes forever.

The drive is in pio-mode

 Selecting SATA interface as AHCI doesn't work (doesn't show up, or
 reboots the system when discovery attepmted).

In -current you can install to ahci/sata, but then generic doesn't boot.
You need to boot -c and disable ahci, change fstab to wd and then compile
a kernel with a KASSERT removed (in dev/pci/ahci.c, line 1757)
Change fstab again, and reboot. You'll get some ahci warnings, but it will work

 Installing 64bit version reboots the installer at the time disks were 
 accessed.
 
 There seem to be some problems with built-in card, as in it won't send
 any packets, at least with 10MB media (re driver).

Still doesn't work in -current

Other quirks, the radeonhd driver doesn't work if you (only) use a dvi cable.
With an vga and a dvi cable you can run X

OpenBSD 4.2-current (MICRO.MP) #8: Sat Dec 29 13:01:47 CET 2007
[EMAIL PROTECTED]:/sys/arch/amd64/compile/MICRO.MP
real mem = 2011688960 (1918MB)
avail mem = 1941458944 (1851MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf (58 entries)
bios0: vendor Phoenix Technologies, LTD version ASUS M2A-VM ACPI BIOS Revision 
1603 date 11/30/2007
bios0: ASUSTeK Computer INC. M2A-VM
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT HPET MCFG APIC
acpi0: wakeup devices USB0(S5) USB1(S5) USB2(S5) USB3(S5) USB4(S5) USB5(S5) 
AZAL(S3) P2P_(S5) PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4) 
PCE8(S4) UAR1(S5) UAR2(S5) PS2M(S5) PS2K(S5) PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) X2 Dual Core Processor BE-2350, 2100.22 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
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 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) X2 Dual Core Processor BE-2350, 2099.92 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0 apid 4 pa 0xfec0, version 21, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 4
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P2P_)
acpiprt2 at acpi0: bus -1 (PCE2)
acpiprt3 at acpi0: bus -1 (PCE3)
acpiprt4 at acpi0: bus -1 (PCE4)
acpiprt5 at acpi0: bus -1 (PCE5)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus 2 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (AGP_)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpitz0 at acpi0: critical temperature 75 degC
acpibtn0 at acpi0: PWRB
cpu0: PowerNow! K8 2099 MHz: speeds: 2100 2000 1800 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 ATI RS690 Host rev 0x00
ppb0 at pci0 dev 1 function 0 ATI RS690 PCIE rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 ATI Radeon X1250 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 7 function 0 ATI RS690 PCIE rev 0x00
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 Realtek 8168 rev 0x01: RTL8168 2 (0x3800), apic 
4 int 19 (irq 5), address 00:1b:fc:8b:7c:9c
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
ahci0 at pci0 dev 18 function 0 ATI IXP600 SATA rev 0x00: apic 4 int 22 (irq 
11), AHCI 1.1
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, Hitachi HDT72503, V54O SCSI3 0/direct fixed
sd0: 305245MB, 38913 cyl, 255 head, 63 sec, 512 bytes/sec, 625142448 sec total
ahci0: stopping the port, softreset slot 5 was still active.
atascsi_atapi_cmd_done, timeout
ahci0: stopping the port, softreset slot 7 was still active.
atascsi_atapi_cmd_done, timeout
ahci0: stopping the port, softreset slot 9 was still active.
atascsi_atapi_cmd_done, timeout
ahci0: stopping the port, softreset slot 11 was still active.
atascsi_atapi_cmd_done, timeout
ahci0: stopping the port, softreset slot 13 was still active.
atascsi_atapi_cmd_done, timeout
ahci0: stopping the port, 

Re: xenocara make release problem: can't load library 'libexpat.so.8.0'

2007-05-02 Thread Peter Strömberg
On 2 May 2007 at 10:12, Didier Wiroth wrote:

 Hello,
 I'm using a build machine running current.
 I did a standard make release and xenocara make release.
 The releases works well on the build machine!
 
 I installed the releases on my x60s laptop but X does not run correctly on it.
 X complains about a missing libexpat.so.8.0.
 xclock: can't load library 'libexpat.so.8.0'
 xterm: can't load library 'libexpat.so.8.0'
 
 I searched for a libexpat.so.8.0 on the build but couldn't find any?!
 
 Could someone explain me what the problem is?

the xenocara distrib sets are out of date ...

 
 Thank you very much!
 
 Didier



Re: cron doesn't run commands in /etc/crontab?

2007-03-28 Thread Peter Strömberg
On 28 Mar 2007 at 8:41, Will Maier wrote:

 According to cron(8), cron should be able to read commands from a
 properly formatted and chmoded /etc/crontab file. I've created such
 a file, but I can't seem to get cron to run the test command in it.
 
 # cat EOF  /etc/crontab
 */1  *   *   *   *   /usr/bin/touch /tmp/crontest

That ain't a properly formatted system crontab string (you're missing the user 
field)

It is however a vaild user crontab string but then you can't put it in the 
system crontab.



Re: layout of filesystems on OpenBSD

2006-11-10 Thread Peter Strömberg

Joachim Schipper wrote:

On Fri, Nov 10, 2006 at 05:55:27PM +0100, Igor Sobrado wrote:
  

   - /usr/ports (is 512 MB enough for it?)  I usually stay
 at binary packages, but sometimes I need to build software
 from source and would like to know the recommended space
 for this filesystem.



/usr/ports is only 160M on my box. This should not include any build
stuff.

Depending on what you want to build, 512MB can be plenty or far too
little (OpenOffice comes to mind...)
  

Have at least 24GB free space to build oo



Re: [Fwd: 'Corrupted MAC on input' points to vpn1411 problem]

2006-05-30 Thread Peter Strömberg
I have a net4801 with a vpn1411 and I occasionally got the error
(but not for a good while now).

I also have a vpn1411 in a generic i386 mb and I *never* seen the error on that 
machine.



Re: [Fwd: 'Corrupted MAC on input' points to vpn1411 problem]

2006-05-30 Thread Peter Strömberg

Breen Ouellette wrote:
Could you provide a model number for your generic i386 mainboard? Is 
it a vpn1411 you are using on the non-Soekris board, or the vpn1401 
(PCI or mini-PCI)? Have you used your net4801 without the vpn1411? If 
so, did you get any of these errors without the vpn1411? What version 
of OpenBSD are you using on these machines?

Eh, sorry, it was a 1401 in my soekris :-)

The soekris has a ral(4) minipci and a vpn1401 pci
The i386 is a Intel L440GX+ with a vpn1401 and a sk(4) (Linksys EG1064)

Both are running -currentish, updated about once or twice a month



Re: float question

2006-01-23 Thread Peter Strömberg
On 23 Jan 2006 at 2:10, ramrunner wrote:

 why does the add loses a decimal point?
 again sorry if it's my mistake (probably) but i'm confused ;) .

What Every Computer Scientist Should Know About Floating-Point Arithmetic

http://docs.sun.com/source/806-3568/ncg_goldberg.html



Re: Marvell Yukon-2 / Syskonnect SK-9S22

2005-11-25 Thread Peter Strömberg
On 25 Nov 2005 at 2:59, Adam wrote:

 Hello,
 
 I'm in need of some help getting an syskonnect SK-9S22 (dual port 
 gigabit ethernet) to work. I'm currently running on the i386 platform 
 with openbsd 3.8-current as of 11/25/05.
 
 I believe this is the most relevant part of the dmesg:
 
 skc0 at pci1 dev 3 function 0 Schneider  Koch SK-9Sxx rev 0x12: irq 5
 skc0: Marvell Yukon-2 XL (0x1)
 sk port A at skc0 not configured
 sk port B at skc0 not configured
 
 For whatever reason the mac addresses for the ports are not getting 
 reported so sk0  sk1 aren't getting setup. Any ideas??

Apparently not really supported:

from sys/dev/pci/if_sk.c

sk_probe(struct device *parent, void *match, void *aux)
{
struct skc_attach_args *sa = aux;

if (sa-skc_port != SK_PORT_A  sa-skc_port != SK_PORT_B)
return(0);

switch (sa-skc_type) {
case SK_GENESIS:
case SK_YUKON:
case SK_YUKON_LITE:
case SK_YUKON_LP:
#ifdef not_quite_yet
case SK_YUKON_XL:
case SK_YUKON_EC_U:
case SK_YUKON_EC:
case SK_YUKON_FE:
#endif
return (1);
}

return (0);
}