Re: mysql problem

2007-07-14 Thread Otto Moerbeek
On Sun, 15 Jul 2007, Marcos Laufer wrote:

> Ok , i had followed the instructions at http://openbsdsupport.org/mysql.htm

No you did not. You plugged in bigger numbers. That could very well be
your problem. Also there should be some correspondence to the numbers
in login.conf and my.cnf.

Another thing to watch out for: the login.conf syntax is extremely
unforgiving, an extra space or tab after a \ can ruin your day.

-Otto


> 
> And now i have this configuration:
> 
> I start mysql with this script:
> 
> # cat /usr/local/bin/mysql.start
> if [ -x /usr/local/bin/mysqld_safe ] ; then
> su -c _mysql root -c '/usr/local/bin/mysqld_safe &' > /dev/null &
> echo -n ' mysql'
> fi
> 
> That properly starts it with the correct login class.
> 
> My login.conf for mysql is:
> 
> _mysql:\
># :openfiles=8192:\
> :openfiles=infinity:\
> :datasize=infinity:\
> :maxproc=infinity:\
> #:openfiles-cur=8192:\
> :openfiles-cur=infinity:\
> #:openfiles-max=1:\
> :openfiles-max=infinity:\
> :stacksize-cur=8M:
> 
> I want to set infinity on those now just for testing, if everything works
> fine i will put some limits there.
> 
> 
> My kern.maxfiles:
> 
> # sysctl kern.maxfiles
> kern.maxfiles=2
> 
> 
> And my.cnf has :
> 
> [mysqld]
> socket = /var/www/logs/mysql/mysql.sock
> old-passwords
> tmpdir = /var/mysql/tmp
> open_files_limit = 1
> max_connections = 4096
> sql-mode = MYSQL40
> skip-name-resolve
> table_cache = 5000
> query_cache_size = 64M
> thread_cache = 32
> key_buffer = 128M
> long_query_time = 5
> thread_concurrency = 2
> interactive_timeout=60
> wait_timeout=60
> connect_timeout=15
> record_buffer=8M
> 
> basedir=/usr/local
> datadir=/var/mysql
> 
> sort_buffer_size = 32M
> read_buffer_size = 2M
> read_rnd_buffer_size = 4M
> myisam_sort_buffer_size = 64M
> 
> [mysql.server]
> old-passwords
> 
> [mysqld_safe]
> open-files=8192
> open_files_limit = 1
> max_connections = 4096
> 
> [mysqlcheck]
> socket = /var/www/logs/mysql/mysql.sock
> 
> --
> 
> The server has more than 100 databases, it's been working fine for about a
> year .
> A couple of days ago i found that no database could be accessed . Errors
> like this appear:
> 070714 16:15:57 [ERROR] /usr/local/libexec/mysqld: Can't find file:
> './ip041271_tan1/mos_weblinks.frm' (errno: 9)
> 070714 16:15:57 [ERROR] /usr/local/libexec/mysqld: Can't find file:
> './ip041271_tan1/mos_weblinks.frm' (errno: 9)
> 
> I restart the server and everything goes back to normal , but i reach my
> limits if i execute a:
> 
> mysqlcheck -m -A -p
> 
> 
> By the moment the limits are reached, i noticed that this values Open_files
> and Opened_tables reached:
> 
> mysql> show status like '%Open%';
> ++---+
> | Variable_name  | Value |
> ++---+
> | Com_ha_open| 0 |
> | Com_show_open_tables   | 0 |
> | Open_files | 2031  |
> | Open_streams   | 0 |
> | Open_tables| 1053  |
> | Opened_tables  | 0 |
> | Slave_open_temp_tables | 0 |
> ++---+
> 7 rows in set (0.00 sec)
> 
> or for example
> 
> mysql> show status like 'open%';
> +---+---+
> | Variable_name | Value |
> +---+---+
> | Open_files| 2030  |
> | Open_streams  | 0 |
> | Open_tables   | 1077  |
> | Opened_tables | 0 |
> +---+---+
> 4 rows in set (0.00 sec)
> 
> 
> I know i must be doing something wrong, but i just can't find out what .
> I still don't know why i reach limits with mysqlcheck when i am setting
> all those values right. I guess the limit i'm reaching is Open_files .
> The question is , why?
> 
> Regards,
> Marcos



Re: DELL PERC 5iR slow performance

2007-07-14 Thread Otto Moerbeek
On Sun, 15 Jul 2007, Brandon Lee wrote:

> Hi Marco,
> 
> There is no option to enable write cache via the PERC 5i/R controller
> or Bios.  From bios, i could only select the perfornance of the HDD as
> in "Bypass, Quiet, Suggested and Performance".

I've seen this before. For some stupid reason you cannot enable the
write cache from the BIOS. What a collegue did is use a linux live CD
with a management program from LSI to enable it. After that all was
OK. 

-Otto

