Re: Segfault under MS Virtual Server 2005 R2 SP1 Enterprise Edition

2009-02-07 Thread Lars Noodén
Based on what I've seen from other peoples ongoing attempts at using
virtualization from the company you mentioned, it's not going to lead to
anything of practical value.

Instead, try Qemu or kqemu or virtualbox.  These are designed to
function and will at least give you a fighting chance of running a VM.


-Lars



Re: Segfault under MS Virtual Server 2005 R2 SP1 Enterprise Edition

2009-02-07 Thread Alexey Suslikov
larsnoo...@openoffice.org wrote:

 Based on what I've seen from other peoples ongoing attempts at using
 virtualization from the company you mentioned, it's not going to lead to
 anything of practical value.

What exactly wrong with Microsoft's (oh, gosh, I said that) virtualization
technologies?


 Instead, try Qemu or kqemu or virtualbox.  These are designed to
 function and will at least give you a fighting chance of running a VM.

How about VMware Server which is free and others (GSX/ESX)? I have
found VMware Server surprisingly useful in some environments where
one have limited choices but OpenBSD usage is highly recommended.

Alexey



Re: http version of spamd, anyone?

2009-02-07 Thread Jeffrey 'jf' Lim
On Wed, Feb 4, 2009 at 5:10 PM, Bryan Irvine sparcta...@gmail.com wrote:
 mod_dosevasive


not looking at something based on apache (more of like a separate
utility, like spamd), but thanks for that.

-jf



Re: Segfault under MS Virtual Server 2005 R2 SP1 Enterprise Edition

2009-02-07 Thread Lars Noodén
Alexey Suslikov wrote:
 larsnoo...@openoffice.org wrote:
 
 Based on what I've seen from other peoples ongoing attempts at using
 virtualization from the company you mentioned, it's not going to lead to
 anything of practical value.
 
 What exactly wrong with Microsoft's (oh, gosh, I said that) virtualization
 technologies?

That everyone I've seen try to use them has given up and called them a
waste of time.  Some even got it to work  The products are, at best,
buggy and not suitable for development, let alone other uses.  YMMV

 Instead, try Qemu or kqemu or virtualbox.  These are designed to
 function and will at least give you a fighting chance of running a VM.
 
 How about VMware Server which is free and others (GSX/ESX)? I have
 found VMware Server surprisingly useful in some environments where
 one have limited choices but OpenBSD usage is highly recommended.

I have a lot of third hand reports about VMware being useful.  However,
IIRC VMware is basically a broken linux kernel gone closed source.  A
quick scan of the VMware web site (albeit a very quick and sloppy scan)
shows nothing to the contrary.

In contrast, qemu and kqemu are part of OpenBSD ports, so OpenBSD can be
either the host or the guest:
 http://www.openbsd.org/4.4_packages/i386/kqemu-1.3.0pre11p3.tgz-long.html

http://www.openbsd.org/4.4_packages/i386/qemu-0.9.1p3.tgz-long.html


I have seen people running OpenBSD as a guest quite nicely on VirtualBox
as well.

Regards
-Lars



Re: http version of spamd, anyone?

2009-02-07 Thread Bryan Irvine
Move it to /var/tmp/dosevasive/ ... or something.



On Wed, Feb 4, 2009 at 1:29 AM, Gregory Edigarov
g...@bestnet.kharkov.ua wrote:
 Bryan Irvine wrote:

 mod_dosevasive


 piece of shit cluttering up /tmp to death

 On Mon, Feb 2, 2009 at 9:47 PM, Jeffrey 'jf' Lim jfs.wo...@gmail.com
 wrote:


 Is the project (or anybody) planning to work on something like spamd
 for http? Or does anybody know of any projects which do this already?

 I am looking for something to be (as per spamd) put in front of an
 actual server. A bunch of possible features i would be looking at:
 - blacklisting (should ideally allow for dynamic reloads without
 killing any existing valid connections)
 - tarpitting for open connections (no http request sent) beyond a
 certain timeout
 - tarpitting for invalid http requests
 - greytrapping (let's say u have only specific url patterns which
 are valid. Anything else, tarpit)


 thanks,
 -jf

 --
 In the meantime, here is your PSA:
 It's so hard to write a graphics driver that open-sourcing it would not
 help.
   -- Andrew Fear, Software Product Manager, NVIDIA Corporation
 http://kerneltrap.org/node/7228





 --
 With best regards,
Gregory Edigarov



Re: Disk stop when unused

2009-02-07 Thread Jean-François
Hi All,

atactl wd1 identify
gives : Power Management feature set
and   : Advanced Power Management feature set
atactl wd1 apmset 20
works.

atactl wd2 identify
gives : Power Management feature set
but no Advanced Power Management feature set
atactl wd2 apmset 20
results in atactl: ATA device returned Aborted Command.

Please help me to understand.
Thanks,
J-F

