ethernet not found

2009-10-12 Thread Sha'ul

I install 4.6-current, I get the sets from FTP, I reboot, and then it says

starting network
dc0: not found

It worked flawless on 4.x releases. It's a Pentium II system, so nothing 
close to recent hardware. I used the same CD on another system with a 
motherboard 2 years old and that installation was set up perfectly.




Re: ethernet not found

2009-10-12 Thread Claudio Jeker
On Mon, Oct 12, 2009 at 12:40:29AM -0700, Sha'ul wrote:
 I install 4.6-current, I get the sets from FTP, I reboot, and then it says
 
 starting network
 dc0: not found
 
 It worked flawless on 4.x releases. It's a Pentium II system, so
 nothing close to recent hardware. I used the same CD on another
 system with a motherboard 2 years old and that installation was set
 up perfectly.
 

Where is the dmesg? dc(4) and de(4) tend to fight for the same network
cards so maybe have a look at the dmesg to see what happend to the network
card.

-- 
:wq Claudio



Re: ethernet not found

2009-10-12 Thread Otto Moerbeek
On Mon, Oct 12, 2009 at 12:40:29AM -0700, Sha'ul wrote:

 I install 4.6-current, I get the sets from FTP, I reboot, and then it says
 
 starting network
 dc0: not found
 
 It worked flawless on 4.x releases. It's a Pentium II system, so
 nothing close to recent hardware. I used the same CD on another
 system with a motherboard 2 years old and that installation was set
 up perfectly.

dmesg would have been really helpful here.

-Otto



audio found but no mixerctl channels?

2009-10-12 Thread Tobias Sarnowski
Hello misc,

since I installed 4.6-current a short while ago my sound vanished. It
worked since several obsd versions without problems but now the
hardware seems to be not supported anymore.

I searched the mailinglist and didn't find any comments about driver
changes. Can anyone give me a hint?


Thanks,
Tobias Sarnowski



# dmesg | grep -i1E (audio|azalia|auich|ac97)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci1 dev 0 function 1 ATI Radeon HD 34xx HD Audio rev
0x00: apic 2 int 17 (irq 7)
azalia0: codecs: ATI/0xaa01
audio0 at azalia0
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2
int 23 (irq 5)

rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
auich0 at pci0 dev 30 function 2 Intel 82801GB AC97 rev 0x01: apic 2
int 17 (irq 7), ICH7 AC97
ac97: codec id 0x414c4790 (Avance Logic ALC850 rev 0)
audio1 at auich0
ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM
disabled


# mixerctl
outputs.digital-out_sou=dac
outputs.digital-out_sen=plugged


# audioctl
name=HD-Audio
version=1.0
config=azalia0
encodings=slinear_le:16
properties=full_duplex,independent
full_duplex=0
fullduplex=0
blocksize=9600
hiwat=6
lowat=4
output_muted=0
monitor_gain=0
mode=
play.rate=48000
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
play.block_size=9600
play.errors=0
record.rate=48000
record.channels=2
record.precision=16
record.encoding=slinear_le
record.gain=127
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.block_size=9600
record.errors=0



Re: ZTE-MF626 USB Modem

2009-10-12 Thread Stuart Henderson
On 2009-10-12, Sergio Andr?s G?mez del Real sergio.g.delr...@gmail.com wrote:
 Well, I guess this is the relevant output from startup:

Don't try and guess what is relevant, just send the COMPLETE dmesg.
Also send usbdevs -v.



Re: Building bacula-fd on OpenBSD 4.5

2009-10-12 Thread Stuart Henderson
On 2009-10-12, Daniel Bareiro daniel-lis...@gmx.net wrote:

 I'm trying to compile Bacula 3.0.2 with the source code from the
 official site. For it I've dowloaded the bacula-3.0.2.tar.gz file.

if you need bacula 3.x on 4.5, probably the easiest way is to use
the port from -current, it will most likely work.



Re: audio found but no mixerctl channels?

2009-10-12 Thread Robert
On Mon, 12 Oct 2009 11:21:07 +0200
Tobias Sarnowski sarnow...@new-thoughts.org wrote:

 Hello misc,
 
 since I installed 4.6-current a short while ago my sound vanished. It
 worked since several obsd versions without problems but now the
 hardware seems to be not supported anymore.
 
 I searched the mailinglist and didn't find any comments about driver
 changes. Can anyone give me a hint?
 
 
 Thanks,
 Tobias Sarnowski
 
 
 
 # dmesg | grep -i1E (audio|azalia|auich|ac97)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 azalia0 at pci1 dev 0 function 1 ATI Radeon HD 34xx HD Audio rev
 0x00: apic 2 int 17 (irq 7)
 azalia0: codecs: ATI/0xaa01
 audio0 at azalia0
 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2
 int 23 (irq 5)
 
 rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
 auich0 at pci0 dev 30 function 2 Intel 82801GB AC97 rev 0x01: apic 2
 int 17 (irq 7), ICH7 AC97
 ac97: codec id 0x414c4790 (Avance Logic ALC850 rev 0)
 audio1 at auich0
 ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM
 disabled
 
 
 # mixerctl
 outputs.digital-out_sou=dac
 outputs.digital-out_sen=plugged
 
 
 # audioctl
 name=HD-Audio
 version=1.0
 config=azalia0
 encodings=slinear_le:16
 properties=full_duplex,independent
 full_duplex=0
 fullduplex=0
 blocksize=9600
 hiwat=6
 lowat=4
 output_muted=0
 monitor_gain=0
 mode=
 play.rate=48000
 play.channels=2
 play.precision=16
 play.encoding=slinear_le
 play.gain=127
 play.balance=32
 play.port=0x0
 play.avail_ports=0x0
 play.seek=0
 play.samples=0
 play.eof=0
 play.pause=0
 play.error=0
 play.waiting=0
 play.open=0
 play.active=0
 play.buffer_size=65536
 play.block_size=9600
 play.errors=0
 record.rate=48000
 record.channels=2
 record.precision=16
 record.encoding=slinear_le
 record.gain=127
 record.balance=32
 record.port=0x0
 record.avail_ports=0x0
 record.seek=0
 record.samples=0
 record.eof=0
 record.pause=0
 record.error=0
 record.waiting=0
 record.open=0
 record.active=0
 record.buffer_size=65536
 record.block_size=9600
 record.errors=0


s1 decided azalia* doesn't support hdmi whatever, so just switch your
links in etc over to the other device and be happy :) :)



Re: audio found but no mixerctl channels?

2009-10-12 Thread Tobias Sarnowski
On Mon, 12 Oct 2009 11:21:07 +0200
Tobias Sarnowski sarnow...@new-thoughts.org wrote:

 Hello misc,
 
 since I installed 4.6-current a short while ago my sound vanished. It
 worked since several obsd versions without problems but now the
 hardware seems to be not supported anymore.
 
 I searched the mailinglist and didn't find any comments about driver
 changes. Can anyone give me a hint?

Ok, sorry for the noise. I found
https://kerneltrap.org/mailarchive/openbsd-misc/2009/2/18/4981114/thread
which suggested to switch the default /dev/audio,... links to audio1 by
hand to activate my audio1 as the default device.

 
 
 Thanks,
 Tobias Sarnowski
 
 
 
 # dmesg | grep -i1E (audio|azalia|auich|ac97)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 azalia0 at pci1 dev 0 function 1 ATI Radeon HD 34xx HD Audio rev
 0x00: apic 2 int 17 (irq 7)
 azalia0: codecs: ATI/0xaa01
 audio0 at azalia0
 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2
 int 23 (irq 5)
 
 rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
 auich0 at pci0 dev 30 function 2 Intel 82801GB AC97 rev 0x01: apic 2
 int 17 (irq 7), ICH7 AC97
 ac97: codec id 0x414c4790 (Avance Logic ALC850 rev 0)
 audio1 at auich0
 ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM
 disabled
 
 
 # mixerctl
 outputs.digital-out_sou=dac
 outputs.digital-out_sen=plugged
 
 
 # audioctl
 name=HD-Audio
 version=1.0
 config=azalia0
 encodings=slinear_le:16
 properties=full_duplex,independent
 full_duplex=0
 fullduplex=0
 blocksize=9600
 hiwat=6
 lowat=4
 output_muted=0
 monitor_gain=0
 mode=
 play.rate=48000
 play.channels=2
 play.precision=16
 play.encoding=slinear_le
 play.gain=127
 play.balance=32
 play.port=0x0
 play.avail_ports=0x0
 play.seek=0
 play.samples=0
 play.eof=0
 play.pause=0
 play.error=0
 play.waiting=0
 play.open=0
 play.active=0
 play.buffer_size=65536
 play.block_size=9600
 play.errors=0
 record.rate=48000
 record.channels=2
 record.precision=16
 record.encoding=slinear_le
 record.gain=127
 record.balance=32
 record.port=0x0
 record.avail_ports=0x0
 record.seek=0
 record.samples=0
 record.eof=0
 record.pause=0
 record.error=0
 record.waiting=0
 record.open=0
 record.active=0
 record.buffer_size=65536
 record.block_size=9600
 record.errors=0
 



-- 
Tobias Sarnowski / softwareentwicklung
__ CosmoCode GmbH - http://www.cosmocode.de
__ Prenzlauer Allee 36, 10405 Berlin, Germany
__ Tel +49 30 814504089, Fax +49 30 28097093
__
__ Geschaeftsfuehrung (CEO): D. Huettemann, J. Riebesell
__ Amtsgericht Berlin-Charlottenburg, HRB 74063



Re: audio found but no mixerctl channels?

2009-10-12 Thread Tobias Sarnowski
On Mon, 12 Oct 2009 11:52:55 +0200
Robert rob...@openbsd.pap.st wrote:

 On Mon, 12 Oct 2009 11:21:07 +0200
 Tobias Sarnowski sarnow...@new-thoughts.org wrote:
 
  Hello misc,
  
  since I installed 4.6-current a short while ago my sound vanished.
  It worked since several obsd versions without problems but now the
  hardware seems to be not supported anymore.
  
  I searched the mailinglist and didn't find any comments about driver
  changes. Can anyone give me a hint?
  
  
  Thanks,
  Tobias Sarnowski
  
  
  
  # dmesg | grep -i1E (audio|azalia|auich|ac97)
  wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
  azalia0 at pci1 dev 0 function 1 ATI Radeon HD 34xx HD Audio rev
  0x00: apic 2 int 17 (irq 7)
  azalia0: codecs: ATI/0xaa01
  audio0 at azalia0
  uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2
  int 23 (irq 5)
  
  rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
  auich0 at pci0 dev 30 function 2 Intel 82801GB AC97 rev 0x01:
  apic 2 int 17 (irq 7), ICH7 AC97
  ac97: codec id 0x414c4790 (Avance Logic ALC850 rev 0)
  audio1 at auich0
  ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM
  disabled
  
  
  # mixerctl
  outputs.digital-out_sou=dac
  outputs.digital-out_sen=plugged
  
  
  # audioctl
  name=HD-Audio
  version=1.0
  config=azalia0
  encodings=slinear_le:16
  properties=full_duplex,independent
  full_duplex=0
  fullduplex=0
  blocksize=9600
  hiwat=6
  lowat=4
  output_muted=0
  monitor_gain=0
  mode=
  play.rate=48000
  play.channels=2
  play.precision=16
  play.encoding=slinear_le
  play.gain=127
  play.balance=32
  play.port=0x0
  play.avail_ports=0x0
  play.seek=0
  play.samples=0
  play.eof=0
  play.pause=0
  play.error=0
  play.waiting=0
  play.open=0
  play.active=0
  play.buffer_size=65536
  play.block_size=9600
  play.errors=0
  record.rate=48000
  record.channels=2
  record.precision=16
  record.encoding=slinear_le
  record.gain=127
  record.balance=32
  record.port=0x0
  record.avail_ports=0x0
  record.seek=0
  record.samples=0
  record.eof=0
  record.pause=0
  record.error=0
  record.waiting=0
  record.open=0
  record.active=0
  record.buffer_size=65536
  record.block_size=9600
  record.errors=0
 
 
 s1 decided azalia* doesn't support hdmi whatever, so just switch your
 links in etc over to the other device and be happy :) :)
 