> 
> -- 
> ./Brandon
> 
> 
> On 7/15/07, Marco Peereboom <[EMAIL PROTECTED]> wrote:
> > I bet write cache is disabled.  I don't recall if you can enable it in
> > the bios but have a look.
> > 
> > On Sun, Jul 15, 2007 at 01:32:25AM +0800, Brandon Lee wrote:
> > > Hi,
> > >
> > > I have a DELL SC440 box with a DELL SAS 5i/R Raid controller.
> > > Installing OpenBSD 4.1 on the box, everything looks good except for
> > > the DELL SAS controller performance.
> > >
> > > Have tried to search the mailling list archive as well as build the
> > > latest current kernel but doesnt help.   Attached is the dmesg and
> > > bonie++ test on the RAID 1 virtual disk.
> > >
> > >
> > > --
> > > ./Brandon
> > > Version  1.03   --Sequential Output-- --Sequential Input-
> > --Random-
> > > -Per Chr- --Block-- -Rewrite- -Per Chr- --Block--
> > --Seeks--
> > > MachineSize K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP
> > /sec %CP
> > > puffy.bsdway.n 512M  6893   3  7070   0  6306   1 59161  47 59821   5
> > 144.9   0
> > > --Sequential Create-- Random
> > Create
> > > -Create-- --Read--- -Delete-- -Create-- --Read---
> > -Delete--
> > >   files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
> > /sec %CP
> > >  1663   0 + +++   118   059   0 + +++
> > 152   0
> > >
> > puffy.bsdway.net,512M,6893,3,7070,0,6306,1,59161,47,59821,5,144.9,0,16,63,0,+,+++,118,0,59,0,+,+++,152,0
> > >
> > >
> > >
> > > OpenBSD 4.1 (GENERIC.MP) #1225: Sat Mar 10 19:23:18 MST 2007
> > > [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
> > > cpu0: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz ("GenuineIntel" 686-class) 2.13
> > GHz
> > > cpu0:
> > FPU,V86,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,CX16,xTPR
> > > real mem  = 1071718400 (1046600K)
> > > avail mem = 970432512 (947688K)
> > > using 4278 buffers containing 53710848 bytes (52452K) of memory
> > > mainbus0 (root)
> > > bios0 at mainbus0: AT/286+ BIOS, date 03/28/07, BIOS32 rev. 0 @ 0xffe90,
> > SMBIOS rev. 2.3 @ 0xf0450 (63 entries)
> > > bios0: Dell Inc. PowerEdge SC440
> > > apm0 at bios0: Power Management spec V1.2
> > > apm0: AC on, battery charge unknown
> > > apm0: flags 30102 dobusy 0 doidle 1
> > > pcibios0 at bios0: rev 2.1 @ 0xf/0x1
> > > pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfed10/256 (14 entries)
> > > pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801GH LPC" rev 0x00)
> > > pcibios0: PCI bus #6 is the last bus
> > > bios0: ROM list: 0xc/0x9000 0xc9000/0x6000 0xcf000/0x800
> > 0xcf800/0x2000! 0xd1800/0x2800
> > > acpi at mainbus0 not configured
> > > mainbus0: Intel MP Specification (Version 1.4)
> > > cpu0 at mainbus0: apid 0 (boot processor)
> > > cpu0: apic clock running at 265 MHz
> > > cpu1 at mainbus0: apid 1 (application processor)
> > > cpu1: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz ("GenuineIntel" 686-class) 2.13
> > GHz
> > > cpu1:
> > FPU,V86,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,CX16,xTPR
> > > mainbus0: bus 0 is type PCI
> > > mainbus0: bus 1 is type PCI
> > > mainbus0: bus 2 is type PCI
> > > mainbus0: bus 3 is type PCI
> > > mainbus0: bus 4 is type PCI
> > > mainbus0: bus 5 is type PCI
> > > mainbus0: bus 6 is type PCI
> > > mainbus0: bus 7 is type ISA
> > > ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
> > > ioapic0: misconfigured as apic 0, remapped to apid 8
> > > pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> > > pchb0 at pci0 dev 0 function 0 "Intel E7230 MCH" rev 0x00
> > > ppb0 at pci0 dev 1 function 0 "Intel E7230 PCIE" rev 0x00
> > > pci1 at ppb0 bus 1
> > > ppb1 at pci1 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09
> > > pci2 at ppb1 bus 2
> > > mpi0 at pci2 dev 8 function 0 "Symbios Logic SAS1068" rev 0x01: apic 8 int
> > 16 (irq 11)
> > > scsibus0 at mpi0: 112 targets
> > > sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct
> > fixed
> > > sd0: 237464MB, 237464 cyl, 16 head, 128 sec, 512 bytes/sec, 486326272 sec
> > total
> > > ppb2 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01
> > > pci3 at ppb2 bus 3
> > > ppb3 at pci0 dev 28 function 4 "Intel 82801G PCIE" rev 0x01
> > > pci4 at ppb3 bus 4
> > > ppb4 at pci0 dev 28 function 5 "Intel 82801G PCIE" rev 0x01
> > > 

Re: mysql problem

2007-07-14 Thread Marcos Laufer
Ok , i had followed the instructions at http://openbsdsupport.org/mysql.htm

And now i have this configuration:

I start mysql with this script:

# cat /usr/local/bin/mysql.start
if [ -x /usr/local/bin/mysqld_safe ] ; then
su -c _mysql root -c '/usr/local/bin/mysqld_safe &' > /dev/null &
echo -n ' mysql'
fi

That properly starts it with the correct login class.

My login.conf for mysql is:

_mysql:\
   # :openfiles=8192:\
:openfiles=infinity:\
:datasize=infinity:\
:maxproc=infinity:\
#:openfiles-cur=8192:\
:openfiles-cur=infinity:\
#:openfiles-max=1:\
:openfiles-max=infinity:\
:stacksize-cur=8M:

I want to set infinity on those now just for testing, if everything works
fine i will put some limits there.


My kern.maxfiles:

# sysctl kern.maxfiles
kern.maxfiles=2


And my.cnf has :

[mysqld]
socket = /var/www/logs/mysql/mysql.sock
old-passwords
tmpdir = /var/mysql/tmp
open_files_limit = 1
max_connections = 4096
sql-mode = MYSQL40
skip-name-resolve
table_cache = 5000
query_cache_size = 64M
thread_cache = 32
key_buffer = 128M
long_query_time = 5
thread_concurrency = 2
interactive_timeout=60
wait_timeout=60
connect_timeout=15
record_buffer=8M

basedir=/usr/local
datadir=/var/mysql

sort_buffer_size = 32M
read_buffer_size = 2M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M

[mysql.server]
old-passwords

[mysqld_safe]
open-files=8192
open_files_limit = 1
max_connections = 4096

[mysqlcheck]
socket = /var/www/logs/mysql/mysql.sock

--

The server has more than 100 databases, it's been working fine for about a
year .
A couple of days ago i found that no database could be accessed . Errors
like this appear:
070714 16:15:57 [ERROR] /usr/local/libexec/mysqld: Can't find file:
'./ip041271_tan1/mos_weblinks.frm' (errno: 9)
070714 16:15:57 [ERROR] /usr/local/libexec/mysqld: Can't find file:
'./ip041271_tan1/mos_weblinks.frm' (errno: 9)

I restart the server and everything goes back to normal , but i reach my
limits if i execute a:

mysqlcheck -m -A -p


By the moment the limits are reached, i noticed that this values Open_files
and Opened_tables reached:

mysql> show status like '%Open%';
++---+
| Variable_name  | Value |
++---+
| Com_ha_open| 0 |
| Com_show_open_tables   | 0 |
| Open_files | 2031  |
| Open_streams   | 0 |
| Open_tables| 1053  |
| Opened_tables  | 0 |
| Slave_open_temp_tables | 0 |
++---+
7 rows in set (0.00 sec)

or for example

mysql> show status like 'open%';
+---+---+
| Variable_name | Value |
+---+---+
| Open_files| 2030  |
| Open_streams  | 0 |
| Open_tables   | 1077  |
| Opened_tables | 0 |
+---+---+
4 rows in set (0.00 sec)


I know i must be doing something wrong, but i just can't find out what .
I still don't know why i reach limits with mysqlcheck when i am setting
all those values right. I guess the limit i'm reaching is Open_files .
The question is , why?

Regards,
Marcos



Re: calling syscalls directly from asm

2007-07-14 Thread Marcus Watts
> Date:Sat, 14 Jul 2007 18:48:46 +0200
> To:  misc@openbsd.org
> From:"Vincent GROSS" <[EMAIL PROTECTED]>
> Subject: calling syscalls directly from asm
> 
> Hi folks,
> 
> I would like to call write(2) without going through the libc functions. I 
> wrote
> this little thing to test, it does not print anything, but friends say
> it works just
> fine with linux. I did check the addresses and operands in the resulting
> binary with objdump, everything has the correct values. What am I doing
> wrong ? Feel free to cluebat me to death if I missed some obvious point ...
...

I don't know what you hope to accomplish by avoiding the use of libc.
But if you really want to do that, you'll need to know that the system
call interface is completely different on linux than openbsd.

Here's assembly code to call write on linux:
.globl write
write:
pushl   %ebx
movl8(%esp),%ebx# fd
movl12(%esp),%ecx   # buffer
movl16(%esp),%edx   # count
movl$4,%eax # __NR_write
int $128
popl%ebx
testl   %eax,%eax
jl  cerror_
ret
cerror_:
negl%eax
movl%eax,errno
movl$-1,%eax
movl$-1,%edx
ret
In linux, parameters are passed in the registers, & the error code is returned
as a negative number.

Here's assembly code to call write on openbsd:
.globl write
write:
movl$4,%eax # SYS_write
int $128
jb  cerror_
ret
cerror_:
movl%eax,errno
movl$-1,%eax
movl$-1,%edx
ret
On OpenBSD, parameters are passed on the stack.  The kernel cleverly copies
stuff from the stack just where the C calling conventions left them, which
is why you don't see any code here to muck with that.  An error is indicated
by setting the carry flag.

Incidently, there are better ways to do hexadecimal conversion.
That is, assuming you really don't want to use libc.
For instance, consider how you might use this:
*--cp = "0123456789abcdef" [ n & 15 ];

-Marcus Watts



Re: DNS issues

2007-07-14 Thread Braden Mailloux

Braden Mailloux wrote:

Dear Readers;

I'm using 4.1 with the generic kernel.

Here is my dmesg:
# dmesg
OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class, 512KB L2 cache) 552 
MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE 