Le lundi 02 fC)vrier 2009 C  12:01 +, Stuart Henderson a C)crit :
 On 2009-02-02, Jean-Frangois jfsimon1...@gmail.com wrote:
  Dear All,
  Is there any way to autostop the HDDs after some time of idleness ?
  Under Linux it seems difficult since the hdd is needed to be
  ready/working all the time even when the system is idle. It seeC9s 2
  other points make the use of thois function not really possible.
 
  Since I will use a SSD disk (no noise and fast) of 32 GB to install the
  main system, the rotating HDD will only be a data system (I'll mount
  home or even less if required ...). In that configuration under OpenBSD,
  can I make use of this function for my such config ?
 
  (Thanks  regards)  disown
 
 atactl(8) apmset.



Re: mount_ffs = Invalid argument - Ok problem solved

2009-02-07 Thread Jean-François
Hi All,
Newfs worked the problem.

Thanks
Regards.

Le vendredi 06 fC)vrier 2009 C  20:40 +0100, Otto Moerbeek a C)crit :
 On Fri, Feb 06, 2009 at 06:13:06PM +0100, Jean-Fran?ois wrote:
 
  All,
  
  Missing infos :
  
  1) The command fdisk wd0 gives :
  
  Disk: wd0   geometry: 378150/82/63 [1953525168 Sectors]
  Offset: 0   Signature: 0xAA55
  Starting Ending LBA Info:
   #: id  C   H   S -  C   H   S [   start:size ]
  ---
   0: 00  0   0   0 -  0   0   0 [   0:   0 ]
  unused  
   1: 00  0   0   0 -  0   0   0 [   0:   0 ]
  unused  
   2: 00  0   0   0 -  0   0   0 [   0:   0 ]
  unused  
  *3: A6  0   1   1 - 378149  81  63 [  63:  1953522837 ]
  OpenBSD 
  
  2) The command disklabel wd0 gives :
  
  # /dev/rwd0c:
  type: ESDI
  disk: ESDI/IDE disk
  label: SAMSUNG HD103UJ 
  flags:
  bytes/sector: 512
  sectors/track: 63
  tracks/cylinder: 82
  sectors/cylinder: 5166
  cylinders: 378150
  total sectors: 1953525168
  rpm: 3600
  interleave: 1
  trackskew: 0
  cylinderskew: 0
  headswitch: 0 # microseconds
  track-to-track seek: 0 # microseconds
  drivedata: 0 
  
  16 partitions:
  #size   offset  fstype [fsize bsize  cpg]
a:   1953522837   63  4.2BSD   2048 163841 
c:   19535251680  unused  0 0
  
  Thanks,
  JF
 
 Did you run newfs on wd0a ?
 
   -Otto
 
  
  Le vendredi 06 fC)vrier 2009 C  17:44 +0100, Jean-FranC'ois a C)crit :
   Hi All,
   
   I used to have a disk with Ext3 partitions that I just wish to use now
   as a ffs disk in OpenBSD. So I used fdisk and disklabel in order to make
   new system and finally this does not mount returning Invalid argument.
   
   Do I miss something ? I did'nt find a way to format the disk, is this
   required ? I just made a clean new system on it using fdisk and one
   label a containing the whole space.
   
   Please help.
   
   Thanks,
   J-F



Re: Is this panic related to +ExecCGI?

2009-02-07 Thread Stuart Henderson
On 2009-02-07, Uwe Dippel udip...@gmail.com wrote:
 Ted Unangst wrote:
 You ran out of swap.

 Thanks, Ted, for the fast reply and immediate insight. So it must have 
 to do with that perl-program, since what I usually see is something like:
 Memory: Real: 107M/347M act/tot  Free: 1637M  Swap: 0K/2151M used/tot

 Slightly off-topic:
 Would it rather be perl committing all that memory or httpd?

add some instrumentation and you'll find out. symon can be good
for this sort of thing (you can have it monitor memory/cpu use of
specific processes at a frequent interval and graph them).

 Can this be prevented one way or another?

login.conf



Re: Instability in -current with ral/rt2860?

2009-02-07 Thread Stuart Henderson
In gmane.os.openbsd.misc, you wrote:
 Hi,

 In a net5501 I have a rt2860 ral card, running the Feb 04 snapshot:
 ral0 at pci0 dev 14 function 0 Ralink RT2860 rev 0x00: irq 10
 ral0: MAC/BBP RT2860 (rev 0x0101), RF RT2820 (MIMO 2T3R)

 I've been trying snapshots off and on since damien@ started tinkering with 
 the rt2860 code two months ago. With any snapshot from the last 2 months, I 
 can't get the box to stay up for more than 2 hours (or less) without it 
 rebooting. If I turn off the watchdog timer, it will just hang without 
 printing any messages. If I ifconfig ral0 down, the box is rock stable.