Thanks for the hint :D

As I wrote in my other reply I switched my links
in /dev/{audio,sound,mixerctl,...} . Is there a more clean way to use
my audio1 as the default device for output than manipulating /dev?



Re: audio found but no mixerctl channels?

2009-10-12 Thread Jacob Meuser
On Mon, Oct 12, 2009 at 12:10:27PM +0200, Tobias Sarnowski wrote:

 As I wrote in my other reply I switched my links
 in /dev/{audio,sound,mixerctl,...} . Is there a more clean way to use
 my audio1 as the default device for output than manipulating /dev?

you could use the AUDIODEVICE environment variable, at least with
applications that use sndio(7).

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: audio found but no mixerctl channels?

2009-10-12 Thread Jacob Meuser
On Mon, Oct 12, 2009 at 11:21:07AM +0200, Tobias Sarnowski wrote:
 Hello misc,
 
 since I installed 4.6-current a short while ago my sound vanished. It
 worked since several obsd versions without problems but now the
 hardware seems to be not supported anymore.
 
 I searched the mailinglist and didn't find any comments about driver
 changes. Can anyone give me a hint?
 
 
 Thanks,
 Tobias Sarnowski
 
 
 
 # dmesg | grep -i1E (audio|azalia|auich|ac97)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 azalia0 at pci1 dev 0 function 1 ATI Radeon HD 34xx HD Audio rev
 0x00: apic 2 int 17 (irq 7)
 azalia0: codecs: ATI/0xaa01
 audio0 at azalia0
 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2
 int 23 (irq 5)
 
 rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
 auich0 at pci0 dev 30 function 2 Intel 82801GB AC97 rev 0x01: apic 2
 int 17 (irq 7), ICH7 AC97
 ac97: codec id 0x414c4790 (Avance Logic ALC850 rev 0)
 audio1 at auich0
 ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM
 disabled
 
 
 # mixerctl
 outputs.digital-out_sou=dac
 outputs.digital-out_sen=plugged
 
 
 # audioctl
 name=HD-Audio

your video card has an audio device, well, an HDMI transmitter.  these
could be supported by azalia but currently aren't.  I just committed
a change to disable these devices a few days ago.  try a newer
snapshot.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: Forum engine

2009-10-12 Thread jean-francois
I will implement a forum because it is mean to be included as small
lines in the end of some web pages for posting comments.

Otherwise, if someone knows a secure comments system available either
from package or from the web i'm interested.

After some searches for few days, i've come to the point where I prefer
not to implement anything rather than taking the ones I found either
forum or comments scripts.

Le dimanche 11 octobre 2009 C  22:13 -0400, Eric Furman a C)crit :
 The question was: Does anyone know of a good secure Forum engine
 that runs well on OBSD.
 A debate of its merits vs a mailing list is a tad off topic
 and has nothing to do with OBSD.
 
 Thanks.
 
 On Sun, 11 Oct 2009 22:02 -0400, Sean Howard sil...@callysto.com
 wrote:
  I think you're being pretentious a little bit.
  
  A good usenet implementation is *closer* to a forum, which is what you
  want. But forums are a different (more dynamic) use case. With smaller
  entry barriers to large amounts of content.
  
  --Sean
  
  Somebody claiming to be Samuel Baldwin wrote:
   2009/10/11 Mic J michael.cogn...@gmail.com:
Why is that better?
   
   Because you get to pick your UI, because all your mail as amalgamated
   into one mailbox where you can sort it yourself where there's no easy
   place for garbage off-topic discussion, because your mailbox is
   where messages can be threaded properly, because there are no avatars
   or forum stats or ranks or administrators or moderators to create
   politics, because they're low overhead and easy accessible, because
   low-traffic mailing lists still catch everyone's attention where a
   low-traffic forum will eventually be ignored by the users... so on and
   so forth. There's bound to be a bunch of sites or archived
   rants/debates about this.
   
   If it helps, compare your average forum goer with your average mailing
   list denizen. That alone should be enough...
   
   -- 
   Samuel Baldwin - logik.li



Re: navigation software options

2009-10-12 Thread Mª®k
while I'm at it a USB GPS mouse recommendation w/ availability in EU /
NL is also welcome.



navigation software options

2009-10-12 Thread Mª®k
does anyone have recommendations for navigation software that will run
offline ie no internet access on my netbook; I want to build one
into my van.
I know something like osm-gps-map + gpsd + GPSmouse will show me where
I am, which is halfway there...
 that could possibly be augmented with a pre-created trace of the
route; but it would be much more useful if it were dynamic.

m...@rk



Re: disk geometry problem

2009-10-12 Thread Michael
On 10/11/09, Nick Holland n...@holland-consulting.net wrote:
 Michael wrote:
 On 10/11/09, Fred Crowson fred.crow...@googlemail.com wrote:
 On 10/11/09, Michael ber...@opensuse.us wrote:
 I think I found the source of several problems on my hd.
 I have an 40 gig hd (WDC WD400BB-75DEA0) that right now has:
 #1: primary partition with Windows 2kpro
 #2: extended partition with Windows D partition, PCLinuxOS, and extra
 ext2fs partitions for files
 #3. end of hd has my primary partition with OpenBSD 4.4

 OpenBSD and dos(partition magic) both show geometry of 4863,255,63
 linux shows geometry of 4865,255,63). Actual sectors (even printed on
 hd) is 78125000, but linux shows 78156225.

 well, if Linux is not using those last two cylinders, don't sweat
 it, it Just Doesn't Matter.  It only matters if you try to write
 something where nothing is.

 If I tell you the edge of the cliff is 100M. away, and someone else
 tells you it is 102M. away, and you are pretty sure that ONE of us
 is telling the truth, you can wander 100M minus your shoe size
 safely.  The fact that we disagree doesn't mater, just don't go those
 last 2M.  If OpenBSD is the more conservative report, and you have
 OpenBSD at the end of the disk, you should have no issues.

 I don't know what to do to fix that.

 don't even try.  you will just break things.

 The systems have been running ok, but I can't mount the PCLinuxOS
 partition from OpenBSD

 is it ext2?  if not, that would be expected.

 and when trying to install 4.5 or 4.6, I get
 the ERR M problem.

 totally unrelated.

 Could your machine your machine have a BIOS limitation?  32G is a not
 uncommon BIOS limitation, if you had your OpenBSD partition above that
 point, a BIOS upgrade would be high on my list of things to check.

 There were some motherboards shipping with buggy BIOSs with 32G issues
 long after much larger disks were commonplace.

 I use Windows strictly for powerpoint files and I don't get on the
 internet with it, linux for flash and other junk like that. OpenBSD is
 my main running system.

 Any help greatly appreciated. I tried google, but didn't see anything
 to fix this.

 How are you getting the various OS to boot?

 A bit more info would be a help...

 Fred

 Didn't think about that :)
 Was 2nd guessing what info would be needed (good info=OpenBSD vs bad
 info=linux).
 Right now, I'm using Air-Boot, but also have used grub.

 Ick.  ok, what happens if you quit trying to be fancy, and just set
 the active partition to OpenBSD and quit trying to multiboot it?
 No Air-boot, no grub, just a standard MBR/PBR?
 Considering how some of those multi-boot programs try to help you,
 nothing surprises me when they break.

 The PBR (what is giving you the ERR M, see FAQ14) has a relatively
 small set of things that can go wrong.  ERR M means that what it was
 installed to load is not (currently) /boot.  This means either the
 BIOS delivered something other than /boot, or you are running a PBR
 that hasn't been updated since your last OpenBSD install (hint: some
 multiboot systems will save a copy of your PBR for them to use,
 instead of the one OpenBSD installs to boot the OS, and they rarely
 know when to update it when you reinstall the system!) or the /boot
 file got clobbered somehow.

 Nick.


Thanks Nick for all the info. I had to sleep on it :)
I don't know if we got off-track or I don't know/understand the problem.
These systems have been booting and running for quite some time
(years), except for when I do fresh installs of OpenBSD. No problems
with the bootloader.
I'm on OpenBSD now, so I can give this info:

# disklabel wd0
# Extended partition 1: type 0F start 12562830 size 51568650
# Extended partition 1: type 05 start 13028715 size 25591545
# Extended partition 1: type 05 start 38620260 size 1028160
# Inside MBR partition 2: type A6 start 64131480 size 14024745
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: WDC WD400BB-75DE
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 4863
total sectors: 78125000
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 64131480# microseconds
track-to-track seek: 78125000   # microseconds
drivedata: 0

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a:  1028160 64131480  4.2BSD   2048 163841
  b:  1060290 65159640swap
  c: 781250000  unused  0 0
  d:  3084480 66219930  4.2BSD   2048 163841
  e:  6152895 69304410  4.2BSD   2048 163841
  f:  2265165 75457305  4.2BSD   2048 163841
  i: 12562767   63   MSDOS
  j: 13028652 12562893   MSDOS
  k: 25591482 25591608  ext2fs
  l:  1028097 51183153 unknown
  m: 11920167 52211313  ext2fs

 fdisk wd0
Disk: wd0   geometry: 4863/255/63 [78125000 Sectors]
Offset: 0 

Re: [OT] Forum engine

2009-10-12 Thread Joachim Schipper
On Mon, Oct 12, 2009 at 12:53:11PM +0200, jean-francois wrote:
 I will implement a forum because it is mean to be included as small
 lines in the end of some web pages for posting comments.
 
 Otherwise, if someone knows a secure comments system available either
 from package or from the web i'm interested.
 
 After some searches for few days, i've come to the point where I prefer
 not to implement anything rather than taking the ones I found either
 forum or comments scripts.

Something like Disqus is simple to integrate in a website, almost
impossible to use to gain entry into *your* system (one possible
definition of security - you'll need to be a bit more specific if that
is not the one you had in mind), offers threading and e-mail
notification of new comments, and so on and so forth. There are other
players in this space, including at least IntenseDebate.

I don't have too much experience with either system as a user, and none
as a site owner/administrator. But they seem to suck less than I'd
expect of a web-based option, and a mailing list is probably not the
best place to comment on articles...

Joachim



Re: error compiling kernel when updating openbsd 4.5 through cvs

2009-10-12 Thread Robert Gilaard
--- On Mon, 10/12/09, Robert rob...@openbsd.pap.st wrote:


From: Robert rob...@openbsd.pap.st
Subject: Re: error compiling kernel when updating openbsd 4.5 through cvs
To: Robert Gilaard rgila...@yahoo.com
Date: Monday, October 12, 2009, 12:09 AM