real mem  = 536428544 (523856K)
avail mem = 481763328 (470472K)
using 4278 buffers containing 26943488 bytes (26312K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 05/19/00, BIOS32 rev. 0 @ 
0xf06c0, SMBIOS rev. 2.3 @ 0xf1f50 (45 entries)

bios0: ASUSTeK Computer INC. 
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0xf22
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf0e80/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:04:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Rage Pro" rev 0x5c
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 4 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 4 function 1 "Intel 82371AB IDE" rev 0x01: DMA, 
channel 0 wired to compatibility, channel 1 wired to compatibility

wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  SCSI0 
5/cdrom removable

cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 4 function 2 "Intel 82371AB USB" rev 0x01: irq 12
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 4 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
lm1 at iic0 addr 0x2d: AS99127F
rl0 at pci0 dev 11 function 0 "Accton MPX 5030/5038" rev 0x10: irq 10, 
address 00:10:b5:8d:0c:e8

rlphy0 at rl0 phy 0: RTL internal PHY

my ifconfig

# ifconfig =A
=A: no such interface
# ifconfig -A
#Loop back, pflog ommitted
rl0: flags=8843 mtu 1500
   lladdr 00:10:b5:8d:0c:e8
   groups: egress
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
   inet 192.168.1.2 netmask 0xff00 broadcast 192.168.1.255
   inet6 fe80::210:b5ff:fe8d:ce8%rl0 prefixlen 64 scopeid 0x1

my resolv.conf
nameserver 208.201.224.11
nameserver 208.201.224.33

My name server, a.ns.theamericanbray.com, is having issues resolving 
any DNS related matters; dig returns a time out error, an nslookup 
from a workstation on another site returns a time out as well when 
checking the status of theamericanbray.com. My other name server, 
b.ns.theamericanbray.com, has no problems with dig, but nslookup from 
a different site doesn't seem to receive any answers from that name 
server. The software being used is DJBDNS and my data files look as thus:


.theamericanbray.com:64.142.102.9:a:259200
.theamericanbray.com:64.142.102.10:b:259200
=www.theamericanbray.com:64.142.102.11:86400
+www.theamericanbray.com:64.142.102.11

Also, I'm using a pf firewall to distribute and manage my internet 
connection.

My pf.conf is thus:

# 192.168.0.1 subnet
ext_ip="64.142.102.8"
int_ip="192.168.0.1"
int_block="192.168.0.0/24"
#DMZ subnet
#Interface
dmz_ip="192.168.1.1"
dmz_block="192.168.1.0/24"
#DNS 1
ns_a="192.168.1.2"
pub_ns_a="64.142.102.9"
#DNS 2
ns_b="192.168.1.3"
pub_ns_b="64.142.102.10"
#WWW 1
www_ip="192.168.1.4"
pub_www="64.142.102.11"
#DMZ Services
services="{ domain, www, smtp, }"

#Normalizing
scrub in all

set skip on lo0

#NAT and Binat
nat on rl0 from $int_block to any -> $ext_ip
binat on rl0 from $ns_a to any -> $pub_ns_a
binat on rl0 from $ns_b to any -> $pub_ns_b
binat on rl0 from $www_ip to any -> $pub_www

#Redirection
rdr on rl1 proto tcp from any to $pub_www port 80 -> $www_ip

#Default block policy
block log all

#Anti-spoofing
block in quick from urpf-failed

#rl0 traffic
pass on rl0 proto icmp all
pass in on rl0 proto { tcp, udp } from any to { $ns_a, $ns_b } port 
domain

pass in on rl0 proto tcp from any to $ext_ip port ftp
pass in on rl0 proto tcp from any to { $ext_ip, $www_ip } port { 80, 
443 }
pass in on rl0 proto tcp from any to { $pub_ns_b, $pub_www, $pub_ns_a, 
$ext_ip } port 123
pass out on rl0 proto tcp from { $ext_ip, $pub_www} to any port { 80, 
443 }
pass out quick on rl0 proto udp from { $pub_ns_b, $pub_ns_a, $pub_www, 
$ext_ip } to any port domain

pass out on rl0 proto tcp from $ext_ip to any port ftp
pass o

DNS issues

2007-07-14 Thread Braden Mailloux

Dear Readers;

I'm using 4.1 with the generic kernel.

Here is my dmesg:
# dmesg
OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class, 512KB L2 cache) 552 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE

real mem  = 536428544 (523856K)
avail mem = 481763328 (470472K)
using 4278 buffers containing 26943488 bytes (26312K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 05/19/00, BIOS32 rev. 0 @ 0xf06c0, 
SMBIOS rev. 2.3 @ 0xf1f50 (45 entries)

bios0: ASUSTeK Computer INC. 
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0xf22
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf0e80/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:04:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Rage Pro" rev 0x5c
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 4 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 4 function 1 "Intel 82371AB IDE" rev 0x01: DMA, 
channel 0 wired to compatibility, channel 1 wired to compatibility

wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  SCSI0 
5/cdrom removable

cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 4 function 2 "Intel 82371AB USB" rev 0x01: irq 12
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 4 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
lm1 at iic0 addr 0x2d: AS99127F
rl0 at pci0 dev 11 function 0 "Accton MPX 5030/5038" rev 0x10: irq 10, 
address 00:10:b5:8d:0c:e8

rlphy0 at rl0 phy 0: RTL internal PHY

my ifconfig

# ifconfig =A
=A: no such interface
# ifconfig -A
#Loop back, pflog ommitted
rl0: flags=8843 mtu 1500
   lladdr 00:10:b5:8d:0c:e8
   groups: egress
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
   inet 192.168.1.2 netmask 0xff00 broadcast 192.168.1.255
   inet6 fe80::210:b5ff:fe8d:ce8%rl0 prefixlen 64 scopeid 0x1

my resolv.conf
nameserver 208.201.224.11
nameserver 208.201.224.33

My name server, a.ns.theamericanbray.com, is having issues resolving any 
DNS related matters; dig returns a time out error, an nslookup from a 
workstation on another site returns a time out as well when checking the 
status of theamericanbray.com. My other name server, 
b.ns.theamericanbray.com, has no problems with dig, but nslookup from a 
different site doesn't seem to receive any answers from that name 
server. The software being used is DJBDNS and my data files look as thus:


.theamericanbray.com:64.142.102.9:a:259200
.theamericanbray.com:64.142.102.10:b:259200
=www.theamericanbray.com:64.142.102.11:86400
+www.theamericanbray.com:64.142.102.11

Also, I'm using a pf firewall to distribute and manage my internet 
connection.

My pf.conf is thus:

# 192.168.0.1 subnet
ext_ip="64.142.102.8"
int_ip="192.168.0.1"
int_block="192.168.0.0/24"
#DMZ subnet
#Interface
dmz_ip="192.168.1.1"
dmz_block="192.168.1.0/24"
#DNS 1
ns_a="192.168.1.2"
pub_ns_a="64.142.102.9"
#DNS 2
ns_b="192.168.1.3"
pub_ns_b="64.142.102.10"
#WWW 1
www_ip="192.168.1.4"
pub_www="64.142.102.11"
#DMZ Services
services="{ domain, www, smtp, }"

#Normalizing
scrub in all

set skip on lo0

#NAT and Binat
nat on rl0 from $int_block to any -> $ext_ip
binat on rl0 from $ns_a to any -> $pub_ns_a
binat on rl0 from $ns_b to any -> $pub_ns_b
binat on rl0 from $www_ip to any -> $pub_www

#Redirection
rdr on rl1 proto tcp from any to $pub_www port 80 -> $www_ip

#Default block policy
block log all

#Anti-spoofing
block in quick from urpf-failed

#rl0 traffic
pass on rl0 proto icmp all
pass in on rl0 proto { tcp, udp } from any to { $ns_a, $ns_b } port domain
pass in on rl0 proto tcp from any to $ext_ip port ftp
pass in on rl0 proto tcp from any to { $ext_ip, $www_ip } port { 80, 443 }
pass in on rl0 proto tcp from any to { $pub_ns_b, $pub_www, $pub_ns_a, 
$ext_ip } port 123

pass out on rl0 proto tcp from { $ext_ip, $pub_www} to any port { 80, 443 }
pass out quick on rl0 proto udp from { $pub_ns_b, $pub_ns_a, $pub_www, 
$ext_ip } to any port domain

pass out on rl0 proto tcp from $ext_ip to any port ftp
pass out on rl0 proto udp from { $pu

Carros a Hidrogeno Ahora Mismo!

2007-07-14 Thread Querido Amigo
Un ciudadano del planeta Tierra finalmente decidir que le hace 
demasiado daqo respirar los polvos sutiles y ver sus seres queridos 
morir de cancer por el bienestar de las multinacirnales petroleras
Y pidir la introduccirn de una nueva enmienda al tratado por los cambios 
climaticos en Copenhagen, Dinamarca en el 2009 (COP-15) que obligue los 
dueqos del petroleo a instalar cerca de cada estacirn de servicio por lo 
menos un surtidor de hidrogeno y de comenzar a producirlo utilizando energias 
renovables.

Esta ley favorecer` la introduccirn de los vehiculos "CERO CONTAMINACION" 
conservando altas 
prestacirnes.  Finalmente podremos respirar a pleno pulmon. 

Son suficientes 5.000.000  firmas para hacerle bajar la cabeza a los dueqos del 
petroleo.
!Firmen la peticirn para ustedes, sus amigos y familiares! 

Por nosotros mismos, sin parecer egoistas, pongamos nuestro granito de arena, y 
que la Luz 
ilumine a los petroleros.

!Firma la peticirn mundial a esta direcion!
www.h2petition.org

Yo ya lo he hecho y soy el numero 653.

P.S.   Por favor, pasela a sus contactos, esta es seria, despues no diga que en 
el mundo no 
cambia nada si no le ponemos empeqo en estas ocasiones !otro mundo es posible!
P.P.S Copien y peguen el texto en un nuevo mensaje, tambiin personalizado, de 
otra manera 
compareceran estos odiosos signos que dificultan leerlo.


--
This Newsletter has been sent with NLetter from www.usolved.net



explanation of pf state-policy floating vs if-bound?

2007-07-14 Thread Bohdan Tashchuk

I'm running OpenBSD 4.1 release.

Does anyone have a "definitive" explanation of the difference between pf 
state being floating vs if-bound, and when one or the other should / 
must be used?


The rest of this email is just explaining why I'm asking the question.

I've seen Henning Brauer say use floating unless you absolutely need to 
use if-bound.


http://archive.openbsd.nu/?ml=openbsd-pf&a=2005-08&t=1255924

Claudio Jaker's paper on multipath routing specifically shows if-bound 
as part of the mimimum rule set.


http://cvs.openbsd.org/papers/opencon06-network/mgp9.html

Also, recently I had a question about multihoming. People pointed out 
the pf reply-to feature and the route command -mpath feature and I was 
able to make multihoming work for me using those techniques. Thanks for 
your help.


But then I realized I don't want to be "multihomed" in the sense that my 
cable modem interface is so much faster than my DSL inteface that I want 
to ignore DSL except for limited circumstances.


All I wanted to do was to allow limited inbound access to my DSL 
interface. In my case, just SSH. Also by DSL ISP blocks inbound SSH so I 
needed to move the port.


So I didn't need to say: route xxx -mpath

I also didn't need to set: net.inet.ip.multipath=1

I wound up with these rules, which seem to work:



set state-policy if-bound

pass in quick on $cable_interface \
reply-to ( $cable_interface $cable_gateway ) \
proto tcp from any to any port { $cable_sshd } \
keep state ( floating )

pass in quick on $dsl_interface \
reply-to ( $dsl_interface $dsl_gateway ) \
proto tcp from any to any port { $dsl_sshd } \
keep state ( floating )



But here's the trick: If my entire pf.conf rule set is if-bound then it 
fails. Packets inbound on DSL are routed outbound on CABLE (which is my 
one-and-only default route). It's only when I added keep state 
(floating) to the above two rules that things started working the way I 
expected them to, e.g. inbound on DSL caused replies to be sent back out 
to DSL.


So state-policy is a magic, magic thing with non-obvious (to me at 
least) side effects. It's counter-intuitive to me that a "floating" 
policy allows packets to go back out the interface they arrived at.


I'm hoping someone will reply with a more detailed explanation of what's 
going on here.




Re: mysql problem

2007-07-14 Thread Darrin Chandler
On Sat, Jul 14, 2007 at 11:52:05PM +0200, Nico Meijer wrote:
> These instructions work for me:
> http://www.openbsdsupport.org/mysql.htm

Those are close to what I use, with some exceptions. If you follow that
and understand *why* you're doing what you're doing, then you're on the
path to goodness.

-- 
Darrin Chandler|  Phoenix BSD User Group  |  MetaBUG
[EMAIL PROTECTED]   |  http://phxbug.org/  |  http://metabug.org/
http://www.stilyagin.com/  |  Daemons in the Desert   |  Global BUG Federation



Re: Video problems (and others?) with ASRock 755i65G/Intel 865G

2007-07-14 Thread Andrés

On 7/14/07, Matthieu Herrb <[EMAIL PROTECTED]> wrote:

On 7/13/07, Andris <[EMAIL PROTECTED]> wrote:
> On 7/13/07, Matthieu Herrb <[EMAIL PROTECTED]> wrote:
> > On 7/13/07, Andris <[EMAIL PROTECTED]> wrote:
> > > Hi, I just got a computer yesterday, which has an ASRock 755i65G*
> > > motherboard, with an Intel 865G* chipset, 512 MB of RAM, and a
> > > ViewSonic E70f+* monitor. I'm using OpenBSD 4.1-stable

(i386/GENERIC).

> > >
> > > I tried to make it run under 1024x768, 24bpp, a h-sync of 30~70kHz

and

> > > a v-sync of 50~160Hz). I can't make X run on it, I've tried i810(4),
> > > whose man page says it supports my integrated video solution (865G).
> > > But the X server crashes after showing the cursor for a sec.
> > >
> > > Here is the X log:
> >
> > From you log, the X server is ok. The problem looks more like a
> > problem with your .xinitrc or something like that.
> >
> > Can you tell us how you startx X, and try to capture the command's
> > stdout and stderr ?
> >
> > If you're running ksh or bash, this should be something like
> >
> > startx > startx.log 2>&1
> >
> > and then look at startx.log for obvious errors, or share it here if
> > you don't see anything meaningful for you.
> >
>
> Hi, after moving .xinitrc to .xinitrc.bak I could start X with no
> problems, and it doesn't crash :)
>
> I had this line in it:
> exec /usr/X11R6/bin/xset r rate 250 50

The 'exec' there is wrong, it causes the shell that parses the
.xinitrc to replace itself with the 'xset' command, which in turn
exits when it has set up the rate.
So the whole .xinitrc script is now done, causing what your were seeing.
>
> It worked with a previous computer, didn't think it would cause
> problems.

Are you sure it was exactly the same line ? without the 'exec' it
would have been fine, but with the 'exec'  there's no way it would
work, except it you had it *after* another 'exec' command, for
instance 'exec fvwm'. 'fvwm' doesn't exit until you select 'exit' from
its menu. So 'exec'ing the window manager in .xinitrc is correct, but
since 'exec' replaces the shell with the program it executes, the
lines after an 'exec' in any shell script are ignored.



Heh,  you're right. You see, I got this file where I store all
configuration changes I do in Open. But I separate base configuration
and port/package configuration. So I had this:

~/.xinitrc  exec /usr/X11R6/bin/xset r rate 250 50



~/.xinitrc  exec /usr/local/bin/ion3

Didn't add the second statement with & at the end of the first :P

That's why it worked in my previous system. Now I've done that, and
works just fine :)

Thanks!



Re: mysql problem

2007-07-14 Thread Nico Meijer
Hi Marcos,

These instructions work for me:
http://www.openbsdsupport.org/mysql.htm

HTH... Nico



Re: DELL PERC 5iR slow performance

2007-07-14 Thread Brandon Lee

Hi Marco,

There is no option to enable write cache via the PERC 5i/R controller
or Bios.  From bios, i could only select the perfornance of the HDD as
in "Bypass, Quiet, Suggested and Performance".

--
./Brandon


On 7/15/07, Marco Peereboom <[EMAIL PROTECTED]> wrote:

I bet write cache is disabled.  I don't recall if you can enable it in
the bios but have a look.

On Sun, Jul 15, 2007 at 01:32:25AM +0800, Brandon Lee wrote:
> Hi,
>
> I have a DELL SC440 box with a DELL SAS 5i/R Raid controller.
> Installing OpenBSD 4.1 on the box, everything looks good except for
> the DELL SAS controller performance.
>
> Have tried to search the mailling list archive as well as build the
> latest current kernel but doesnt help.   Attached is the dmesg and
> bonie++ test on the RAID 1 virtual disk.
>
>
> --
> ./Brandon
> Version  1.03   --Sequential Output-- --Sequential Input- 
--Random-
> -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- 
--Seeks--
> MachineSize K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec 
%CP
> puffy.bsdway.n 512M  6893   3  7070   0  6306   1 59161  47 59821   5 144.9   0
> --Sequential Create-- Random 
Create
> -Create-- --Read--- -Delete-- -Create-- --Read--- 
-Delete--
>   files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec 
%CP
>  1663   0 + +++   118   059   0 + +++   152   0
> 
puffy.bsdway.net,512M,6893,3,7070,0,6306,1,59161,47,59821,5,144.9,0,16,63,0,+,+++,118,0,59,0,+,+++,152,0
>
>
>
> OpenBSD 4.1 (GENERIC.MP) #1225: Sat Mar 10 19:23:18 MST 2007
> [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
> cpu0: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz ("GenuineIntel" 686-class) 2.13 GHz
> cpu0: 
FPU,V86,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,CX16,xTPR
> real mem  = 1071718400 (1046600K)
> avail mem = 970432512 (947688K)
> using 4278 buffers containing 53710848 bytes (52452K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+ BIOS, date 03/28/07, BIOS32 rev. 0 @ 0xffe90, 
SMBIOS rev. 2.3 @ 0xf0450 (63 entries)
> bios0: Dell Inc. PowerEdge SC440
> apm0 at bios0: Power Management spec V1.2
> apm0: AC on, battery charge unknown
> apm0: flags 30102 dobusy 0 doidle 1
> pcibios0 at bios0: rev 2.1 @ 0xf/0x1
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfed10/256 (14 entries)
> pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801GH LPC" rev 0x00)
> pcibios0: PCI bus #6 is the last bus
> bios0: ROM list: 0xc/0x9000 0xc9000/0x6000 0xcf000/0x800 0xcf800/0x2000! 
0xd1800/0x2800
> acpi at mainbus0 not configured
> mainbus0: Intel MP Specification (Version 1.4)
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: apic clock running at 265 MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz ("GenuineIntel" 686-class) 2.13 GHz
> cpu1: 
FPU,V86,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,CX16,xTPR
> mainbus0: bus 0 is type PCI
> mainbus0: bus 1 is type PCI
> mainbus0: bus 2 is type PCI
> mainbus0: bus 3 is type PCI
> mainbus0: bus 4 is type PCI
> mainbus0: bus 5 is type PCI
> mainbus0: bus 6 is type PCI
> mainbus0: bus 7 is type ISA
> ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
> ioapic0: misconfigured as apic 0, remapped to apid 8
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel E7230 MCH" rev 0x00
> ppb0 at pci0 dev 1 function 0 "Intel E7230 PCIE" rev 0x00
> pci1 at ppb0 bus 1
> ppb1 at pci1 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09
> pci2 at ppb1 bus 2
> mpi0 at pci2 dev 8 function 0 "Symbios Logic SAS1068" rev 0x01: apic 8 int 16 
(irq 11)
> scsibus0 at mpi0: 112 targets
> sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct fixed
> sd0: 237464MB, 237464 cyl, 16 head, 128 sec, 512 bytes/sec, 486326272 sec 
total
> ppb2 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01
> pci3 at ppb2 bus 3
> ppb3 at pci0 dev 28 function 4 "Intel 82801G PCIE" rev 0x01
> pci4 at ppb3 bus 4
> ppb4 at pci0 dev 28 function 5 "Intel 82801G PCIE" rev 0x01
> pci5 at ppb4 bus 5
> bge0 at pci5 dev 0 function 0 "Broadcom BCM5754" rev 0x02, BCM5787 A2 
(0xb002): apic 8 int 17 (irq 10), address 00:1a:a0:25:98:f7
> brgphy0 at bge0 phy 1: BCM5787 10/100/1000baseT PHY, rev. 0
> uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 8 int 21 
(irq 9)
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 8 int 22 
(irq 5)
> usb1 at uhci1: USB revision 1.0
> uhub1 at usb1
> uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub1: 2 ports with 2 removable

Re: print filter?

2007-07-14 Thread Douglas Allan Tutty
On Sat, Jul 14, 2007 at 07:22:41PM +0200, Adriaan wrote:
> On 7/14/07, Douglas Allan Tutty <[EMAIL PROTECTED]> wrote:
> >I'm wondering what the OBSD people generally use for print filtering.  I
> >have an old IBM PC Graphics printer (dot-matrix) attached to my debian
> >box but everyone there seems to use CUPS.  I could just as easily
> >connect the printer to my OBSD box.
> >
 
> Have a look at apsfilter. Simple to install as a pre-compiled binary
> package. apsfilter needs ghostscript as well as a2ps.
> There one small thing you may have to fix. a reference to gawk in the
> SETUP script. I just changed it to "/usr/bin/awk".
> 

Thanks Adriaan,

I'm familiar with apsfilter and actually just got it to work with this
printer on my debian box with debian's stock gs-gpl.

Part of my reason for asking on OBSD is that I'm exploring the larger
issue of licensing.  I know that OBSD folk tend to prefer stuff with a
BSD license rather than that GPL.  Apsfilter is GPL (plus a 'please send
a postcard').

So I supposet a more specific but more general question would be:  Is
there a pure BSD-licensed print filtering option?

Thanks,

Doug.



Re: DELL PERC 5iR slow performance

2007-07-14 Thread Marco Peereboom
I bet write cache is disabled.  I don't recall if you can enable it in
the bios but have a look.

On Sun, Jul 15, 2007 at 01:32:25AM +0800, Brandon Lee wrote:
> Hi,
> 
> I have a DELL SC440 box with a DELL SAS 5i/R Raid controller.
> Installing OpenBSD 4.1 on the box, everything looks good except for
> the DELL SAS controller performance.
> 
> Have tried to search the mailling list archive as well as build the
> latest current kernel but doesnt help.   Attached is the dmesg and
> bonie++ test on the RAID 1 virtual disk.
> 
> 
> -- 
> ./Brandon
> Version  1.03   --Sequential Output-- --Sequential Input- 
> --Random-
> -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- 
> --Seeks--
> MachineSize K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec 
> %CP
> puffy.bsdway.n 512M  6893   3  7070   0  6306   1 59161  47 59821   5 144.9   > 0
> --Sequential Create-- Random 
> Create
> -Create-- --Read--- -Delete-- -Create-- --Read--- 
> -Delete--
>   files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec 
> %CP
>  1663   0 + +++   118   059   0 + +++   152   > 0
> puffy.bsdway.net,512M,6893,3,7070,0,6306,1,59161,47,59821,5,144.9,0,16,63,0,+,+++,118,0,59,0,+,+++,152,0
> 
> 
> 
> OpenBSD 4.1 (GENERIC.MP) #1225: Sat Mar 10 19:23:18 MST 2007
> [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
> cpu0: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz ("GenuineIntel" 686-class) 2.13 GHz
> cpu0: 
> FPU,V86,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,CX16,xTPR
> real mem  = 1071718400 (1046600K)
> avail mem = 970432512 (947688K)
> using 4278 buffers containing 53710848 bytes (52452K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+ BIOS, date 03/28/07, BIOS32 rev. 0 @ 0xffe90, 
> SMBIOS rev. 2.3 @ 0xf0450 (63 entries)
> bios0: Dell Inc. PowerEdge SC440
> apm0 at bios0: Power Management spec V1.2
> apm0: AC on, battery charge unknown
> apm0: flags 30102 dobusy 0 doidle 1
> pcibios0 at bios0: rev 2.1 @ 0xf/0x1
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfed10/256 (14 entries)
> pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801GH LPC" rev 0x00)
> pcibios0: PCI bus #6 is the last bus
> bios0: ROM list: 0xc/0x9000 0xc9000/0x6000 0xcf000/0x800 0xcf800/0x2000! 
> 0xd1800/0x2800
> acpi at mainbus0 not configured
> mainbus0: Intel MP Specification (Version 1.4)
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: apic clock running at 265 MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz ("GenuineIntel" 686-class) 2.13 GHz
> cpu1: 
> FPU,V86,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,CX16,xTPR
> mainbus0: bus 0 is type PCI
> mainbus0: bus 1 is type PCI
> mainbus0: bus 2 is type PCI
> mainbus0: bus 3 is type PCI
> mainbus0: bus 4 is type PCI
> mainbus0: bus 5 is type PCI
> mainbus0: bus 6 is type PCI
> mainbus0: bus 7 is type ISA
> ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
> ioapic0: misconfigured as apic 0, remapped to apid 8
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel E7230 MCH" rev 0x00
> ppb0 at pci0 dev 1 function 0 "Intel E7230 PCIE" rev 0x00
> pci1 at ppb0 bus 1
> ppb1 at pci1 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09
> pci2 at ppb1 bus 2
> mpi0 at pci2 dev 8 function 0 "Symbios Logic SAS1068" rev 0x01: apic 8 int 16 
> (irq 11)
> scsibus0 at mpi0: 112 targets
> sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct fixed
> sd0: 237464MB, 237464 cyl, 16 head, 128 sec, 512 bytes/sec, 486326272 sec 
> total
> ppb2 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01
> pci3 at ppb2 bus 3
> ppb3 at pci0 dev 28 function 4 "Intel 82801G PCIE" rev 0x01
> pci4 at ppb3 bus 4
> ppb4 at pci0 dev 28 function 5 "Intel 82801G PCIE" rev 0x01
> pci5 at ppb4 bus 5
> bge0 at pci5 dev 0 function 0 "Broadcom BCM5754" rev 0x02, BCM5787 A2 
> (0xb002): apic 8 int 17 (irq 10), address 00:1a:a0:25:98:f7
> brgphy0 at bge0 phy 1: BCM5787 10/100/1000baseT PHY, rev. 0
> uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 8 int 21 
> (irq 9)
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 8 int 22 
> (irq 5)
> usb1 at uhci1: USB revision 1.0
> uhub1 at usb1
> uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub1: 2 ports with 2 removable, self powered
> uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 8 int 18 
> (irq 3)
> usb2 at uhci2: USB revision 1.0
> uhub2 at usb2
> uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub2: 2 ports with 2 r

Re: Video problems (and others?) with ASRock 755i65G/Intel 865G

2007-07-14 Thread Matthieu Herrb

On 7/13/07, Andris <[EMAIL PROTECTED]> wrote:

On 7/13/07, Matthieu Herrb <[EMAIL PROTECTED]> wrote:
> On 7/13/07, Andris <[EMAIL PROTECTED]> wrote:
> > Hi, I just got a computer yesterday, which has an ASRock 755i65G*
> > motherboard, with an Intel 865G* chipset, 512 MB of RAM, and a
> > ViewSonic E70f+* monitor. I'm using OpenBSD 4.1-stable (i386/GENERIC).
> >
> > I tried to make it run under 1024x768, 24bpp, a h-sync of 30~70kHz and
> > a v-sync of 50~160Hz). I can't make X run on it, I've tried i810(4),
> > whose man page says it supports my integrated video solution (865G).
> > But the X server crashes after showing the cursor for a sec.
> >
> > Here is the X log:
>
> From you log, the X server is ok. The problem looks more like a
> problem with your .xinitrc or something like that.
>
> Can you tell us how you startx X, and try to capture the command's
> stdout and stderr ?
>
> If you're running ksh or bash, this should be something like
>
> startx > startx.log 2>&1
>
> and then look at startx.log for obvious errors, or share it here if
> you don't see anything meaningful for you.
>

Hi, after moving .xinitrc to .xinitrc.bak I could start X with no
problems, and it doesn't crash :)

I had this line in it:
exec /usr/X11R6/bin/xset r rate 250 50


The 'exec' there is wrong, it causes the shell that parses the
.xinitrc to replace itself with the 'xset' command, which in turn
exits when it has set up the rate.
So the whole .xinitrc script is now done, causing what your were seeing.


It worked with a previous computer, didn't think it would cause
problems.


Are you sure it was exactly the same line ? without the 'exec' it
would have been fine, but with the 'exec'  there's no way it would
work, except it you had it *after* another 'exec' command, for
instance 'exec fvwm'. 'fvwm' doesn't exit until you select 'exit' from
its menu. So 'exec'ing the window manager in .xinitrc is correct, but
since 'exec' replaces the shell with the program it executes, the
lines after an 'exec' in any shell script are ignored.



DELL PERC 5iR slow performance

2007-07-14 Thread Brandon Lee
Hi,

I have a DELL SC440 box with a DELL SAS 5i/R Raid controller.
Installing OpenBSD 4.1 on the box, everything looks good except for
the DELL SAS controller performance.

Have tried to search the mailling list archive as well as build the
latest current kernel but doesnt help.   Attached is the dmesg and
bonie++ test on the RAID 1 virtual disk.


-- 
./Brandon
Version  1.03   --Sequential Output-- --Sequential Input- --Random-

-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--

MachineSize K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP

puffy.bsdway.n 512M  6893   3  7070   0  6306   1 59161  47 59821   5 144.9   0

--Sequential Create-- Random Create

-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--

  files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP

 1663   0 + +++   118   059   0 + +++   152   0

puffy.bsdway.net,512M,6893,3,7070,0,6306,1,59161,47,59821,5,144.9,0,16,63,0,+,+++,118,0,59,0,+,+++,152,0







OpenBSD 4.1 (GENERIC.MP) #1225: Sat Mar 10 19:23:18 MST 2007

[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP

cpu0: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz ("GenuineIntel" 686-class) 2.13 GHz

cpu0: 
FPU,V86,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,CX16,xTPR

real mem  = 1071718400 (1046600K)

avail mem = 970432512 (947688K)

using 4278 buffers containing 53710848 bytes (52452K) of memory

mainbus0 (root)

bios0 at mainbus0: AT/286+ BIOS, date 03/28/07, BIOS32 rev. 0 @ 0xffe90, SMBIOS 
rev. 2.3 @ 0xf0450 (63 entries)

bios0: Dell Inc. PowerEdge SC440

apm0 at bios0: Power Management spec V1.2

apm0: AC on, battery charge unknown

apm0: flags 30102 dobusy 0 doidle 1

pcibios0 at bios0: rev 2.1 @ 0xf/0x1

pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfed10/256 (14 entries)

pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801GH LPC" rev 0x00)

pcibios0: PCI bus #6 is the last bus

bios0: ROM list: 0xc/0x9000 0xc9000/0x6000 0xcf000/0x800 0xcf800/0x2000! 
0xd1800/0x2800

acpi at mainbus0 not configured

mainbus0: Intel MP Specification (Version 1.4)

cpu0 at mainbus0: apid 0 (boot processor)

cpu0: apic clock running at 265 MHz

cpu1 at mainbus0: apid 1 (application processor)

cpu1: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz ("GenuineIntel" 686-class) 2.13 GHz

cpu1: 
FPU,V86,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,CX16,xTPR

mainbus0: bus 0 is type PCI

mainbus0: bus 1 is type PCI

mainbus0: bus 2 is type PCI

mainbus0: bus 3 is type PCI

mainbus0: bus 4 is type PCI

mainbus0: bus 5 is type PCI

mainbus0: bus 6 is type PCI

mainbus0: bus 7 is type ISA

ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins

ioapic0: misconfigured as apic 0, remapped to apid 8

pci0 at mainbus0 bus 0: configuration mode 1 (no bios)

pchb0 at pci0 dev 0 function 0 "Intel E7230 MCH" rev 0x00

ppb0 at pci0 dev 1 function 0 "Intel E7230 PCIE" rev 0x00

pci1 at ppb0 bus 1

ppb1 at pci1 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09

pci2 at ppb1 bus 2

mpi0 at pci2 dev 8 function 0 "Symbios Logic SAS1068" rev 0x01: apic 8 int 16 
(irq 11)

scsibus0 at mpi0: 112 targets

sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct fixed

sd0: 237464MB, 237464 cyl, 16 head, 128 sec, 512 bytes/sec, 486326272 sec total

ppb2 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01

pci3 at ppb2 bus 3

ppb3 at pci0 dev 28 function 4 "Intel 82801G PCIE" rev 0x01

pci4 at ppb3 bus 4

ppb4 at pci0 dev 28 function 5 "Intel 82801G PCIE" rev 0x01

pci5 at ppb4 bus 5

bge0 at pci5 dev 0 function 0 "Broadcom BCM5754" rev 0x02, BCM5787 A2 (0xb002): 
apic 8 int 17 (irq 10), address 00:1a:a0:25:98:f7

brgphy0 at bge0 phy 1: BCM5787 10/100/1000baseT PHY, rev. 0

uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 8 int 21 
(irq 9)

usb0 at uhci0: USB revision 1.0

uhub0 at usb0

uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1

uhub0: 2 ports with 2 removable, self powered

uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 8 int 22 
(irq 5)

usb1 at uhci1: USB revision 1.0

uhub1 at usb1

uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1

uhub1: 2 ports with 2 removable, self powered

uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 8 int 18 
(irq 3)

usb2 at uhci2: USB revision 1.0

uhub2 at usb2

uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1

uhub2: 2 ports with 2 removable, self powered

ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 8 int 21 
(irq 9)

usb3 at ehci0: USB revision 2.0

uhub3 at usb3

uhub3: Intel EHCI root hub, rev 2.00/1.00, addr 1

uhub3: 6 ports with 6 removable, self powered

ppb5 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 

Re: print filter?

2007-07-14 Thread Adriaan

On 7/14/07, Douglas Allan Tutty <[EMAIL PROTECTED]> wrote:

I'm wondering what the OBSD people generally use for print filtering.  I
have an old IBM PC Graphics printer (dot-matrix) attached to my debian
box but everyone there seems to use CUPS.  I could just as easily
connect the printer to my OBSD box.

The last time I used this printer to print postscript was a few years
ago.  It was connected to a debian box running LPRng but debian's gs
did't have a driver that would work.  I ended up using foomatic and
gs-esp with the ML 320 driver.

foomatic and cups seems like going overboard for something so simple.
So what do OBSD people use?


Have a look at apsfilter. Simple to install as a pre-compiled binary
package. apsfilter needs ghostscript as well as a2ps.
There one small thing you may have to fix. a reference to gawk in the
SETUP script. I just changed it to "/usr/bin/awk".

=Adriaan=



calling syscalls directly from asm

2007-07-14 Thread Vincent GROSS

Hi folks,

I would like to call write(2) without going through the libc functions. I wrote
this little thing to test, it does not print anything, but friends say
it works just
fine with linux. I did check the addresses and operands in the resulting
binary with objdump, everything has the correct values. What am I doing
wrong ? Feel free to cluebat me to death if I missed some obvious point ...


#include 
#include 

char hexstr[12] = "0x\n" ;

int main(int argc, char *argv[]){
 unsigned int stack_ptr ;
 unsigned int str_addr ;
 int *page_start ;
 int page[1024] ;
 int i ;
 int __ret ;
 asm("movl %%ebp, %0" : "=r"(stack_ptr)) ;
 str_addr = (unsigned int)hexstr ;
 page_start = (int *)(stack_ptr & ~0xFFF) ;
 for (i = 0 ; i < 8 ; i++){
   switch ((stack_ptr >> (i*4)) & 0xf){
   case 0 :
 hexstr[9-i] = '0' ;
 break ;
   case 1 :
 hexstr[9-i] = '1' ;
 break ;
   case 2 :
 hexstr[9-i] = '2' ;
 break ;
   case 3 :
 hexstr[9-i] = '3' ;
 break ;
   case 4 :
 hexstr[9-i] = '4' ;
 break ;
   case 5 :
 hexstr[9-i] = '5' ;
 break ;
   case 6 :
 hexstr[9-i] = '6' ;
 break ;
   case 7 :
 hexstr[9-i] = '7' ;
 break ;
   case 8 :
 hexstr[9-i] = '8' ;
 break ;
   case 9 :
 hexstr[9-i] = '9' ;
 break ;
   case 10 :
 hexstr[9-i] = 'a' ;
 break ;
   case 11 :
 hexstr[9-i] = 'b' ;
 break ;
   case 12 :
 hexstr[9-i] = 'c' ;
 break ;
   case 13 :
 hexstr[9-i] = 'd' ;
 break ;
   case 14 :
 hexstr[9-i] = 'e' ;
 break ;
   default :
 hexstr[9-i] = 'f' ;
   }
 }
 /*
 write(1, hexstr, 11) ;
 */
 asm volatile ("\n\tint $0x80"
: "=a"(__ret)
: "0"(4), "b"(1), "c"(hexstr), "d"(11));

 /*
 for (i = 0 ; i < 1024 ; i++){
   page[i] = page_start[i] ;
 }
 write(1, (char *)page, 4096) ;
 */
 exit(0) ;
}


--
Vincent GROSS
"GUIs normally make it simple to accomplish simple actions and
impossible to accomplish complex actions." --Doug Gwyn (22/Jun/91 in
comp.unix.wizards)



Re: Port to IBM RS/6000?

2007-07-14 Thread Timo Schoeler

thus Douglas Allan Tutty spake:

On Sat, Jul 14, 2007 at 02:55:32PM +0100, Timo Schoeler wrote:
Well, at the moment I have AIX 5.3 on that machine (before that, it was 
5.1 with which it was delivered to me). I also tried G*ntoo, but well, 
*cough* ;)


AIX isn't free in any sense.  I would be happy if IBM wanted to keep me
in up-to-date AIX without me continually spending money but that's not
going to happen.  


Doug.


Didn't write that AIX is free; wrote of GNU/Linux because it is 'sort of 
free', in some weird minds at least. ;)




print filter?

2007-07-14 Thread Douglas Allan Tutty
I'm wondering what the OBSD people generally use for print filtering.  I
have an old IBM PC Graphics printer (dot-matrix) attached to my debian
box but everyone there seems to use CUPS.  I could just as easily
connect the printer to my OBSD box.

The last time I used this printer to print postscript was a few years
ago.  It was connected to a debian box running LPRng but debian's gs
did't have a driver that would work.  I ended up using foomatic and
gs-esp with the ML 320 driver.

foomatic and cups seems like going overboard for something so simple.
So what do OBSD people use?

Thanks,

Doug.



Re: Port to IBM RS/6000?

2007-07-14 Thread Douglas Allan Tutty
On Sat, Jul 14, 2007 at 02:55:32PM +0100, Timo Schoeler wrote:
> Well, at the moment I have AIX 5.3 on that machine (before that, it was 
> 5.1 with which it was delivered to me). I also tried G*ntoo, but well, 
> *cough* ;)

AIX isn't free in any sense.  I would be happy if IBM wanted to keep me
in up-to-date AIX without me continually spending money but that's not
going to happen.  

Doug.



Re: Secure Network File System - Or Lack Thereof

2007-07-14 Thread Will Maier
On Sat, Jul 14, 2007 at 02:41:40PM +0200, Landry Breuil wrote:
> man -k afs seems to say that AFS is in base, using ARLA
> implementation. 

This is true, but ARLA doesn't have a production server
implementation available. The AFS client is great (and obviously)
interoperates with OpenAFS servers).

> (and OpenAFS is in ports)

This port is a bit broken, IIRC, and out of date. I spent a week or
two a few months ago trying to update the port, but it's
non-trivial. It would be great to update it, but I wasn't really
making progress.

-- 

o--{ Will Maier }--o
| web:...http://www.lfod.us/ | [EMAIL PROTECTED] |
*--[ BSD Unix: Live Free or Die ]--*



Re: Port to IBM RS/6000?

2007-07-14 Thread Timo Schoeler

Douglas Allan Tutty schrieb:

On Sat, Jul 14, 2007 at 12:54:12PM +0100, Timo Schoeler wrote:
if there's anyone interested in doing a port to RS/6000, I'd like to 
donate some hardware for this, e.g. a 7044-170 (Power3-II) machine, or 
RAM for some 7028 server.




I can't do a port but I wish there were one.  


I have a specific need for a/some powerful but low-frequency
computer(s).  I had the option of getting some 7025-H50s but I couldn't
find any free OS that would boot on the test machine.  Netbooting isn't
an option for me so I need the installer to media to boot.

Good luck.

Doug.


Well, at the moment I have AIX 5.3 on that machine (before that, it was 
5.1 with which it was delivered to me). I also tried G*ntoo, but well, 
*cough* ;)


Timo



Re: Secure Network File System - Or Lack Thereof

2007-07-14 Thread Antoine Jacoutot

On Sat, 14 Jul 2007, Landry Breuil wrote:

man -k afs seems to say that AFS is in base, using ARLA implementation. (and
OpenAFS is in ports)


Only the Arla _client_ is in base.

--
Antoine



Re: Secure Network File System - Or Lack Thereof

2007-07-14 Thread Landry Breuil
2007/7/14, Edd Barrett <[EMAIL PROTECTED]>:
>
> Hi,
>
> On 14/07/07, Markus Lude <[EMAIL PROTECTED]> wrote:
> > Whats your problem with AFS?
>
> It's not in base.


man -k afs seems to say that AFS is in base, using ARLA implementation. (and
OpenAFS is in ports)

Landry



Re: Port to IBM RS/6000?

2007-07-14 Thread Douglas Allan Tutty
On Sat, Jul 14, 2007 at 12:54:12PM +0100, Timo Schoeler wrote:
> if there's anyone interested in doing a port to RS/6000, I'd like to 
> donate some hardware for this, e.g. a 7044-170 (Power3-II) machine, or 
> RAM for some 7028 server.
> 

I can't do a port but I wish there were one.  

I have a specific need for a/some powerful but low-frequency
computer(s).  I had the option of getting some 7025-H50s but I couldn't
find any free OS that would boot on the test machine.  Netbooting isn't
an option for me so I need the installer to media to boot.

Good luck.

Doug.



Re: Secure Network File System - Or Lack Thereof

2007-07-14 Thread Edd Barrett

Hi,

On 14/07/07, Markus Lude <[EMAIL PROTECTED]> wrote:

Whats your problem with AFS?


It's not in base.

--
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett



Port to IBM RS/6000?

2007-07-14 Thread Timo Schoeler

Hi,

if there's anyone interested in doing a port to RS/6000, I'd like to 
donate some hardware for this, e.g. a 7044-170 (Power3-II) machine, or 
RAM for some 7028 server.


Timo



Disk encryption

2007-07-14 Thread Guenther Niess
Hi,
I would like to install openBSD on my laptop and encrypt the "whole
system", I mean I would like encrypt my whole hard disk and load the
necessary boot loader and kernel from an usb stick or cdrom. Has anyone
made experience with this?
I think I need the directories:
 /usr/mdec
 /boot
 /bsd
and the vnconfig binary on the boot device and write an init script
which mount and chroot the root partition.
I read in the manual that vnconfig use the blowfish algorithm but not
what key size and block cipher mode (CBC, LRW, CMC,...). Has anyone more
information about the vnconfig on the web or should I read the source 
files?
And by the way exists any tool which can encrypt and decrypt ms windows
partitions like truecrypt for windows and linux?

--
Best Regards
 
 Guenther Niess