enable ddb.console=1 and send it a BREAK, see if you can get some
trace out of ddb.

leave some sessions open, run things like top -s.1, systat vmstat .1
and see what the system's doing when it freezes.

send dmesg :-)

 Is anyone else seeing this with -current or a snapshot, with this ral or a 
 different one? I'd file a problem report but there's nothing to go on, 
 other than my suspicions that the changes to rt2860 in the last 2 months 
 are the cause.
 I can try to narrow it down to a specific commit if that will help?

I've been running recent snaps on an ALIX board with RT2860 with
no trouble.



Re: Instability in -current with ral/rt2860?

2009-02-07 Thread Dorian Büttner

bbee schrieb:

Hi,

In a net5501 I have a rt2860 ral card, running the Feb 04 snapshot:
ral0 at pci0 dev 14 function 0 Ralink RT2860 rev 0x00: irq 10
ral0: MAC/BBP RT2860 (rev 0x0101), RF RT2820 (MIMO 2T3R)

Do you also have the mini pci card? Here is mine, which I got myself 2 
or 3 days ago:
ral0 at pci0 dev 17 function 0 Ralink RT2860 rev 0x00: irq 15, address 
00:08:54:86:5e:6e

ral0: MAC/BBP RT2860 (rev 0x0101), RF RT2820 (MIMO 2T3R)
Also in a net5501.
I've been trying snapshots off and on since damien@ started tinkering 
with the rt2860 code two months ago. With any snapshot from the last 2 
months, I can't get the box to stay up for more than 2 hours (or less) 
without it rebooting. If I turn off the watchdog timer, it will just 
hang without printing any messages. If I ifconfig ral0 down, the box 
is rock stable.


Is anyone else seeing this with -current or a snapshot, with this ral 
or a different one? I'd file a problem report but there's nothing to 
go on, other than my suspicions that the changes to rt2860 in the last 
2 months are the cause.

I can try to narrow it down to a specific commit if that will help?

Totally can't confirm the 2 hour time frame with the need for reboot. I 
have connection loss every now and then, but I'm just on my way getting 
some external antennas for the box, hope that will help. During initial 
setup, but that will be more a problem on configuration side (pf or 
somewhat) I had a system crash which made the box come with a date 20h 
in future, which I haven't seen before.
Can you assure your powersupply is ok/not running at it's limit? There 
have been issues with those originally shipped with the 5501.
If I switch to a 4.4 kernel, the hangs stop but the widely reported 
ral traffic freezes are still there (PR 5958), which was what I was 
hoping to fix.


Please CC,

bbee




Re: http version of spamd, anyone?

2009-02-07 Thread Jeffrey 'jf' Lim
On Sat, Feb 7, 2009 at 9:58 PM, Matt Hildebrand
matt.hildebr...@gmail.com wrote:
 HAProxy appears to have some tarpitting capability (although I've
 never used HAProxy and so cannot comment).

 Hope this helps.


thanks. I use that already in production for load-balancing (and it's
great). But as for tarpitting, it doesn't have the majority of what I
need... - no blacklisting, no tarpitting
open-connections-without-http-request, and no tarpitting for invalid
requests.

Its tarpitting is really quite simplistic. And it's not the tcp
window set to 1 network level tarpitting i'm looking at.

-jf

--
In the meantime, here is your PSA:
It's so hard to write a graphics driver that open-sourcing it would not help.
-- Andrew Fear, Software Product Manager, NVIDIA Corporation
http://kerneltrap.org/node/7228



Re: Segfault under MS Virtual Server 2005 R2 SP1 Enterprise Edition

2009-02-07 Thread Steve Shockley

On 2/7/2009 4:56 AM, Lars NoodC)n wrote:

I have a lot of third hand reports about VMware being useful.  However,
IIRC VMware is basically a broken linux kernel gone closed source.  A
quick scan of the VMware web site (albeit a very quick and sloppy scan)
shows nothing to the contrary.


Oh, do they have unbroken Linux kernels now?/haha  They do provide the 
source, although to build it you need a closed-source SDK.


VMware ESX/VI are based on a Linux kernel.  VMware Server and 
Workstation don't include a kernel and run on Windows and Linux. 
(On-topic: OpenBSD runs well in recent versions of VI, Workstation and 
Server.)


Come on, if you're going to attack someone, at least have some facts. 
For example, you probably wouldn't appreciate:


 I have a lot of third hand reports about Open Office being useful.
 However, IIRC Open Office is basically a broken StarOffice gone
 open source.  A quick scan of the Open Office web site (albeit a
 very quick and sloppy scan) shows nothing to the contrary.



Re: Segfault under MS Virtual Server 2005 R2 SP1 Enterprise Edition

2009-02-07 Thread Lars Noodén
Steve Shockley wrote:
 Come on, if you're going to attack someone, at least have some facts.