On Sun, 11 Oct 2009 14:30:30 -0700 (PDT)
Robert Gilaard rgila...@yahoo.com wrote:

 Hi OpenBSD people,
 I have this VIA c3 epia system with 512mb RAM and a 80GB HD where I've
 installed Openbsd 4.5 (got the install sets from a ftp server).

 uname -a gives:
 OpenBSD via-epia.lokaal 4.5 GENERIC#1749 i386

 Then I wanted to update this machine because
 http://www.openbsd.org/errata45.html said there were a few patches.

 I decided to use cvsup and after I fetched the sources I did:

 ...

 # cd /usr/src/sys/arch/i386/conf/
 # config GENERIC
 # cd ../compile/GENERIC
 # make clean  make depend  make  make installThis last command
 stopped with the following error:
 
 FREEBSD -DCOMPAT_BSDOS -DCOMPAT_AOUT -DPROCFS -DPCIVERBOSE
 -DEISAVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL
 -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS=6
 -DWSDISPLAY_COMPAT_PCVT -DONEWIREVERBOSE -D_KERNEL -Di386
 -c ../../../../dev/pci/eap.c cc  -Werror -Wall -Wstrict-prototypes
 -Wmissing-prototypes  -Wno-uninitialized -Wno-format -Wno-main
 -Wstack-larger-than-2047 -fno-builtin-printf -fno-builtin-log -O2
 -pipe -nostdinc -I. -I../../../.. -I../../../../arch -DDDB
 -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DCRYPTO
 -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DCOMPAT_43
 -DCOMPAT_O43 -DLKM -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH
 -DQUOTA -DEXT2FS -DMFS -DXFS -DTCP_SACK -DTCP_ECN -DTCP_SIGNATURE
 -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DINET -DALTQ
 -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DMROUTING -DBOOT_CONFIG
 -DUSER_PCICONF -DKVM86 -DUSER_LDT -DAPERTURE -DCOMPAT_SVR4
 -DCOMPAT_IBCS2 -DCOMPAT_LINUX -DCOMPAT_FREEBSD -DCOMPAT_BSDOS
 -DCOMPAT_AOUT -DPROCFS -DPCIVERBOSE -DEISAVERBOSE -DUSBVERBOSE
 -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD
 -DWSDISPLAY_DEFAULTSCREENS=6 -DWSDISPLAY_COMPAT_PCVT
 -DONEWIREVERBOSE -D_KERNEL -Di386  -c ../../../../dev/pci/eso.c
 {standard input}: Assembler messages: {standard input}:2722: Error:
 bad register name `%dbp' *** Error code 1

 Stop in /usr/src/sys/arch/i386/compile/GENERIC (line 92 of
 /usr/share/mk/sys.mk)

 Is this a problem with my hardware or something else?
 Hope somebody can help me with it.

 Brgds
 Robert

Just to make sure that it's not somthing simple...

You used cvsup to get a full local cvs tree.
After that you check(ed)out/updated your source in /usr/src from that?

- Robert

 
 
Yep,
I used the following cvs-src-file:
 
# Defaults that apply to all the collections
*default release=cvs
*default delete use-rel-suffix
*default umask=002
*default host=cvsup.no.openbsd.org *default base=/usr
*default prefix=/usr
*default tag=OPENBSD_4_5

# If your network link is a T1 or faster, comment out the following line.
# *default compress

#OpenBSD-ports
#OpenBSD-all
OpenBSD-src
#OpenBSD-www
#OpenBSD-x11
#OpenBSD-xenocara
Then I did this:
 
cvsup -g -L 2 cvsup-file-src
 
My dmes shows:

OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: VIA Samuel 2 (CentaurHauls 686-class) 797 MHz
cpu0: FPU,DE,TSC,MSR,MTRR,PGE,MMX
real mem  = 502820864 (479MB)
avail mem = 477847552 (455MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/19/04, BIOS32 rev. 0 @ 0xfdad0,
SMBIOS rev. 2.3 @ 0xf0630 (24 entries)
bios0: vendor American Megatrends Inc. version Version 07.00T date 04/02/01
bios0: ECS M789CG
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf79a0/144 (7 entries)
pcibios0: PCI Interrupt Router at 000:17:0 (VIA VT8235 ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x7e00 0xc8000/0x3000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 VIA VT8623 PCI rev 0x00
viaagp0 at pchb0: v2
agp0 at viaagp0: aperture at 0xe000, size 0x1000
ppb0 at pci0 dev 1 function 0 VIA VT8633 AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 VIA CLE266 rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x80: irq 11
uhci1 at pci0 dev 16 function 1 VIA VT83C572 USB rev 0x80: irq 5
uhci2 at pci0 dev 16 function 2 VIA VT83C572 USB rev 0x80: irq 5
ehci0 at pci0 dev 16 function 3 VIA VT6202 USB rev 0x82: irq 10
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 VIA EHCI root hub rev 2.00/1.00 addr 1
viapm0 at pci0 dev 17 function 0 VIA VT8235 ISA rev 0x00
iic0 at viapm0
spdmem0 at iic0 addr 0x50: 256MB DDR SDRAM non-parity PC2700CL2.5

Re: Forum engine

2009-10-12 Thread Toni Mueller
Hi,

On Sun, 11.10.2009 at 22:02:45 -0400, Sean Howard sil...@callysto.com wrote:
 A good usenet implementation is *closer* to a forum, which is what
 you want. But forums are a different (more dynamic) use case. With
 smaller entry barriers to large amounts of content.

all other things aside: If you're on a mailing list, and the list is
being shut down, you still get to keep your private mailing list
archive, whereas, when the forum operator changes his forum software,
or shuts down the forum, all past content is simply gone (or as good
as).

IOW, if you post to a forum, your content (what you submitted)
essentially becomes theirs, and you don't even get to keep the pieces.


Kind regards,
--Toni++



Re: Forum engine

2009-10-12 Thread Matthew Szudzik
On Mon, Oct 12, 2009 at 04:42:44PM +0200, Toni Mueller wrote:
 archive, whereas, when the forum operator changes his forum software,
 or shuts down the forum, all past content is simply gone (or as good
 as).

Not true.  Whenever I read an interesting forum post, I save the html
file to my hard drive for future reference.



Re: ZTE-MF626 USB Modem

2009-10-12 Thread Sergio Andrés Gómez del Real
Sorry about the duplicate, I'm not used to a mail list :(

Isn't that really the relevant info? It is the generic kernel of OpenBSD 4.5
-release...
I don't know what extra relevant info could dmesg, or usbdevs offer FOR THIS
CASE, please, if I'm wrong, or if there is an official protocol for
reporting this things, let me know, I don't want to waste your time. Anyway,
I'm switching to OpenBSD to output the full dmesg and usbdevs... this issue
makes me have to stick with Linux.



Re: Forum engine

2009-10-12 Thread Toni Mueller
On Mon, 12.10.2009 at 15:23:12 +, Matthew Szudzik mszud...@andrew.cmu.edu 
wrote:
 On Mon, Oct 12, 2009 at 04:42:44PM +0200, Toni Mueller wrote:
  archive, whereas, when the forum operator changes his forum software,
  or shuts down the forum, all past content is simply gone (or as good
  as).
 
 Not true.  Whenever I read an interesting forum post, I save the html
 file to my hard drive for future reference.

Yes and no... finding the interesting forum post needs to be done
quickly, before disaster strikes, and it's much more hassle to save the
web page in a way that can be read offline with ease and peace of mind
(web bugs, broken style sheets, java script hell, IFRAMEs etc.pp.,
anyone?).  With a mailing list, all of this happens automatically,
and then there are still MARC and GMANE.


Kind regards,
--Toni++

PS: I also try to save all interesting posts to my local disks, to
be able to re-read these posts later, but it's still a PITA.



Re: ZTE-MF626 USB Modem

2009-10-12 Thread Ted Unangst
2009/10/12 Sergio Andris Gsmez del Real sergio.g.delr...@gmail.com:
 Isn't that really the relevant info? It is the generic kernel of OpenBSD
4.5
 -release...

As a general point, if you are having a problem and you can't fix it
yourself, then by definition, you are not qualified to determine
what's relevant.

Specifically, your snippet doesn't even tell us whether it attached at
ehci, ohci, or uhci.  Or what kind of PCI bridge your USB controller
may be behind.  If you can prove that your PCI bridge is irrelevant to
the problem, you should include that proof in your mail.



Re: ZTE-MF626 USB Modem

2009-10-12 Thread Tomáš Bodžár
Read the FAQ first before switching. In your case especially part 9
And dmesg or usbdevs give every info needed.

2009/10/12 Sergio AndrC)s GC3mez del Real sergio.g.delr...@gmail.com:
 Sorry about the duplicate, I'm not used to a mail list :(

 Isn't that really the relevant info? It is the generic kernel of OpenBSD
4.5
 -release...
 I don't know what extra relevant info could dmesg, or usbdevs offer FOR
THIS
 CASE, please, if I'm wrong, or if there is an official protocol for
 reporting this things, let me know, I don't want to waste your time.
Anyway,
 I'm switching to OpenBSD to output the full dmesg and usbdevs... this issue
 makes me have to stick with Linux.



Re: ZTE-MF626 USB Modem

2009-10-12 Thread Sergio Andrés Gómez del Real
Ok, here is full output of dmesg and usbdevs -v

OpenBSD 4.5 (GENERIC.MP) #2133: Sat Feb 28 15:02:16 MST 2009
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2143023104 (2043MB)
avail mem = 2069721088 (1973MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf7250 (44 entries)
bios0: vendor Dell Inc. version A10 date 07/17/2009
bios0: Dell Inc. Inspiron 1545
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET APIC MCFG SLIC SSDT
acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0) USB4(S0)
USB5(S0) USB6(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S3) RP02(S3) RP03(S3)
RP04(S3) RP05(S3) RP06(S3) LID_(S3) PBTN(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.37 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 265MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 3MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 11 (RP01)
acpiprt3 at acpi0: bus 12 (RP02)
acpiprt4 at acpi0: bus 9 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 13 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3
acpicpu1 at acpi0: C3
acpitz0 at acpi0: critical temperature 105 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT0 model DELL Y823G9 serial 591 type LION oem SMP
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0617092006000920
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2400 MHz (1212 mV): speeds: 2400, 1600 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
ppb0 at pci0 dev 1 function 0 Intel GM45 PCIE rev 0x07: apic 2 int 16 (irq
0)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x9552 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 2 int 20
(irq 11)
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 2 int 21
(irq 10)
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 2 int 22
(irq 7)
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 2 int 22
(irq 7)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x03: apic 2
int 21 (irq 10)
azalia0: codecs: IDT 92HD71B7
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: apic 2 int 16
(irq 0)
pci2 at ppb1 bus 11
ppb2 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: apic 2 int 17
(irq 0)
pci3 at ppb2 bus 12
iwn0 at pci3 dev 0 function 0 Intel WiFi Link 5100AGN rev 0x00: apic 2 int
17 (irq 5), MIMO 1T2R, MoW, address 00:22:fb:9b:6f:62
ppb3 at pci0 dev 28 function 2 Intel 82801I PCIE rev 0x03: apic 2 int 18
(irq 0)
pci4 at ppb3 bus 9
mskc0 at pci4 dev 0 function 0 Marvell Yukon 88E8040 rev 0x13, Yukon-2 FE+
(0x0): apic 2 int 18 (irq 10)
msk0 at mskc0 port A: address 00:25:64:52:74:2d
eephy0 at msk0 phy 0: 88E3016 10/100 PHY, rev. 0
ppb4 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x03: apic 2 int 16
(irq 0)
pci5 at ppb4 bus 13
uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x03: apic 2 int 20
(irq 11)
uhci4 at pci0 dev 29 function 1 Intel 82801I USB rev 0x03: apic 2 int 21
(irq 10)
uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x03: apic 2 int 22
(irq 7)
ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x03: apic 2 int 20
(irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x93
pci6 at ppb5 bus 3
pcib0 at pci0 dev 31 function 0 vendor Intel, unknown product 0x2919 rev
0x03
ahci0 at pci0 dev 31 function 2 Intel 82801I AHCI rev 0x03: apic 2 int 18
(irq 10), AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, ST9160314AS, 0003 SCSI3 0/direct fixed
sd0: 152627MB, 512 bytes/sec, 312581808 sec total
cd0 at scsibus0 targ 1 lun 0: Optiarc, DVD+-RW AD-7560S, SD05 ATAPI
5/cdrom 

Questions for OpenBGPd Developers

2009-10-12 Thread Barry Friedman
Hi, I'm looking at open source BGP implementations for possible use on
a Linux-based system. I'm interested in OpenBGPd and I understand that
it's part of OpenBSD but in the application that I'm looking at the
only choice I am given is Linux. My questions are:

Are there any projects to create an OpenBGPd implementation that is
portable and separate from OpenBSD? I'm aware of quick-n-dirty ports
like http://wiki.version6.net/openbgpd but was wondering more formal
projects to create a full-featured and portable implementation that is
more like a true open source project (ie. on a public source control
server with open forums, mailing lists, bug reporting, frequent
releases, etc).

Is the current OpenBGPd development team an open team in which anyone
may contribute patches, or is it a closed team?

If there was a porting effort, could the changes be incorporated into
the existing project, or would a portable OpenBGPd need to be a
separate project?

At this stage I'm just gathering information and answers to the above
questions would be very helpful.

Thanks,
Barry



Auditing code

2009-10-12 Thread Matt Fisher
I'd like to start auditing code for a few classes of defects. Would the
bugs list be the correct place to submit a pile of diffs?

The defect classes I'm looking at are gleaned from Ian Darwin and Geoff
Collyer's 1985 USENIX paper, Can't Happen [1]. BSD 4.2 took a beating
almost 25 years ago; OpenBSD still has some room for improvement.

Two examples:

- Check that input files aren't directories; indent doesn't check, and
  auditing would be an excuse to get my eyeballs on more code.

- Handle signals correctly, e.g.,

/* catch interrupts iff not ignoring them */
if (signal(SIGINT, SIG_IGN) != SIG_IGN)
(void) signal(SIGINT, onintr);

That last guideline seems to be honored in the breach, so I wonder if
it's become obsolete.

Thanks.

[1] http://www.literateprogramming.com/canthappen.pdf

-- 
Matt Fisher mfisher...@maine.rr.com



Re: ZTE-MF626 USB Modem

2009-10-12 Thread Sergio Andrés Gómez del Real
Hi again.

Sometimes I get the following:

OpenBSD 4.5 (GENERIC.MP) #2133: Sat Feb 28 15:02:16 MST 2009
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2143023104 (2043MB)
avail mem = 2069721088 (1973MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf7250 (44 entries)
bios0: vendor Dell Inc. version A10 date 07/17/2009
bios0: Dell Inc. Inspiron 1545
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET APIC MCFG SLIC SSDT
acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0)
USB4(S0) USB5(S0) USB6(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S3)
RP02(S3) RP03(S3) RP04(S3) RP05(S3) RP06(S3) LID_(S3) PBTN(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.34 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 265MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 3MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 11 (RP01)
acpiprt3 at acpi0: bus 12 (RP02)
acpiprt4 at acpi0: bus 9 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 13 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3
acpicpu1 at acpi0: C3
acpitz0 at acpi0: critical temperature 105 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model DELL Y823G9 serial 591 type LION oem SMP
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0617092006000920
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2400 MHz (1212 mV): speeds: 2400, 1600 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
ppb0 at pci0 dev 1 function 0 Intel GM45 PCIE rev 0x07: apic 2 int 16 (irq 0)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x9552 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 2
int 21 (irq 10)
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 7)
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 7)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x03:
apic 2 int 21 (irq 10)
azalia0: codecs: IDT 92HD71B7
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: apic 2
int 16 (irq 0)
pci2 at ppb1 bus 11
ppb2 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: apic 2
int 17 (irq 0)
pci3 at ppb2 bus 12
iwn0 at pci3 dev 0 function 0 Intel WiFi Link 5100AGN rev 0x00: apic
2 int 17 (irq 5), MIMO 1T2R, MoW, address 00:22:fb:9b:6f:62
ppb3 at pci0 dev 28 function 2 Intel 82801I PCIE rev 0x03: apic 2
int 18 (irq 0)
pci4 at ppb3 bus 9
mskc0 at pci4 dev 0 function 0 Marvell Yukon 88E8040 rev 0x13,
Yukon-2 FE+ (0x0): apic 2 int 18 (irq 10)
msk0 at mskc0 port A: address 00:25:64:52:74:2d
eephy0 at msk0 phy 0: 88E3016 10/100 PHY, rev. 0
ppb4 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x03: apic 2
int 16 (irq 0)
pci5 at ppb4 bus 13
uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
uhci4 at pci0 dev 29 function 1 Intel 82801I USB rev 0x03: apic 2
int 21 (irq 10)
uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 7)
ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x93
pci6 at ppb5 bus 3
pcib0 at pci0 dev 31 function 0 vendor Intel, unknown product 0x2919 rev 0x03
ahci0 at pci0 dev 31 function 2 Intel 82801I AHCI rev 0x03: apic 2
int 18 (irq 10), AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, ST9160314AS, 0003 SCSI3 0/direct fixed
sd0: 152627MB, 512 bytes/sec, 312581808 sec total
cd0 at scsibus0 targ 1 lun 0: Optiarc, DVD+-RW AD-7560S, SD05 ATAPI
5/cdrom removable

Re: Questions for OpenBGPd Developers

2009-10-12 Thread Reyk Floeter
Hi,

it only works on OpenBSD and any efforts to port it to FreeBSD or
Linux weren't really successful.  The reason is that OpenBSD's routing
daemons heavilly utilize the kernel's routing stack that has many
interfaces and features that are not available in and is not
compatible to other OSes.  You end up with a half-working daemon
missing many features and lots of #if 0's in the code.

reyk

On Mon, Oct 12, 2009 at 10:40:14AM -0700, Barry Friedman wrote:
 Hi, I'm looking at open source BGP implementations for possible use on
 a Linux-based system. I'm interested in OpenBGPd and I understand that
 it's part of OpenBSD but in the application that I'm looking at the
 only choice I am given is Linux. My questions are:
 
 Are there any projects to create an OpenBGPd implementation that is
 portable and separate from OpenBSD? I'm aware of quick-n-dirty ports
 like http://wiki.version6.net/openbgpd but was wondering more formal
 projects to create a full-featured and portable implementation that is
 more like a true open source project (ie. on a public source control
 server with open forums, mailing lists, bug reporting, frequent
 releases, etc).
 
 Is the current OpenBGPd development team an open team in which anyone
 may contribute patches, or is it a closed team?
 
 If there was a porting effort, could the changes be incorporated into
 the existing project, or would a portable OpenBGPd need to be a
 separate project?
 
 At this stage I'm just gathering information and answers to the above
 questions would be very helpful.
 
 Thanks,
 Barry



Re: Auditing code

2009-10-12 Thread Theo de Raadt
 I'd like to start auditing code for a few classes of defects. Would the
 bugs list be the correct place to submit a pile of diffs?

Just mail the people who last worked on the code, and if that does not
work, feel free to mail me and I will tell you who to talk to. 

 The defect classes I'm looking at are gleaned from Ian Darwin and Geoff
 Collyer's 1985 USENIX paper, Can't Happen [1]. BSD 4.2 took a beating
 almost 25 years ago; OpenBSD still has some room for improvement.

I think you are wrong.

 Two examples:
 
 - Check that input files aren't directories; indent doesn't check, and
   auditing would be an excuse to get my eyeballs on more code.

The kernel handles that.

% indent dir
indent: dir: Is a directory

 - Handle signals correctly, e.g.,
 
 /* catch interrupts iff not ignoring them */
 if (signal(SIGINT, SIG_IGN) != SIG_IGN)
 (void) signal(SIGINT, onintr);

I assume you are talking about resetting the signals when they are caught.
That is not required in BSD unix.

Unix has not stayed the same.  It seems that paper was written according
to ancient Unix.



Je sur comptable a la banque BCB je vais virée $6.million a la etranger

2009-10-12 Thread Ashraf Cotu
You're invited to Je sur comptable a la banque BCB je vais virie $6.million a 
la etranger.


By your host Ashraf Cotu:


 Date:  Monday October 12, 2009

 Time:  6:00 pm - 7:00 pm (GMT +00:00)
 Location:  Cher Ami Salut, Je suis MR, Ashraf Cotu comptable a la 
BANQUE COMERCIALE DU BURKINA (BCB), je vais virie $6.million (usd) a la 
etranger si vous pour vais me aide et ci ga vous intersse je vous enverrons 
tous les ditails sur la fagon dont on va fait le demache et igalement noter que 
vous aurez 30% du montant indiqui .si vous jtes d'accord pour m'aider ` 
exicuter cette transaction. reponne moi rapidement et s.v.p ces un propossition 
confidentielle merci

Guests:

 * mich...@wanadoo.fr
 * micha.pfe...@yahoo.fr
 * michael.co...@hotmail.fr
 * michael.dup...@mac.com
 * michael.girar...@hotmail.fr
 * michael.so...@hotmail.fr
 * michael_a_ro...@yahoo.ca
 * michaelschm...@hotmail.fr
 * michamica105b...@hotmail.com
 * michb...@hotmail.fr
 * michel.bourge...@hotmail.fr
 * michel.brab...@spcorp.com
 * michel.garcia.c...@libertysurf.fr
 * michel.tib...@laposte.net
 * michel062...@hotmail.fr
 * mic...@dolphinshop.com
 * michel_beka...@hotmail.fr
 * michel_desha...@yahoo.fr
 * michele.def...@yahoo.fr
 * michelguig...@yahoo.ca
 * michelha...@hotmail.com
 * micheline_landr...@yahoo.fr
 * michellaport...@yahoo.ca
 * michelle.ara...@hotmail.fr
 * michelou...@hotmail.fr
 * michel...@hotmail.fr
 * michelrichar...@hotmail.fr
 * micheltrembla...@yahoo.ca
 * michelvine...@yahoo.fr
 * mickaelgarci...@hotmail.fr
 * micom...@yahoo.fr
 * microsoftgh...@hotmail.com
 * midelau...@hotmail.fr
 * midoc...@yahoo.fr
 * mike3...@email.com
 * mike...@lemel.fr
 * milarep...@yahoo.fr
 * mildred_miral...@hotmail.com
 * millekilomet...@hotmail.fr
 * milliadaire-zario...@live.fr
 * milnewst...@yahoo.ca
 * milomat...@yahoo.com
 * milou@hotmail.com
 * milou_...@hotmail.com
 * milouz...@hotmail.com
 * milpi...@yahoo.ca
 * mimi...@hotmail.fr
 * mimienc...@yahoo.fr
 * minagha...@yahoo.fr
 * minibrur...@hotmail.fr
 * minim...@hotmail.fr
 * minimalp...@hotmail.fr
 * miniver...@hotmail.com
 * minni_...@hotmail.fr
 * minoudan...@hotmail.com
 * miperret.mjcv...@freesurf.fr
 * miras.e...@yahoo.fr
 * mireillein...@yahoo.fr
 * mirian...@hotmail.com
 * miriannelaval...@yahoo.ca
 * mirk...@g-mail.com
 * mir...@hotmail.fr
 * mirwy...@yahoo.fr
 * misc@openbsd.org
 * mise_en_thro...@yahoo.fr
 * misko.ki...@yahoo.ca
 * miss-tinou...@hotmail.fr
 * miss_cloc...@hotmail.com
 * miss...@hotmail.fr
 * missfadel...@hotmail.fr
 * missliban2003_sa...@yahoo.fr
 * missloulo...@hotmail.fr
 * missmurder1...@hotmail.fr
 * missna...@hotmail.fr
 * misspsykodin...@hotmail.fr
 * missymari...@hotmail.com
 * mistinguett...@hotmail.fr
 * mixciteren...@yahoo.fr
 * mj-p...@hotmail.fr
 * mjosee_pro...@yahoo.ca

invitation_add_to_your_yahoo_calendar:

 
http://ca.calendar.yahoo.com/?v=60ST=20091012T18%2BTITLE=Je+sur+comptable+a+la+banque+BCB+je+vais+vir%c3%a9e+$6.million+a+la+etrangerDUR=0100VIEW=din_loc=Cher+Ami+Salut,+Je+suis+MR,+Ashraf+Cotu+comptable+a+la+BANQUE+COMERCIALE+DU+BURKINA+(BCB),+je+vais+vir%c3%a9e+$6.million+(usd)+a+la+etranger+si+vous+pour+vais+me+aide+et+ci+%c3%a7a+vous+intersse+je+vous+enverrons+tous+les+d%c3%a9tails+sur+la+fa%c3%a7on+dont+on+va+fait+le+demache+et+%c3%a9galement+noter+que+vous+aurez+30%25+du+montant+indiqu%c3%a9+.si+vous+%c3%aates+d%27accord+pour+m%27aider+%c3%a0+ex%c3%a9cuter+cette+transaction.+reponne+moi+rapidement+et+s.v.p+ces+un+propossition+confidentielle+merciTYPE=10


Copyright ) 2009 All Rights Reserved
 www.yahoo.ca

Privacy Policy:
 http://privacy.yahoo.com/privacy/ca

Terms of Service:
 http://ca.docs.yahoo.com/info/terms/



Unable to power down after halting

2009-10-12 Thread Shipp Douglas
Hi all,