Check for yourself: The licensing information is not readily available
on the VMware site.  Take 2 minutes and check.

Regarding the nature of VMware, take 2 minutes and use a search engine:
http://www.theinquirer.net/inquirer/news/087/1010087/vmware-uses-a-badly-hacked-linux-kernel---claim

None of it is relevant, from the VMware website it appears not to be
F/OSS.  The server and client do seem to be binary-only, proprietary,
closed source.

Regards,
-Lars



Re: Is this panic related to +ExecCGI?

2009-02-07 Thread Uwe Dippel

 Slightly off-topic:
 Would it rather be perl committing all that memory or httpd?

add some instrumentation and you'll find out. symon can be good
for this sort of thing (you can have it monitor memory/cpu use of
specific processes at a frequent interval and graph them).

 Can this be prevented one way or another?

login.conf
  


So I thought. I had read the man page a few times, but still lack the 
understanding where to best put the limits. Currently, the user sits on 
default, with

datasize-max=512M:\
datasize-cur=512M:\
:maxproc-max=128:\
:maxproc-cur=64:\
openfiles-cur=128:\
stacksize-cur=4M:\
The datasize doesn't seem to cut it, the free mem+swap usually is around 
3.5G. Now I wonder which of the following is best employed limiting the 
system usage below die-off:

cputime, filesize, memoryuse, vmemoryuse?

Is there any further description, a link or a document available with a 
formula on 'how to prevent one's system from running out of resources at 
all cost'? That would be the greatest and best; then I could put that 
user into this class, and she could never bring down the system, right?


Thanks,

Uwe



Re: Is this panic related to +ExecCGI?

2009-02-07 Thread Ted Unangst

On Feb 7, 2009, at 11:35 AM, Uwe Dippel udip...@gmail.com


Is there any further description, a link or a document available  
with a formula on 'how to prevent one's system from running out of  
resources at all cost'? That would be the greatest and best; then I  
could put that user into this class, and she could never bring down  
the system, right?


Openbsd uses overcommit, so there's always a way to ask for more then  
is available, and then die when you try to use it. You can't turn it  
off.  Life without overcommit would suck anyway.  There's no way to  
guarantee what you want. 



Canada immigration

2009-02-07 Thread Agence Casa ElFirdaous
WARNING: contains undecipherable part
Received: from unicornia896a8 (adsl-147-176-192-81.adsl2.iam.net.ma 
[81.192.176.147])
by mail.cashcom.ma (Postfix/TrioOS) with ESMTP id B9EEA1200A390
for MISC@OPENBSD.ORG; Sat,  7 Feb 2009 18:28:39 + (WET)
From: Agence Casa ElFirdaous casa.elfirda...@dialcom.ma
To: MISC@OPENBSD.ORG
Subject: Canada immigration
Date: Sat, 7 Feb 2009 17:31:03 +0100
MIME-Version: 1.0
X-Security: message sanitized on shear.ucar.edu See 
http://www.impsec.org/email-tools/sanitizer-intro.html for details. $Revision: 
1.147 $Date: 2004-10-02 11:16:26-07 
Content-Type: text/plain; charset=us-ascii
X-Mailer: Microsoft Office Outlook, Build 11.0.5510
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-MS-TNEF-Correlator: D67849FBE0A2614284D66D50471F1152A4D72200
Message-Id: 20090207182839.b9eea1200a...@mail.cashcom.ma
X-Converted-To-Plain-Text: from multipart/mixed by demime 1.01d
X-Converted-To-Plain-Text: Alternative section used was text/plain

The debate is no longer about whether Canada should remain open to
immigration. That debate became moot when Canadians realized that low birth
rates and an aging population would eventually lead to a shrinking populace.
Baby bonuses and other such incentives couldn't convince Canadians to have
more kids, and demographic experts have forecasted that a Canada without
immigration would pretty much disintegrate as a nation by 2050.
Download the attached file to know about the required forms.
The sender of this email got this article from our side and forwarded it to
you.




  The original file name is IMM_Forms_E01.rar and compressed by WinRAR no
virus found.
  Use WinRAR to decompress the file.

[demime 1.01d removed an attachment of type application/ms-tnef which had a 
name of winmail.dat]



Problems getting tentakel running on 4.4

2009-02-07 Thread Falk Brockerhoff - smartTERRA GmbH

Hi there,

I just installied tentakel tentakel-2.1.2p1 using python-2.5.2p4 on  
OpenBSD 4.4 GENERIC#1021 i386. When I call this utility I get the  
following error message:


$ tentakel
Traceback (most recent call last):
  File /usr/local/bin/tentakel, line 94, in module
conf.load(configfile)
  File /usr/obj/i386/tentakel-2.1.2p1/fake-i386/usr/local/lib/ 
python2.5/site-packages/lekatnet/config.py, line 163, in load
  File /usr/obj/i386/tentakel-2.1.2p1/fake-i386/usr/local/lib/ 