I'm having some issues regarding to automatically power down my machine
after halting. I have tried to pass the -p option to both
/sbin/shutdown and /sbin/halt, but I didn't get success.

My rc.shutdown configuration file is as follows:
# /etc/rc.shutdown
#
powerdown=YES

And here is the output from dmesg:

OpenBSD 4.4 (GENERIC.MP) #1812: Tue Aug 12 17:22:53 MDT 2008
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2133815296 (2034MB)
avail mem = 2071953408 (1975MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf04d0 (57 entries)
bios0: vendor American Megatrends Inc. version 0301 date 06/09/2006
bios0: ASUSTeK Computer INC. P5GPL-X SE
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC OEMB MCFG
acpi0: wakeup devices P0P1(S4) P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4)
P0P7(S4) PS2K(S4) PS2M(S4) UAR1(S4) USB1(S4) USB2(S4) USB3(S4)
USB4(S4)
EUSB(S4) MC97(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz, 3011.01 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-
CPL,EST,TM2,CNXT-ID,CX16,xTPR,LONG
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: apic clock running at 238MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) 4 CPU 3.00GHz, 3582.69 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-
CPL,EST,TM2,CNXT-ID,CX16,xTPR,LONG
cpu1: 2MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P1)
acpiprt2 at acpi0: bus 1 (P0P3)
acpiprt3 at acpi0: bus 2 (P0P4)
acpiprt4 at acpi0: bus -1 (P0P6)
acpiprt5 at acpi0: bus -1 (P0P7)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 82915G Host rev 0x0e
ppb0 at pci0 dev 1 function 0 Intel 82915G PCIE rev 0x0e: apic 2 int
16 (irq 10)
pci1 at ppb0 bus 3
vga1 at pci1 dev 0 function 0 NVIDIA GeForce 7300 GS rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: no integrated graphics
drm at vga1 unsupported
azalia0 at pci0 dev 27 function 0 Intel 82801FB HD Audio rev 0x04:
apic 2 int 16 (irq 10)
azalia0: codec[s]: Analog Devices/0x1986
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801FB PCIE rev 0x04: apic 2
int 16 (irq 10)
pci2 at ppb1 bus 2
uhci0 at pci0 dev 29 function 0 Intel 82801FB USB rev 0x04: apic 2
int 23 (irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801FB USB rev 0x04: apic 2
int 19 (irq 4)
uhci2 at pci0 dev 29 function 2 Intel 82801FB USB rev 0x04: apic 2
int 18 (irq 5)
uhci3 at pci0 dev 29 function 3 Intel 82801FB USB rev 0x04: apic 2
int 16 (irq 10)
ehci0 at pci0 dev 29 function 7 Intel 82801FB USB rev 0x04: apic 2
int 23 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xd4
pci3 at ppb2 bus 1
skc0 at pci3 dev 3 function 0 Marvell Yukon 88E8001/8003/8010 rev
0x13, Yukon Lite (0x9): apic 2 int 19 (irq 4)
sk0 at skc0 port A: address 00:17:31:ab:cd:ef
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
vendor Motorola, unknown product 0x3052 (class communications
subclass modem, rev 0x04) at pci3 dev 9 function 0 not configured
pcib0 at pci0 dev 31 function 0 Intel 82801FB LPC rev 0x04
pciide0 at pci0 dev 31 function 1 Intel 82801FB IDE rev 0x04: DMA,
channel 0 configured to compatibility, channel 1 configured to compati
bility
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVD-RAM GSA-H55N, 1.01 ATAPI
5/cdrom removable
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 Intel 82801FB SATA rev 0x04: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PC
I
pciide1: using apic 2 int 19 (irq 4) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: ST3200820AS
wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801FB SMBus rev 0x04: apic
2 int 19 (irq 0)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 1GB DDR SDRAM non-parity PC3200CL3.0
spdmem1 at iic0 addr 0x52: 1GB DDR SDRAM non-parity PC3200CL3.0
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 Intel UHCI 

Re: Unable to power down after halting

2009-10-12 Thread Aioanei Rares

Shipp Douglas wrote:

Hi all,

I'm having some issues regarding to automatically power down my machine
after halting. I have tried to pass the -p option to both
/sbin/shutdown and /sbin/halt, but I didn't get success.

My rc.shutdown configuration file is as follows:
# /etc/rc.shutdown
#
powerdown=YES

And here is the output from dmesg:

OpenBSD 4.4 (GENERIC.MP) #1812: Tue Aug 12 17:22:53 MDT 2008
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2133815296 (2034MB)
avail mem = 2071953408 (1975MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf04d0 (57 entries)
bios0: vendor American Megatrends Inc. version 0301 date 06/09/2006
bios0: ASUSTeK Computer INC. P5GPL-X SE
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC OEMB MCFG
acpi0: wakeup devices P0P1(S4) P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4)
P0P7(S4) PS2K(S4) PS2M(S4) UAR1(S4) USB1(S4) USB2(S4) USB3(S4)
USB4(S4)
EUSB(S4) MC97(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz, 3011.01 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-
CPL,EST,TM2,CNXT-ID,CX16,xTPR,LONG
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: apic clock running at 238MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) 4 CPU 3.00GHz, 3582.69 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-
CPL,EST,TM2,CNXT-ID,CX16,xTPR,LONG
cpu1: 2MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P1)
acpiprt2 at acpi0: bus 1 (P0P3)
acpiprt3 at acpi0: bus 2 (P0P4)
acpiprt4 at acpi0: bus -1 (P0P6)
acpiprt5 at acpi0: bus -1 (P0P7)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 82915G Host rev 0x0e
ppb0 at pci0 dev 1 function 0 Intel 82915G PCIE rev 0x0e: apic 2 int
16 (irq 10)
pci1 at ppb0 bus 3
vga1 at pci1 dev 0 function 0 NVIDIA GeForce 7300 GS rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: no integrated graphics
drm at vga1 unsupported
azalia0 at pci0 dev 27 function 0 Intel 82801FB HD Audio rev 0x04:
apic 2 int 16 (irq 10)
azalia0: codec[s]: Analog Devices/0x1986
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801FB PCIE rev 0x04: apic 2
int 16 (irq 10)
pci2 at ppb1 bus 2
uhci0 at pci0 dev 29 function 0 Intel 82801FB USB rev 0x04: apic 2
int 23 (irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801FB USB rev 0x04: apic 2
int 19 (irq 4)
uhci2 at pci0 dev 29 function 2 Intel 82801FB USB rev 0x04: apic 2
int 18 (irq 5)
uhci3 at pci0 dev 29 function 3 Intel 82801FB USB rev 0x04: apic 2
int 16 (irq 10)
ehci0 at pci0 dev 29 function 7 Intel 82801FB USB rev 0x04: apic 2
int 23 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xd4
pci3 at ppb2 bus 1
skc0 at pci3 dev 3 function 0 Marvell Yukon 88E8001/8003/8010 rev
0x13, Yukon Lite (0x9): apic 2 int 19 (irq 4)
sk0 at skc0 port A: address 00:17:31:ab:cd:ef
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
vendor Motorola, unknown product 0x3052 (class communications
subclass modem, rev 0x04) at pci3 dev 9 function 0 not configured
pcib0 at pci0 dev 31 function 0 Intel 82801FB LPC rev 0x04
pciide0 at pci0 dev 31 function 1 Intel 82801FB IDE rev 0x04: DMA,
channel 0 configured to compatibility, channel 1 configured to compati
bility
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVD-RAM GSA-H55N, 1.01 ATAPI
5/cdrom removable
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 Intel 82801FB SATA rev 0x04: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PC
I
pciide1: using apic 2 int 19 (irq 4) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: ST3200820AS
wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801FB SMBus rev 0x04: apic
2 int 19 (irq 0)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 1GB DDR SDRAM non-parity PC3200CL3.0
spdmem1 at iic0 addr 0x52: 1GB DDR SDRAM non-parity PC3200CL3.0
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0

home, end, delete, pageup, pagedown with ksh

2009-10-12 Thread Nicolas Letellier
Hello.

I want to use home, end, delete, pageup, pagedown with ksh. My TERM is 
xterm-color. These keys works fine with tcsh and zsh, but not with ksh 
(print a tilda ~)

I found this:

bind '^[[3'=prefix-2
bind '^[[3~'=delete-char-forward
bind '^[[1'=prefix-2
bind '^[[1~'=beginning-of-line
bind '^[[4'=prefix-2
bind '^[[4~'=end-of-line

But when I set one bindkey, the last does not work anymore.

How can I use these keys in ksh with a .kshrc ?

Best regards,

-- 
Nicolas



Re: with ip-stealth balancing syn-ack gets blocked on the wrong firewall

2009-10-12 Thread Marco Pfatschbacher
On Tue, Oct 06, 2009 at 11:22:11PM +0300, Imre Oolberg wrote:
 Hallo!
 
 I have used carp ip-stealth balancing for only pass and block rules with
 two openbsd 4.5 firewalls and https server quite successfully, like this

Hi,

finally someone who got IP balancing to work :)
 
 
to  isp router is firewalls' default gw
 
   |--carp0--|carp0: 192.168.1.170
  _|_   _|_
FW1  |   | |   |  FW2
 |___| |___|
   |--carp1--|   carp1: 10.0.1.193
   | |
   |---|-|--|---
   ||
  _|_  _|_
 |   | 10.0.1.200:443 |   | 10.0.1.199:80
 |___| https server   |___| http server
 
 Carp interfaces are created with definitions like this (on the other
 firewall 1:100,2:0 - 1:0,2:100)
 
 inet 192.168.1.170 255.255.255.248 192.168.1.175 carpnodes \
   1:100,2:0 balancing ip-stealth pass xxx carpdev em0
 inet 10.0.1.193 255.255.255.240 10.0.1.207 carpnodes \
   3:100,4:0 balancing ip-stealth pass yyy carpdev em1
 
 And the problem arrives when i add second server (http) and trying to
 use rdr rules rewriting ip address, essential rules are
 
 rdr on $ext_if inet proto tcp to 10.0.1.199 port 8080 tag TO_HTTP \
   - 10.0.1.199 port 80
 rdr on $ext_if inet proto tcp to 10.0.1.200 port 80 tag TO_HTTP \
   - 10.0.1.199 port 80

Carp IP balancing does its load distribution with a simple hash
over the source and destination IP address.
So in general doing any sort of address rewrite (nat, rdr)
can mess things up, because the return packet will be handled
by the other node.
And stateful filtering and asymmetric routing are not good friends.

However, in your case there might be a workaround.
The carp hash function does a:   (src ^ dst) % number_of_nodes
to decide which node accepts the packet.
Since you only have 2 nodes, it is all just a matter of an
odd or even result.
If you change your https servers' IP to an odd one (eg 10.0.1.201)
your rdr rule would become:

 rdr on $ext_if inet proto tcp to 10.0.1.201 port 80 tag TO_HTTP \
   - 10.0.1.199 port 80

This way, the packet hash after the rdr will be equal to the
one before.
 
 pass in quick on $ext_if inet tagged TO_HTTP
 pass in quick on $ext_if inet proto tcp to 10.0.1.200 port 443 \
   tag TO_HTTP
 pass out quick on $int_if inet tagged TO_HTTP
 
 So the problem is i cant figure out why first rdr works and the second
 rdr does not.

The first one only rewrites the tcp port, not the IP address.

HTH,

Marco



Re: Unable to power down after halting

2009-10-12 Thread Shipp Douglas
Yeah, I have already tried the above command... unfortunately, as I
had said before, it didn't work.

Sorry if I didn't make it clear in my previous message, but the
commands that I have tested are as follows:

# shutdown -h -p now
and
# halt -p

On 10/12/09, Aioanei Rares bsdlis...@gmail.com wrote:
 Shipp Douglas wrote:
 Hi all,

 I'm having some issues regarding to automatically power down my machine
 after halting. I have tried to pass the -p option to both
 /sbin/shutdown and /sbin/halt, but I didn't get success.

 My rc.shutdown configuration file is as follows:
 # /etc/rc.shutdown
 #
 powerdown=YES

 And here is the output from dmesg:

 OpenBSD 4.4 (GENERIC.MP) #1812: Tue Aug 12 17:22:53 MDT 2008
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 2133815296 (2034MB)
 avail mem = 2071953408 (1975MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf04d0 (57 entries)
 bios0: vendor American Megatrends Inc. version 0301 date 06/09/2006
 bios0: ASUSTeK Computer INC. P5GPL-X SE
 acpi0 at bios0: rev 0
 acpi0: tables DSDT FACP APIC OEMB MCFG
 acpi0: wakeup devices P0P1(S4) P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4)
 P0P7(S4) PS2K(S4) PS2M(S4) UAR1(S4) USB1(S4) USB2(S4) USB3(S4)
 USB4(S4)
 EUSB(S4) MC97(S4) SLPB(S4)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz, 3011.01 MHz
 cpu0:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-
 CPL,EST,TM2,CNXT-ID,CX16,xTPR,LONG
 cpu0: 2MB 64b/line 8-way L2 cache
 cpu0: apic clock running at 238MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Pentium(R) 4 CPU 3.00GHz, 3582.69 MHz
 cpu1:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-
 CPL,EST,TM2,CNXT-ID,CX16,xTPR,LONG
 cpu1: 2MB 64b/line 8-way L2 cache
 ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 3 (P0P1)
 acpiprt2 at acpi0: bus 1 (P0P3)
 acpiprt3 at acpi0: bus 2 (P0P4)
 acpiprt4 at acpi0: bus -1 (P0P6)
 acpiprt5 at acpi0: bus -1 (P0P7)
 acpicpu0 at acpi0
 acpicpu1 at acpi0
 acpibtn0 at acpi0: SLPB
 acpibtn1 at acpi0: PWRB
 pci0 at mainbus0 bus 0: configuration mode 1
 pchb0 at pci0 dev 0 function 0 Intel 82915G Host rev 0x0e
 ppb0 at pci0 dev 1 function 0 Intel 82915G PCIE rev 0x0e: apic 2 int
 16 (irq 10)
 pci1 at ppb0 bus 3
 vga1 at pci1 dev 0 function 0 NVIDIA GeForce 7300 GS rev 0xa1
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 agp0 at vga1: no integrated graphics
 drm at vga1 unsupported
 azalia0 at pci0 dev 27 function 0 Intel 82801FB HD Audio rev 0x04:
 apic 2 int 16 (irq 10)
 azalia0: codec[s]: Analog Devices/0x1986
 audio0 at azalia0
 ppb1 at pci0 dev 28 function 0 Intel 82801FB PCIE rev 0x04: apic 2
 int 16 (irq 10)
 pci2 at ppb1 bus 2
 uhci0 at pci0 dev 29 function 0 Intel 82801FB USB rev 0x04: apic 2
 int 23 (irq 11)
 uhci1 at pci0 dev 29 function 1 Intel 82801FB USB rev 0x04: apic 2
 int 19 (irq 4)
 uhci2 at pci0 dev 29 function 2 Intel 82801FB USB rev 0x04: apic 2
 int 18 (irq 5)
 uhci3 at pci0 dev 29 function 3 Intel 82801FB USB rev 0x04: apic 2
 int 16 (irq 10)
 ehci0 at pci0 dev 29 function 7 Intel 82801FB USB rev 0x04: apic 2
 int 23 (irq 11)
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
 ppb2 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xd4
 pci3 at ppb2 bus 1
 skc0 at pci3 dev 3 function 0 Marvell Yukon 88E8001/8003/8010 rev
 0x13, Yukon Lite (0x9): apic 2 int 19 (irq 4)
 sk0 at skc0 port A: address 00:17:31:ab:cd:ef
 eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
 vendor Motorola, unknown product 0x3052 (class communications
 subclass modem, rev 0x04) at pci3 dev 9 function 0 not configured
 pcib0 at pci0 dev 31 function 0 Intel 82801FB LPC rev 0x04
 pciide0 at pci0 dev 31 function 1 Intel 82801FB IDE rev 0x04: DMA,
 channel 0 configured to compatibility, channel 1 configured to compati
 bility
 atapiscsi0 at pciide0 channel 0 drive 1
 scsibus0 at atapiscsi0: 2 targets, initiator 7
 cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVD-RAM GSA-H55N, 1.01 ATAPI
 5/cdrom removable
 cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4
 pciide0: channel 1 disabled (no drives)
 pciide1 at pci0 dev 31 function 2 Intel 82801FB SATA rev 0x04: DMA,
 channel 0 configured to native-PCI, channel 1 configured to native-PC
 I
 pciide1: using apic 2 int 19 (irq 4) for native-PCI interrupt
 wd0 at pciide1 channel 0 drive 0: ST3200820AS
 wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
 wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
 ichiic0 at pci0 dev 31 function 3 Intel 82801FB SMBus rev 0x04: apic
 2 int 19 (irq 0)
 iic0 at ichiic0
 spdmem0 at iic0 

Re: Questions for OpenBGPd Developers

2009-10-12 Thread Claudio Jeker
On Mon, Oct 12, 2009 at 08:12:41PM +0200, Reyk Floeter wrote:
 Hi,
 
 it only works on OpenBSD and any efforts to port it to FreeBSD or
 Linux weren't really successful.  The reason is that OpenBSD's routing
 daemons heavilly utilize the kernel's routing stack that has many
 interfaces and features that are not available in and is not
 compatible to other OSes.  You end up with a half-working daemon
 missing many features and lots of #if 0's in the code.
 

While true this is mostly the reason because nobody from outside came
towards us trying to come up with a portable OpenBGPD similar to the one
done for OpenSSH. Neither I nor Henning have the time and nerves to fiddle
around with other systems routing stack (our own is already painful enough)
I doubt that we will commit needed platform glue for other OSs to our tree
but it should be possible to pack a special OpenBGPD tarball with the
needed glue. It comes down to replace 4 or so files (kroute.c, carp.c,
pfkey.c, pftable.c) with replacement implementations. The rest should be
OS independent. Some features will be impossible to implement on some
systems though.

 On Mon, Oct 12, 2009 at 10:40:14AM -0700, Barry Friedman wrote:
  Hi, I'm looking at open source BGP implementations for possible use on
  a Linux-based system. I'm interested in OpenBGPd and I understand that
  it's part of OpenBSD but in the application that I'm looking at the
  only choice I am given is Linux. My questions are:
  
  Are there any projects to create an OpenBGPd implementation that is
  portable and separate from OpenBSD? I'm aware of quick-n-dirty ports
  like http://wiki.version6.net/openbgpd but was wondering more formal
  projects to create a full-featured and portable implementation that is
  more like a true open source project (ie. on a public source control
  server with open forums, mailing lists, bug reporting, frequent
  releases, etc).
  
  Is the current OpenBGPd development team an open team in which anyone
  may contribute patches, or is it a closed team?
  
  If there was a porting effort, could the changes be incorporated into
  the existing project, or would a portable OpenBGPd need to be a
  separate project?
  
  At this stage I'm just gathering information and answers to the above
  questions would be very helpful.
  
  Thanks,
  Barry
 

-- 
:wq Claudio



Re: Unable to power down after halting

2009-10-12 Thread Rafael Ferreira Neves
I've had the same problem with 4.5-STABLE.  The halt process went ok, but my
machine didn't power down.  The problem just dissapeared when I upgrade my
system to 4.6-CURRENT.

On Mon, Oct 12, 2009 at 6:19 PM, Shipp Douglas shelle...@gmail.com wrote:

 Yeah, I have already tried the above command... unfortunately, as I
 had said before, it didn't work.

 Sorry if I didn't make it clear in my previous message, but the
 commands that I have tested are as follows:

 # shutdown -h -p now
 and
 # halt -p

 On 10/12/09, Aioanei Rares bsdlis...@gmail.com wrote:
  Shipp Douglas wrote:
  Hi all,
 
  I'm having some issues regarding to automatically power down my machine
  after halting. I have tried to pass the -p option to both
  /sbin/shutdown and /sbin/halt, but I didn't get success.
 
  My rc.shutdown configuration file is as follows:
  # /etc/rc.shutdown
  #
  powerdown=YES
 
  And here is the output from dmesg:
 
  OpenBSD 4.4 (GENERIC.MP) #1812: Tue Aug 12 17:22:53 MDT 2008
  dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/
 GENERIC.MP
  real mem = 2133815296 (2034MB)
  avail mem = 2071953408 (1975MB)
  mainbus0 at root
  bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf04d0 (57 entries)
  bios0: vendor American Megatrends Inc. version 0301 date 06/09/2006
  bios0: ASUSTeK Computer INC. P5GPL-X SE
  acpi0 at bios0: rev 0
  acpi0: tables DSDT FACP APIC OEMB MCFG
  acpi0: wakeup devices P0P1(S4) P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4)
  P0P7(S4) PS2K(S4) PS2M(S4) UAR1(S4) USB1(S4) USB2(S4) USB3(S4)
  USB4(S4)
  EUSB(S4) MC97(S4) SLPB(S4)
  acpitimer0 at acpi0: 3579545 Hz, 24 bits
  acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
  cpu0 at mainbus0: apid 0 (boot processor)
  cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz, 3011.01 MHz
  cpu0:
 
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-
  CPL,EST,TM2,CNXT-ID,CX16,xTPR,LONG
  cpu0: 2MB 64b/line 8-way L2 cache
  cpu0: apic clock running at 238MHz
  cpu1 at mainbus0: apid 1 (application processor)
  cpu1: Intel(R) Pentium(R) 4 CPU 3.00GHz, 3582.69 MHz
  cpu1:
 
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-
  CPL,EST,TM2,CNXT-ID,CX16,xTPR,LONG
  cpu1: 2MB 64b/line 8-way L2 cache
  ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
  acpiprt0 at acpi0: bus 0 (PCI0)
  acpiprt1 at acpi0: bus 3 (P0P1)
  acpiprt2 at acpi0: bus 1 (P0P3)
  acpiprt3 at acpi0: bus 2 (P0P4)
  acpiprt4 at acpi0: bus -1 (P0P6)
  acpiprt5 at acpi0: bus -1 (P0P7)
  acpicpu0 at acpi0
  acpicpu1 at acpi0
  acpibtn0 at acpi0: SLPB
  acpibtn1 at acpi0: PWRB
  pci0 at mainbus0 bus 0: configuration mode 1
  pchb0 at pci0 dev 0 function 0 Intel 82915G Host rev 0x0e
  ppb0 at pci0 dev 1 function 0 Intel 82915G PCIE rev 0x0e: apic 2 int
  16 (irq 10)
  pci1 at ppb0 bus 3
  vga1 at pci1 dev 0 function 0 NVIDIA GeForce 7300 GS rev 0xa1
  wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
  wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
  agp0 at vga1: no integrated graphics
  drm at vga1 unsupported
  azalia0 at pci0 dev 27 function 0 Intel 82801FB HD Audio rev 0x04:
  apic 2 int 16 (irq 10)
  azalia0: codec[s]: Analog Devices/0x1986
  audio0 at azalia0
  ppb1 at pci0 dev 28 function 0 Intel 82801FB PCIE rev 0x04: apic 2
  int 16 (irq 10)
  pci2 at ppb1 bus 2
  uhci0 at pci0 dev 29 function 0 Intel 82801FB USB rev 0x04: apic 2
  int 23 (irq 11)
  uhci1 at pci0 dev 29 function 1 Intel 82801FB USB rev 0x04: apic 2
  int 19 (irq 4)
  uhci2 at pci0 dev 29 function 2 Intel 82801FB USB rev 0x04: apic 2
  int 18 (irq 5)
  uhci3 at pci0 dev 29 function 3 Intel 82801FB USB rev 0x04: apic 2
  int 16 (irq 10)
  ehci0 at pci0 dev 29 function 7 Intel 82801FB USB rev 0x04: apic 2
  int 23 (irq 11)
  usb0 at ehci0: USB revision 2.0
  uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
  ppb2 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xd4
  pci3 at ppb2 bus 1
  skc0 at pci3 dev 3 function 0 Marvell Yukon 88E8001/8003/8010 rev
  0x13, Yukon Lite (0x9): apic 2 int 19 (irq 4)
  sk0 at skc0 port A: address 00:17:31:ab:cd:ef
  eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
  vendor Motorola, unknown product 0x3052 (class communications
  subclass modem, rev 0x04) at pci3 dev 9 function 0 not configured
  pcib0 at pci0 dev 31 function 0 Intel 82801FB LPC rev 0x04
  pciide0 at pci0 dev 31 function 1 Intel 82801FB IDE rev 0x04: DMA,
  channel 0 configured to compatibility, channel 1 configured to compati
  bility
  atapiscsi0 at pciide0 channel 0 drive 1
  scsibus0 at atapiscsi0: 2 targets, initiator 7
  cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVD-RAM GSA-H55N, 1.01 ATAPI
  5/cdrom removable
  cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4
  pciide0: channel 1 disabled (no drives)
  pciide1 at pci0 dev 31 function 2 Intel 82801FB SATA rev 0x04: DMA,
  channel 0 configured to native-PCI, channel 1 