python2.5/site-packages/lekatnet/config.py, line 155, in parse
  File /usr/obj/i386/tentakel-2.1.2p1/fake-i386/usr/local/lib/ 
python2.5/site-packages/lekatnet/tpg.py, line 921, in __call__
  File /usr/obj/i386/tentakel-2.1.2p1/fake-i386/usr/local/lib/ 
python2.5/site-packages/lekatnet/tpg.py, line 934, in parse

  File string, line 8, in START
  File string, line 5, in SETTING
  File string, line 15, in PARAM
  File /usr/obj/i386/tentakel-2.1.2p1/fake-i386/usr/local/lib/ 
python2.5/site-packages/lekatnet/tpg.py, line 986, in extract

TypeError: object cannot be interpreted as an index

I found this post to openbsd-security, but I'm not able to install  
neither python-2.4.4p4 or python-2.4.4p6 (from 4.2 / 4.3 packages) on  
my (4.4) system:


http://archives.neohapsis.com/archives/openbsd/2007-10/1567.html

$ sudo pkg_add python-2.4.4p6.tgz
Can't install python-2.4.4p6: lib not found c.43.0
c.43.0: partial match in /usr/lib: major=48, minor=0 (bad major)
Can't install python-2.4.4p6: lib not found crypto.13.0
crypto.13.0: partial match in /usr/lib: major=14, minor=0 (bad major)
Can't install python-2.4.4p6: lib not found m.2.3
m.2.3: partial match in /usr/lib: major=3, minor=0 (bad major)
Can't install python-2.4.4p6: lib not found pthread.9.0
pthread.9.0: partial match in /usr/lib: major=11, minor=0 (bad major)
Can't install python-2.4.4p6: lib not found stdc++.44.0
stdc++.44.0: partial match in /usr/lib: major=45, minor=0 (bad major)


Any idea how to get tentakel running?

dmesg below.

Regards,

Falk



OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) III CPU - S 1400MHz (GenuineIntel 686- 
class) 1.40 GHz
cpu0:  
FPU 
,V86 
,DE 
,PSE 
,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE

real mem  = 1073250304 (1023MB)
avail mem = 1029357568 (981MB)
User Kernel Config
UKC disable acpi
429 acpi0 disabled
UKC di\^H \^H\^H \^Hboot
Unknown command, try help
UKC exit
Continuing...
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 05/01/03, BIOS32 rev. 0 @  
0xffe90, SMBIOS rev. 2.3 @ 0xfb240 (47 entries)

bios0: vendor Dell Computer Corporation version A10 date 05/01/2003
bios0: Dell Computer Corporation PowerEdge 1650
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfc220/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:15:0 (ServerWorks CSB5 rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x1000 0xc9000/0x6000  
0xcf000/0x600 0xec000/0x4000!

ipmi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 ServerWorks CNB20HE Host rev 0x23
pci1 at pchb0 bus 1
em0 at pci1 dev 2 function 0 Intel PRO/1000XT (82544EI) rev 0x02:  
irq 7, address 00:0b:db:90:e6:67
em1 at pci1 dev 4 function 0 Intel PRO/1000XT (82544EI) rev 0x02:  
irq 5, address 00:0b:db:90:e6:68

ahc0 at pci1 dev 6 function 0 Adaptec AIC-7899 U160 rev 0x01: irq 11
scsibus0 at ahc0: 16 targets, initiator 7
sd0 at scsibus0 targ 0 lun 0: QUANTUM, ATLAS10K3_18_SCA, 120G SCSI3  
0/direct fixed
sd0: 17366MB, 31022 cyl, 2 head, 573 sec, 512 bytes/sec, 35566478 sec  
total
safte0 at scsibus0 targ 6 lun 0: PE/PV, 1x3 SCSI BP, 0.29 SCSI2 3/ 
processor fixed

ahc1 at pci1 dev 6 function 1 Adaptec AIC-7899 U160 rev 0x01: irq 7
scsibus1 at ahc1: 16 targets, initiator 7
pchb1 at pci0 dev 0 function 1 ServerWorks CNB20HE Host rev 0x01
pchb2 at pci0 dev 0 function 2 ServerWorks CNB20HE Host rev 0x01
pchb3 at pci0 dev 0 function 3 ServerWorks CNB20HE Host rev 0x01
pci2 at pchb3 bus 2
Dell DRAC 4 Embedded/Optional rev 0x00 at pci0 dev 8 function 0 not  
configured
puc0 at pci0 dev 8 function 1 Dell DRAC 3 Virtual UART rev 0x00:  
ports: 1 com

com3 at puc0 port 0 irq 7: ns16550a, 16 byte fifo
com3: probed fifo depth: 0 bytes
Dell DRAC 3 Embedded/Optional rev 0x00 at pci0 dev 8 function 2 not  
configured
fxp0 at pci0 dev 10 function 0 Intel 8255x rev 0x0d, i82550: irq 11,  
address 00:02:b3:ed:94:75

inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
vga1 at pci0 dev 12 function 0 ATI Rage XL rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
drm at vga1 unsupported
piixpm0 at pci0 dev 15 function 0 ServerWorks CSB5 rev 0x93: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 512MB SDRAM registered 

Re: Instability in -current with ral/rt2860?

2009-02-07 Thread bbee

On Sat, 7 Feb 2009, Stuart Henderson wrote:

In gmane.os.openbsd.misc, you wrote:

In a net5501 I have a rt2860 ral card, running the Feb 04 snapshot:
ral0 at pci0 dev 14 function 0 Ralink RT2860 rev 0x00: irq 10
ral0: MAC/BBP RT2860 (rev 0x0101), RF RT2820 (MIMO 2T3R)

I've been trying snapshots off and on since damien@ started tinkering with
the rt2860 code two months ago. With any snapshot from the last 2 months, I
can't get the box to stay up for more than 2 hours (or less) without it
rebooting. If I turn off the watchdog timer, it will just hang without
printing any messages. If I ifconfig ral0 down, the box is rock stable.


enable ddb.console=1 and send it a BREAK, see if you can get some
trace out of ddb.


Thanks for the suggestion. I tried it, but the kernel's not responding to 
the break :(



leave some sessions open, run things like top -s.1, systat vmstat .1
and see what the system's doing when it freezes.


Right, the top is not showing anything out of the ordinary, the vmstat 
shows 7.1% interrupt load and nothing else on the processor at that time:


   7.1%Int   0.0%Sys   0.0%Usr   0.0%Nic  92.9%Idle

Interrupts
732 total
229 vr0
192 vr3
 82 ral0
pciide0
ohci0
com0
101 clock
128 rtc

Proc:r  d  s  wCsw   Trp   Sys   Int   Sof  Flt
   755 9   841   731   110  357

All seems fairly standard to me, some light load on lan/wlan.


send dmesg :-)


I'd rather not spam the list, it's just an ordinary net5501, dmesg is 
easily googled.



Is anyone else seeing this with -current or a snapshot, with this ral or a
different one? I'd file a problem report but there's nothing to go on,
other than my suspicions that the changes to rt2860 in the last 2 months
are the cause.
I can try to narrow it down to a specific commit if that will help?


I've been running recent snaps on an ALIX board with RT2860 with
no trouble.


That's.. unfortunate. I keep thinking that since some people don't even see 
the problems with traffic stalling in PR 5958, there might be something 
specific to the location of the AP, like load or some specific client that 
makes it go boom. Grasping at straws, here.


Thanks for the suggestion,

bbee



Re: Instability in -current with ral/rt2860?

2009-02-07 Thread bbee
On Sat, 7 Feb 2009, Dorian B|ttner wrote:
 bbee schrieb:
  In a net5501 I have a rt2860 ral card, running the Feb 04 snapshot:
  ral0 at pci0 dev 14 function 0 Ralink RT2860 rev 0x00: irq 10
  ral0: MAC/BBP RT2860 (rev 0x0101), RF RT2820 (MIMO 2T3R)

 Do you also have the mini pci card? Here is mine, which I got myself 2 or 3
 days ago:
 ral0 at pci0 dev 17 function 0 Ralink RT2860 rev 0x00: irq 15, address
 00:08:54:86:5e:6e
 ral0: MAC/BBP RT2860 (rev 0x0101), RF RT2820 (MIMO 2T3R)
 Also in a net5501.

No, this is a pci card, an Edimax EW-7728IN, it's listed in ral(4).

 Totally can't confirm the 2 hour time frame with the need for reboot. I have
 connection loss every now and then, but I'm just on my way getting some
 external antennas for the box, hope that will help. During initial setup,
but
 that will be more a problem on configuration side (pf or somewhat) I had a
 system crash which made the box come with a date 20h in future, which I
 haven't seen before.

I wasn't having connection problems before, other than described in PR
5958, where ral just stops transmitting. If that's also the issue you're
having (which is different from the hangs I'm having with -current), then I
don't think it's an antenna problem. I have 3 10dBi omni antennas on this
ral.

Did you try -current? Could you please grab a snapshot, disable the
watchdog and see if your box also hangs after a few hours, since we have
pretty much identical hardware? It's 5 minutes of work using bsd.rd and
sysmerge.

 Can you assure your powersupply is ok/not running at it's limit? There have
 been issues with those originally shipped with the 5501.

I'm pretty sure the PSU is ok, it worked fine for 4.4 and it's an official
Soekris one (well.. sort of.. I haggled it off of Wim, no idea where he got
it :)

Thanks for your reply.

bbee



Re: Instability in -current with ral/rt2860?

2009-02-07 Thread Lars Kotthoff
FYI, I'm having the same problems with

ral0 at pci0 dev 21 function 0 Ralink RT2860 rev 0x00: irq 11, address 
00:00:00:00:00:00
ral0: MAC/BBP RT2860 (rev 0x0101), RF RT2820 (2T3R)

I get both traffic freezes and instability with 4.3 and 4.4 kernels, although
the box is stable for a bit longer (a couple of days). I've posted about this
before, only I wasn't sure about the cause then. There's nothing that explains
the instability (no increased CPU or memory usage, nothing in any log, no
increased traffic).

Lars



Thinkpad R61 support

2009-02-07 Thread Christiano Farina Haesbaert
Hello there, I'm considering buying a thinkpad R61, if someone has any
information on the hardware support for it I would appreciate.

Best Regards.

-- 
Christiano Farina Haesbaert



Re: Problems getting tentakel running on 4.4

2009-02-07 Thread Tasmanian Devil
Hello! :-)

 I found this post to openbsd-security

Hehe, my old post. Was to openbsd-ports though, originally.

 Any idea how to get tentakel running?

That problem seems to be still unsolved. I still don't know much about
Python, so what I do on my -current system is, I simply have the old
tentakel-2.1.2p0.tgz package in my local package directory and use
that one. I once looked what changed from tentakel-2.1.2p0.tgz to
tentakel-2.1.2p1.tgz, and as far as I remember that was a one line
change to use python 2.5 instead of python 2.4. The old tentakel
package works just fine for me on -current with the current (or
4.4-release version on 4.4 systems) Python 2.4 version.

What you need is:

tentakel-2.1.2p0.tgz from your preferred mirror, the version for
OpenBSD 4.2, it's in  /pub/OpenBSD/4.2/packages/i386/

$ env | grep PKG
PKG_PATH=/usr/ports/packages/i386/all/:ftp://openbsd.informatik.uni-erlangen.de/pub/OpenBSD/snapshots/packages/i386/

$ ls -l /usr/ports/packages/i386/all/tentakel-2.1.2p0.tgz
-rw-r--r--  1 root  wheel  51731 Apr 12  2008
/usr/ports/packages/i386/all/tentakel-2.1.2p0.tgz

$ head -1 `which tentakel`
#!/usr/local/bin/python2.4

Tas.



Re: Problems getting tentakel running on 4.4

2009-02-07 Thread Falk Brockerhoff - smartTERRA GmbH

Am 07.02.2009 um 23:11 schrieb Tasmanian Devil:


Hello! :-)