Re: Unable to power down after halting

2009-10-12 Thread Marco Peereboom

Fixed in 4.6.

On Oct 12, 2009, at 16:19, Shipp Douglas shelle...@gmail.com wrote:


Yeah, I have already tried the above command... unfortunately, as I
had said before, it didn't work.

Sorry if I didn't make it clear in my previous message, but the
commands that I have tested are as follows:

# shutdown -h -p now
and
# halt -p

On 10/12/09, Aioanei Rares bsdlis...@gmail.com wrote:

Shipp Douglas wrote:

Hi all,

I'm having some issues regarding to automatically power down my  
machine

after halting. I have tried to pass the -p option to both
/sbin/shutdown and /sbin/halt, but I didn't get success.

My rc.shutdown configuration file is as follows:
# /etc/rc.shutdown
#
powerdown=YES

And here is the output from dmesg:

OpenBSD 4.4 (GENERIC.MP) #1812: Tue Aug 12 17:22:53 MDT 2008
   dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/ 
GENERIC.MP

real mem = 2133815296 (2034MB)
avail mem = 2071953408 (1975MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf04d0 (57 entries)
bios0: vendor American Megatrends Inc. version 0301 date  
06/09/2006

bios0: ASUSTeK Computer INC. P5GPL-X SE
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC OEMB MCFG
acpi0: wakeup devices P0P1(S4) P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4)
P0P7(S4) PS2K(S4) PS2M(S4) UAR1(S4) USB1(S4) USB2(S4) USB3(S4)
USB4(S4)
EUSB(S4) MC97(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz, 3011.01 MHz
cpu0:
FPU, 
VME, 
DE, 
PSE, 
TSC, 
MSR, 
PAE, 
MCE, 
CX8, 
APIC, 
SEP, 
MTRR, 
PGE, 
MCA, 
CMOV, 
PAT, 
PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-

CPL,EST,TM2,CNXT-ID,CX16,xTPR,LONG
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: apic clock running at 238MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) 4 CPU 3.00GHz, 3582.69 MHz
cpu1:
FPU, 
VME, 
DE, 
PSE, 
TSC, 
MSR, 
PAE, 
MCE, 
CX8, 
APIC, 
SEP, 
MTRR, 
PGE, 
MCA, 
CMOV, 
PAT, 
PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-

CPL,EST,TM2,CNXT-ID,CX16,xTPR,LONG
cpu1: 2MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P1)
acpiprt2 at acpi0: bus 1 (P0P3)
acpiprt3 at acpi0: bus 2 (P0P4)
acpiprt4 at acpi0: bus -1 (P0P6)
acpiprt5 at acpi0: bus -1 (P0P7)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 82915G Host rev 0x0e
ppb0 at pci0 dev 1 function 0 Intel 82915G PCIE rev 0x0e: apic 2  
int