Hi :)


What you need is:


Ok, thank you for your hint. I tried, and now tentakel's running fine :)


Tas.


Regards,

Falk



Re: Problems getting tentakel running on 4.4

2009-02-07 Thread Falk Brockerhoff - smartTERRA GmbH

Am 07.02.2009 um 18:39 schrieb Falk Brockerhoff - smartTERRA GmbH:

but I'm not able to install neither python-2.4.4p4 or python-2.4.4p6  
(from 4.2 / 4.3 packages) on my (4.4) system:


Hint for myself: works with python-2.4.4p7.tgz from 4.4 packages  
*selfslap*




Regards,

Falk



bgpd fails to install ipv6 routes in kernel routing table

2009-02-07 Thread Graeme Lee

Hi all.

I'm having problems with ipv6 on openbgpd, in that it isn't installing 
received ipv6 routes into the kernel's routing table.  It receives 
them.  I can advertise my own prefix just fine.  But netstat -rnf inet6 
shows only the basic static table.


The bgpd log shows this:

bgpd: send_rtmsg: action 1, prefix 2001:dc8:c000::/36: Network is 
unreachable

bgpd: send_rtmsg: action 1, prefix 2a01:a8::/32: Network is unreachable

for every network received via my peer.

I believe I've done a good job searching through the archives, but I've 
turned up nothing useful.  I'm running -current as of about 2 hours 
ago.  A clue to what I'm missing would be really appreciated.


Thanks,

g

OpenBSD 4.4-current (GENERIC) #11: Sun Feb  8 10:29:07 EST 2009
   
r...@gw-nexgen.omniconnect.com.au:/usr/src/sys/arch/amd64/compile/GENERIC

real mem = 2145255424 (2045MB)
avail mem = 2071248896 (1975MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (55 entries)
bios0: vendor Award Software International, Inc. version F3 date 
03/04/2008

bios0: Gigabyte Technology Co., Ltd. GA-MA770-S3
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP SSDT HPET MCFG APIC
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) 
USB5(S3) SBAZ(S4) P2P_(S5) PCE2(S4) PCE3(S4) PCE4(S4) P
CE5(S4) PCE6(S4) PCE7(S4) PCE8(S4) PCE9(S4) PCEA(S4) PCEB(S4) PCEC(S4) 
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) 64 X2 Dual Core Processor 5200+, 2712.70 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,M

MXX,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 200MHz



OpenBSD 4.4-release; Lockup after enabling 2nd NIC; both are Linksys EG1032

2009-02-07 Thread John Schofield
I'm new to OpenBSD, so I may be doing something stupid. But Google,
the FAQ, and other resources have not shed any light.

I'm attempting to set up an IBM ThinkCentre desktop PC as a
router/firewall for my home network. OpenBSD did not recognize the
onboard NIC, and it did not appear on the supported hardware list as
far as I could tell, so I purchased two Linksys Gigabit NICs that were
listed. (EG1032, probably V3, as they show up as re0 and re1.) I also
disabled the onboard NIC in BIOS.

When doing the install from the CD (OpenBSD 4.4-release), if I
configure re0 ONLY, everything works fine. If I also give re1 an IP,
the system locks up with no error message printed. I was able to
install successfully by only configuring re0.

Once installed and booted from the internal HD, I attempted to enable
re1. I got the same symptom -- system freeze with no error message
upon attempting to activate the card. This was the same whether I
activated the card via sh /etc/netstart or whether I rebooted.

I swapped cards and cabling, thinking that I had a bad card. The
behavior continued unchanged. The re0 (which had been re1) card
worked, and activating the re1 card (which used to be re0) locked the
system.

For the record, my /etc/hostname.re0 currently in use is:
inet 192.168.1.20 255.255.255.0 NONE

The hostname.re1 (currently in my /root directory) is:
inet 10.10.10.1 255.255.255.0 NONE

To further attempt to rule out bad hardware, I installed Linux (Ubuntu
8.10). Both NICs operated flawlessly. (I realize that this is not
conclusive, as different OS's can exercise hardware in different
ways.)

After reinstalling OpenBSD and replicating the issue, I was unable to
find any further troubleshooting information or logs which indicated
what the problem was. I'm attaching dmesg output (dmesg.txt),
/var/run/dmesg.boot, and my /var/log/messages. I welcome suggestions
as to solutions or further troubleshooting steps.  (All of the above
logs were gathered after booting to single-user mode, moving
/etc/hostname.re1 to the /root directory, and rebooting.)


John Schofield
OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 2.93GHz (GenuineIntel 686-class) 2.93 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,TM2,CNXT-ID,xTPR
real mem  = 795373568 (758MB)
avail mem = 760115200 (724MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 05/25/05, BIOS32 rev. 0 @ 0xfd6ec, SMBIOS 
rev. 2.34 @ 0xefb60 (49 entries)
bios0: vendor IBM version 2FKT15AUS date 05/25/2005
bios0: IBM 813116U
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP TCPA APIC BOOT MCFG
acpi0: wakeup devices EXP0(S5) EXP1(S5) EXP2(S5) EXP3(S5) USB1(S3) USB2(S3) 
USB3(S3) USB4(S3) USBE(S3) SLOT(S5) KBC_(S3) PSM_(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus -1 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus 10 (SLOT)
acpicpu0 at acpi0
acpitz0 at acpi0: critical temperature 255 degC
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0xaa00! 0xe/0x1!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82915G Host rev 0x04
vga1 at pci0 dev 2 function 0 Intel 82915G Video rev 0x04
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xc000, size 0x1000
drm at vga1 unsupported
ppb0 at pci0 dev 28 function 0 Intel 82801FB PCIE rev 0x03: irq 3
pci1 at ppb0 bus 2
bge0 at pci1 dev 0 function 0 Broadcom BCM5751 rev 0x11: can't find mem space
uhci0 at pci0 dev 29 function 0 Intel 82801FB USB rev 0x03: irq 11
uhci1 at pci0 dev 29 function 1 Intel 82801FB USB rev 0x03: irq 9
uhci2 at pci0 dev 29 function 2 Intel 82801FB USB rev 0x03: irq 10
ehci0 at pci0 dev 29 function 7 Intel 82801FB USB rev 0x03: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xd3
pci2 at ppb1 bus 10
re0 at pci2 dev 0 function 0 Linksys EG1032 rev 0x10: RTL8169S (0x0400), irq 
12, address 00:1e:e5:d7:4e:0b
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 0
re1 at pci2 dev 1 function 0 Linksys EG1032 rev 0x10: RTL8169S (0x0400), irq 
10, address 00:1e:e5:d7:4e:3b
rgephy1 at re1 phy 7: RTL8169S/8110S PHY, rev. 0
auich0 at pci0 dev 30 function 2 Intel 82801FB AC97 rev 0x03: irq 3, ICH6 AC97
ac97: codec id 0x41445368 (Analog Devices AD1888)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
ichpcib0 at pci0 dev 31 function 0 Intel 82801FB LPC rev 0x03: PM disabled
pciide0 at pci0 dev 31 function 2 Intel 82801FB SATA rev 0x03: DMA, channel 0 
wired to compatibility,