16 (irq 10)
pci1 at ppb0 bus 3
vga1 at pci1 dev 0 function 0 NVIDIA GeForce 7300 GS rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: no integrated graphics
drm at vga1 unsupported
azalia0 at pci0 dev 27 function 0 Intel 82801FB HD Audio rev 0x04:
apic 2 int 16 (irq 10)
azalia0: codec[s]: Analog Devices/0x1986
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801FB PCIE rev 0x04: apic 2
int 16 (irq 10)
pci2 at ppb1 bus 2
uhci0 at pci0 dev 29 function 0 Intel 82801FB USB rev 0x04: apic 2
int 23 (irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801FB USB rev 0x04: apic 2
int 19 (irq 4)
uhci2 at pci0 dev 29 function 2 Intel 82801FB USB rev 0x04: apic 2
int 18 (irq 5)
uhci3 at pci0 dev 29 function 3 Intel 82801FB USB rev 0x04: apic 2
int 16 (irq 10)
ehci0 at pci0 dev 29 function 7 Intel 82801FB USB rev 0x04: apic 2
int 23 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xd4
pci3 at ppb2 bus 1
skc0 at pci3 dev 3 function 0 Marvell Yukon 88E8001/8003/8010 rev
0x13, Yukon Lite (0x9): apic 2 int 19 (irq 4)
sk0 at skc0 port A: address 00:17:31:ab:cd:ef
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
vendor Motorola, unknown product 0x3052 (class communications
subclass modem, rev 0x04) at pci3 dev 9 function 0 not configured
pcib0 at pci0 dev 31 function 0 Intel 82801FB LPC rev 0x04
pciide0 at pci0 dev 31 function 1 Intel 82801FB IDE rev 0x04: DMA,
channel 0 configured to compatibility, channel 1 configured to  
compati

bility
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVD-RAM GSA-H55N, 1.01  
ATAPI

5/cdrom removable
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 Intel 82801FB SATA rev 0x04:  
DMA,
channel 0 configured to native-PCI, channel 1 configured to native- 
PC

I
pciide1: using apic 2 int 19 (irq 4) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: ST3200820AS
wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801FB 

Re: Questions for OpenBGPd Developers

2009-10-12 Thread Henning Brauer
* Claudio Jeker cje...@diehard.n-r-g.com [2009-10-13 00:09]:
 While true this is mostly the reason because nobody from outside came
 towards us trying to come up with a portable OpenBGPD similar to the one
 done for OpenSSH. Neither I nor Henning have the time and nerves to fiddle
 around with other systems routing stack (our own is already painful enough)
 I doubt that we will commit needed platform glue for other OSs to our tree
 but it should be possible to pack a special OpenBGPD tarball with the
 needed glue. It comes down to replace 4 or so files (kroute.c, carp.c,
 pfkey.c, pftable.c) with replacement implementations. The rest should be
 OS independent. Some features will be impossible to implement on some
 systems though.

and there's a reason why it is that way - I always found the idea of
making a bgp router out of a common unix box by adding a userland bgp
speaker only flawed. many things can only properly or at all be done
at kernel level or with kernel support.

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg  Amsterdam



Re: Questions for OpenBGPd Developers

2009-10-12 Thread Henning Brauer
* Barry Friedman friedman.ba...@gmail.com [2009-10-12 19:52]:
 Hi, I'm looking at open source BGP implementations for possible use on
 a Linux-based system. I'm interested in OpenBGPd and I understand that
 it's part of OpenBSD but in the application that I'm looking at the
 only choice I am given is Linux. My questions are:
 
 Are there any projects to create an OpenBGPd implementation that is
 portable and separate from OpenBSD? I'm aware of quick-n-dirty ports
 like http://wiki.version6.net/openbgpd but was wondering more formal
 projects to create a full-featured and portable implementation that is
 more like a true open source project (ie. on a public source control
 server with open forums, mailing lists, bug reporting, frequent
 releases, etc).

I am not aware of any portable efforts.

I portable would have to be done OpenSSH-style. We don't want the
clutter in our tree.

the code already is in a publich source control server (any openbsd
anoncvs has it), the openbsd mailing lists suffice, as does the
openbsd PR database. and there's a release every 6 months, pretty
frequent i'd say.

 Is the current OpenBGPd development team an open team in which anyone
 may contribute patches, or is it a closed team?

patches are welcome from pretty much anybody. in fact, if you read the
changelog you'll find a lot of diffs from people withour openbsd cvs
accounts committed by claudio or me.

 If there was a porting effort, could the changes be incorporated into
 the existing project, or would a portable OpenBGPd need to be a
 separate project?

openssh style

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg  Amsterdam



Re: Questions for OpenBGPd Developers

2009-10-12 Thread Barry Friedman
Hi, thanks everyone for the information, this helps give me an idea of
the scope and effort involved in getting OpenBGPd onto Linux. I'll
look at the OpenSSH project to see how the portability is added
without cluttering up the OpenBSD code.

Also I am sorry, I did not mean to imply that OpenBGPd is not in a
source control system or released frequently. I was referring to the
quick and dirty Linux port I mentioned which is just in tarball form.
Kudos to those who did that porting work because it allows Linux users
to at least play around with OpenBGPd a bit but I was just trying to
see if there was a more organized and source-controlled effort yet to
work on OpenBGPd porting to non-BSD systems.

Regards,
Barry

On Mon, Oct 12, 2009 at 5:09 PM, Henning Brauer lists-open...@bsws.de wrote:
 * Barry Friedman friedman.ba...@gmail.com [2009-10-12 19:52]:
 Hi, I'm looking at open source BGP implementations for possible use on
 a Linux-based system. I'm interested in OpenBGPd and I understand that
 it's part of OpenBSD but in the application that I'm looking at the
 only choice I am given is Linux. My questions are:

 Are there any projects to create an OpenBGPd implementation that is
 portable and separate from OpenBSD? I'm aware of quick-n-dirty ports
 like http://wiki.version6.net/openbgpd but was wondering more formal
 projects to create a full-featured and portable implementation that is
 more like a true open source project (ie. on a public source control
 server with open forums, mailing lists, bug reporting, frequent
 releases, etc).

 I am not aware of any portable efforts.

 I portable would have to be done OpenSSH-style. We don't want the
 clutter in our tree.

 the code already is in a publich source control server (any openbsd
 anoncvs has it), the openbsd mailing lists suffice, as does the
 openbsd PR database. and there's a release every 6 months, pretty
 frequent i'd say.

 Is the current OpenBGPd development team an open team in which anyone
 may contribute patches, or is it a closed team?

 patches are welcome from pretty much anybody. in fact, if you read the
 changelog you'll find a lot of diffs from people withour openbsd cvs
 accounts committed by claudio or me.

 If there was a porting effort, could the changes be incorporated into
 the existing project, or would a portable OpenBGPd need to be a
 separate project?

 openssh style

 --
 Henning Brauer, h...@bsws.de, henn...@openbsd.org
 BS Web Services, http://bsws.de
 Full-Service ISP - Secure Hosting, Mail and DNS Services
 Dedicated Servers, Rootservers, Application Hosting - Hamburg  Amsterdam



Emagreça 10 quilos em 15 dias

2009-10-12 Thread Perder Peso
Caso tenha dificuldade em visualizar, por favor clique no link abaixo

www.informacaobyweb.com/perder_peso.html




Ao abrigo do Dec.Lei 67/98 de 26 de Outubro, o destinatario podera
proceder ` rectificagco
ou cancelamento dos seus dados, conforme o disposto nos artigos 10: e
11:.

Se pretender remover o seu enderego de email, por favor no link abaixo
http://www.informacaobyweb.com/unsubcribe/index.php?a=



Re: Unable to power down after halting

2009-10-12 Thread Gabriel Guzman
On Mon, 12 Oct 2009 18:06:45 -0500
Marco Peereboom sl...@peereboom.us wrote:

 Fixed in 4.6.

It's fixed for me too in -current, though now there is another small
problem. 

If I issue a 

halt -p

The disks are synched (at least, I get the message), and the system is
powered off.  The problem is, every time I power the system back on, I
get the message telling me the disks were not cleanly unmounted, and a
file system check runs. 

Hadn't reported it since I was planning on updating and rebuilding in
a few days in any case.  dmesg below.  

gabe.  

dmesg: 

OpenBSD 4.6-current (GENERIC.MP) #2: Tue Oct  6 22:37:38 EDT 2009
r...@etranger.my.domain:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Pentium(R) Dual CPU T2330 @ 1.60GHz (GenuineIntel
686-class) 1.60 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,EST,TM2,CX16,xTPR
real mem  = 1063669760 (1014MB) avail mem = 1022169088 (974MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/20/08, BIOS32 rev. 0 @
0xfdcf0, SMBIOS rev. 2.4 @ 0xe0010 (70 entries) bios0: vendor LENOVO
version 7PETB2WW (2.12 ) date 02/20/2008 bios0: LENOVO 76509LU
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT SSDT SSDT
SSDT SSDT acpi0: wakeup devices LID_(S3) SLPB(S3) EXP0(S4) EXP1(S4)
EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3)
EHC0(S3) EHC1(S3) HDEF(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid
0 (boot processor) cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) Dual CPU T2330 @ 1.60GHz (GenuineIntel
686-class) 1.60 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,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins ioapic0:
misconfigured as apic 2, remapped to apid 1 acpihpet0 at acpi0:
14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4513 serial  5504 type LION oem
SANYO acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
bios0: ROM list: 0xc/0x1! 0xd/0x1a00 0xd1a00/0x1000
0xe/0x1! cpu0: Enhanced SpeedStep 1597 MHz: speeds: 1600, 1333,
1067, 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x0c
vga1 at pci0 dev 2 function 0 Intel GM965 Video rev 0x0c
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xe000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 10)
drm0 at inteldrm0
Intel GM965 Video rev 0x0c at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x03: apic 1 int
20 (irq 11) uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev
0x03: apic 1 int 21 (irq 11) ehci0 at pci0 dev 26 function 7 Intel
82801H USB rev 0x03: apic 1 int 22 (irq 11) usb0 at ehci0: USB
revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x03:
apic 1 int 17 (irq 11) azalia0: codecs: Conexant CX20549
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x03: apic 1 int
20 (irq 11) pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 Intel 82801H PCIE rev 0x03: apic 1 int
21 (irq 11) pci2 at ppb1 bus 3
wpi0 at pci2 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02:
apic 1 int 17 (irq 11), MoW1, address 00:1f:3c:18:d8:83 ppb2 at pci0
dev 28 function 2 Intel 82801H PCIE rev 0x03: apic 1 int 22 (irq 11)
pci3 at ppb2 bus 4 bge0 at pci3 dev 0 function 0 Broadcom BCM5787M
rev 0x02, BCM5754/5787 A2 (0xb002): apic 1 int 18 (irq 11), address
00:1c:25:90:79:9f brgphy0 at bge0 phy 1: BCM5787 10/100/1000baseT PHY,
rev. 0 uhci2 at pci0 dev 29 function 0 Intel 82801H USB rev 0x03:
apic 1 int 16 (irq 10) uhci3 at pci0 dev 29 function 1 Intel 82801H
USB rev 0x03: apic 1 int 17 (irq 11) uhci4 at pci0 dev 29 function 2
Intel 82801H USB rev 0x03: apic 1 int 18 (irq 11) ehci1 at pci0 dev
29 function 7 Intel 82801H USB rev 0x03: apic 1 int 19 (irq 11) usb1
at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xf3
pci4 at ppb3 bus 21
cbb0 at pci4 dev 0 function 0 Ricoh 5C476 CardBus rev 0xb6: apic 1
int 

Re: [Now, other problem] Re: high load cpu with trunk+vlan+carp

2009-10-12 Thread Luiz Gustavo
Luiz Gustavo S. Costa wrote:
 exists other maillist for the discussion about this ?
 
 dev ? pf ?
 
 please, anybody help-me :)
 
 2009/9/28 Luiz Gustavo S. Costa luizgust...@mundounix.com.br:
 has anyone with the same problem? developers? what could this be?

 2009/9/26 Luiz Gustavo S. Costa luizgust...@mundounix.com.br:
 Hi people,

 Look the interrupt...

 # top
 load averages:  2.08,  2.62,  1.93
  19:37:09
 23 processes:  2 running, 19 idle, 2 on processor
 CPU0 states:  1.0% user,  0.0% nice,  3.8% system, 95.2% interrupt,  0.0% 
 idle
 CPU1 states:  4.3% user,  0.0% nice, 41.3% system, 30.4% interrupt, 23.9% 
 idle
 Memory: Real: 15M/165M act/tot  Free: 832M  Swap: 0K/5120M used/tot

 Very rules of the rdr, this interrupt stay on high load

 Normal operation:
 # pfctl -sn | grep rdr | wc -l
  10

 With apply the my custom rdr:
 # pfctl -sn | grep rdr | wc -l
 672

 basically, i made one rdr for each ip, with below:
 rdr pass on vlan30 proto tcp from  . $cliente['ip'] .  to any port
 21 tag ftp_ . $nome .  - 127.0.0.1 port 8021

 the tag parameter is for queue control of ftp connection

 on the freebsd box, this rules works perfectly

 any solution ?

 2009/9/25 Luiz Gustavo S. Costa luizgust...@mundounix.com.br:
 Hi all,

 Ok, problem resolved !!!

 Rules with very log configuration, the interface pflog was generate
 this high load on interrupt

 Now, server in production:
 # uptime
 12:23PM  up 11 days,  2:16, 3 users, load averages: 0.11, 0.23, 0.48

 #top
 load averages:  0.13,  0.23,  0.47
12:24:04
 22 processes:  21 idle, 1 on processor
 CPU0 states:  0.0% user,  0.0% nice,  0.0% system, 36.9% interrupt, 63.1% 
 idle
 CPU1 states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% 
 idle

 # uname -mprsv
 OpenBSD 4.5 GENERIC.MP#0 i386 Intel(R) Pentium(R) 4 CPU 3.00GHz
 (GenuineIntel 686-class)

 Migration from one Freebsd

 - with Trunk + Vlan + Carp
 - Altq (hfsc hack on HFSC_MAX_CLASSES) over Vlan

 nice firewall 

 2009/9/17 Luiz Gustavo S. Costa luizgust...@mundounix.com.br:
 Hi guys !

 I have one installation of OpenBSD 4.5 with this configuration (network):

 (em0 and em1)  trunk0  vlan[10,30,40,63,65]  carp[10,30,40,63,65]

 Ok, this configuration is running perfect !

 But,
 With traffic on the scenario the cpu is go for down  i have one
 pentium 4 with 2 core, 1 core with 2% idle and 88% of interrupt and
 the other core with 40% of interrupt.

 ALTQ performance is poor because CPU is high load

 I migration this scenario of one freebsd (with lagg and vlan, not
 carp) with load average good (no used device polling)

 my configs:

 [r...@fw2 /usr/src]# sysctl kern.version
 kern.version=OpenBSD 4.5-stable (GENERIC.MP) #0: Fri Sep 11 15:34:39 BRT 
 2009
r...@fw2.x.net:/usr/src/sys/arch/i386/compile/GENERIC.MP

 [r...@fw2 /usr/src]# pcidump | grep 'Intel PRO'
  6:2:0: Intel PRO/1000GT (82541GI)
  6:3:0: Intel PRO/1000GT (82541GI)

 [r...@fw2 /usr/src]# sysctl hw.model
 hw.model=Intel(R) Pentium(R) 4 CPU 3.00GHz (GenuineIntel 686-class)
 [r...@fw2 /usr/src]# sysctl hw.ncpu
 hw.ncpu=2

 thanks guy's !


please, anybody with this problem ? help-me theo ! ;)


--
Luiz Gustavo Costa (Powered by BSD)
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
mundoUnix - Consultoria em Software Livre
http://www.mundounix.com.br
ICQ: 2890831 / MSN: cont...@mundounix.com.br



Re: [Now, other problem] Re: high load cpu with trunk+vlan+carp

2009-10-12 Thread tico

Luiz Gustavo wrote:

Luiz Gustavo S. Costa wrote:
  

exists other maillist for the discussion about this ?

dev ? pf ?

please, anybody help-me :)

2009/9/28 Luiz Gustavo S. Costa luizgust...@mundounix.com.br:


has anyone with the same problem? developers? what could this be?

2009/9/26 Luiz Gustavo S. Costa luizgust...@mundounix.com.br:
  

Hi people,

Look the interrupt...

# top
load averages:  2.08,  2.62,  1.93
 19:37:09
23 processes:  2 running, 19 idle, 2 on processor
CPU0 states:  1.0% user,  0.0% nice,  3.8% system, 95.2% interrupt,  0.0% idle
CPU1 states:  4.3% user,  0.0% nice, 41.3% system, 30.4% interrupt, 23.9% idle
Memory: Real: 15M/165M act/tot  Free: 832M  Swap: 0K/5120M used/tot

Very rules of the rdr, this interrupt stay on high load

Normal operation:
# pfctl -sn | grep rdr | wc -l
 10

With apply the my custom rdr:
# pfctl -sn | grep rdr | wc -l
672

basically, i made one rdr for each ip, with below:
rdr pass on vlan30 proto tcp from  . $cliente['ip'] .  to any port
21 tag ftp_ . $nome .  - 127.0.0.1 port 8021

the tag parameter is for queue control of ftp connection

on the freebsd box, this rules works perfectly

any solution ?

2009/9/25 Luiz Gustavo S. Costa luizgust...@mundounix.com.br:


Hi all,

Ok, problem resolved !!!

Rules with very log configuration, the interface pflog was generate
this high load on interrupt

Now, server in production:
# uptime
12:23PM  up 11 days,  2:16, 3 users, load averages: 0.11, 0.23, 0.48

#top
load averages:  0.13,  0.23,  0.47
   12:24:04
22 processes:  21 idle, 1 on processor
CPU0 states:  0.0% user,  0.0% nice,  0.0% system, 36.9% interrupt, 63.1% idle
CPU1 states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle

# uname -mprsv
OpenBSD 4.5 GENERIC.MP#0 i386 Intel(R) Pentium(R) 4 CPU 3.00GHz
(GenuineIntel 686-class)

Migration from one Freebsd

- with Trunk + Vlan + Carp
- Altq (hfsc hack on HFSC_MAX_CLASSES) over Vlan

nice firewall 

2009/9/17 Luiz Gustavo S. Costa luizgust...@mundounix.com.br:
  

Hi guys !

I have one installation of OpenBSD 4.5 with this configuration (network):

(em0 and em1)  trunk0  vlan[10,30,40,63,65]  carp[10,30,40,63,65]

Ok, this configuration is running perfect !

But,
With traffic on the scenario the cpu is go for down  i have one
pentium 4 with 2 core, 1 core with 2% idle and 88% of interrupt and
the other core with 40% of interrupt.

ALTQ performance is poor because CPU is high load

I migration this scenario of one freebsd (with lagg and vlan, not
carp) with load average good (no used device polling)

my configs:

[r...@fw2 /usr/src]# sysctl kern.version
kern.version=OpenBSD 4.5-stable (GENERIC.MP) #0: Fri Sep 11 15:34:39 BRT 2009
   r...@fw2.x.net:/usr/src/sys/arch/i386/compile/GENERIC.MP

[r...@fw2 /usr/src]# pcidump | grep 'Intel PRO'
 6:2:0: Intel PRO/1000GT (82541GI)
 6:3:0: Intel PRO/1000GT (82541GI)

[r...@fw2 /usr/src]# sysctl hw.model
hw.model=Intel(R) Pentium(R) 4 CPU 3.00GHz (GenuineIntel 686-class)
[r...@fw2 /usr/src]# sysctl hw.ncpu
hw.ncpu=2

thanks guy's !




please, anybody with this problem ? help-me theo ! ;)

  
you're not providing very much information about the steps you have 
already taken to troubleshoot this.


start with the simplest ruleset, and add rules under the same traffic 
load until you find the one(s) that make your box slow. see if you can 
consolidate redundant rules into simpler ones. use tables.


-t


--
Luiz Gustavo Costa (Powered by BSD)
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
mundoUnix - Consultoria em Software Livre
http://www.mundounix.com.br
ICQ: 2890831 / MSN: cont...@mundounix.com.br