Re: poll(2) vs kqueue(2) performance

2008-04-18 Thread Edwin Eyan Moragas
thank you, Theo. On Sat, Apr 19, 2008 at 1:50 PM, Theo de Raadt <[EMAIL PROTECTED]> wrote: > > been reading the select(2) man pages and it mentions poll(2) > > being more efficient in most cases. this makes it obvious to > > discard the use of select(2) in writing new servers. > > select requir

Re: timeouts on http connects outbound

2008-04-18 Thread Daniel Melameth
On Fri, Apr 18, 2008 at 7:39 PM, Moe Sizlak <[EMAIL PROTECTED]> wrote: > Recently I moved from freebsd 6 to openbsd 4.2 but have had some problems. > > I get a lot of timeouts on web pages with a high number of hops and I think > it may be something to do with either pf and/or sysctl. > >

Re: poll(2) vs kqueue(2) performance

2008-04-18 Thread Theo de Raadt
> been reading the select(2) man pages and it mentions poll(2) > being more efficient in most cases. this makes it obvious to > discard the use of select(2) in writing new servers. select requires that you set up a bit array correctly. but often people just use a fd_set, and cause a variety of st

poll(2) vs kqueue(2) performance

2008-04-18 Thread Edwin Eyan Moragas
Hi all, been reading the select(2) man pages and it mentions poll(2) being more efficient in most cases. this makes it obvious to discard the use of select(2) in writing new servers. i've come across some performance benchmarks which is trying to use kqueue(2). the question is, which one is more

Re: Is there a "badblocks"-equivalent for OpenBSD?

2008-04-18 Thread Travers Buda
* ropers <[EMAIL PROTECTED]> [2008-04-19 02:19:18]: > On 18/04/2008, Calomel <[EMAIL PROTECTED]> wrote: > > Ropers, > > > > You can find the badblocks utility prepackaged in "e2fsprogs". > > THANK YOU! :) I had wondered why I couldn't find badblocks among > OpenBSD's packages. This explains it.

timeouts on http connects outbound

2008-04-18 Thread Moe Sizlak
Hi all, Recently I moved from freebsd 6 to openbsd 4.2 but have had some problems. I get a lot of timeouts on web pages with a high number of hops and I think it may be something to do with either pf and/or sysctl. Any help in diagnosing these timeouts much appreciated. (box is soekris net550

Re: Environment variables

2008-04-18 Thread Ted Unangst
On Apr 18, 2008, at 1:47 PM, Paul Irofti <[EMAIL PROTECTED]> wrote: On Fri, Apr 18, 2008 at 03:20:56PM +0200, Jurjen Oskam wrote: #include #include #include int main(int argc, char **argv) { char *var1 = "FOO=TESTING"; A bit OT but you should really alloc that or use a static. Wh

Re: RAIDframe, troubles with root on raid with recent -current

2008-04-18 Thread Josh Grosse
On Fri, Apr 18, 2008 at 06:51:10PM -0400, Kenneth R Westerback wrote: > This is currently broken (deliberately) as changes are made to the > logic concerning mounting the root disk. There are some more changes > that need to be made before a fix to raidframe can be committed. Thanks, Ken!

Re: Is there a "badblocks"-equivalent for OpenBSD?

2008-04-18 Thread ropers
On 18/04/2008, Calomel <[EMAIL PROTECTED]> wrote: > Ropers, > > You can find the badblocks utility prepackaged in "e2fsprogs". THANK YOU! :) I had wondered why I couldn't find badblocks among OpenBSD's packages. This explains it. I will say in my defense ;-) that badblocks is not ext2-specific, s

Re: Is there a "badblocks"-equivalent for OpenBSD?

2008-04-18 Thread Steve Shockley
Jon Simola wrote: Not claiming to be an optimal solution (dd is faster), but does a read pass across the entire partition: $ sudo md5 /dev/rwd0c MD5 (/dev/rwd0c) = a85c2c67475f983a98007fd9a47378b7 I think part of what he wanted about badblocks is that it does a non-destructive write test as we

Re: More factoids about OpenBSD folks use in advocacy?

2008-04-18 Thread Rod Whitworth
On Fri, 18 Apr 2008 11:34:14 -0400, Protocol Six Consulting wrote: >Hi, > >I love using OpenBSD in the networks I administer. >It does what I need simply, elegantly and with great power (not to >mention for free) > >When I tell others about OpenBSD I can easily tell them what I like, but >I was al

Re: RAIDframe, troubles with root on raid with recent -current

2008-04-18 Thread Kenneth R Westerback
On Fri, Apr 18, 2008 at 06:10:48PM -0400, Josh Grosse wrote: > I've been using root on raid for some years, and am using a -current system > from March 22. > > I've been unable to boot recently built kernels unless I use boot -a and > select device raid0a manually. My older kernel works fine.

Re: Dell RAID controller

2008-04-18 Thread Mikael Kermorgant
> perc6e/i are sas controllers, you can plug either sata or sas > disks into them. They should work fine with 4.3. Hello, Is there any way to check raid status without having to reboot and get into the bios ? Regards, -- Mikael Kermorgant

Re: RAIDframe, troubles with root on raid with recent -current

2008-04-18 Thread Josh Grosse
On Fri, Apr 18, 2008 at 06:10:48PM -0400, I made a typo: ># mount /dev/raidoa /mnt D'oh! Typin' stuff by hand, rather than pasting directly.

RAIDframe, troubles with root on raid with recent -current

2008-04-18 Thread Josh Grosse
I've been using root on raid for some years, and am using a -current system from March 22. I've been unable to boot recently built kernels unless I use boot -a and select device raid0a manually. My older kernel works fine. With new kernels, booting -s I get: # mount root_device on / ty

Re: configure squid on openBSD

2008-04-18 Thread Parvinder Bhasin
Anil Saini wrote: how can i change the default squid configuration options of squid while installing it from BSD ports i make changes in Makefile...is it do the trick also how we do the same thing when we install it thru pkg_add command - Anil Saini M.E. - Software Systems B.E. - Electro

Re: Is there a "badblocks"-equivalent for OpenBSD?

2008-04-18 Thread Jon Simola
On 4/18/08, ropers <[EMAIL PROTECTED]> wrote: > Sometimes I find myself in need of a disk checking utility that can > check both disks with known *and unknown* filesystems, and/or that can > check even currently unpartitioned space on a disk. Not claiming to be an optimal solution (dd is faster)

Re: Is there a "badblocks"-equivalent for OpenBSD?

2008-04-18 Thread Calomel
Ropers, You can find the badblocks utility prepackaged in "e2fsprogs". Hope this helps, BadBlocks Hard Drive Validation and/or Destructive Wipe http://calomel.org/badblocks_wipe.html -- Calomel @ http://calomel.org Open Source Research and Reference On Fri, Apr 18, 2008 at 08:44:27P

Re: CARP LAN outgoing IP address

2008-04-18 Thread Gábri Máté
Ezzel a datummal: Friday 18 April 2008 21.29.18 ezt mrta: > On Fri, Apr 18, 2008 at 11:48 AM, Gabri Mati <[EMAIL PROTECTED]> wrote: > > This is normal, but is there a way to make the outgoing package to have > > the internal CARP device's address as source IP? > > What would this accomplish? If o

Re: Environment variables

2008-04-18 Thread Jurjen Oskam
On Fri, Apr 18, 2008 at 08:47:44PM +0300, Paul Irofti wrote: > > int main(int argc, char **argv) > > { > > char *var1 = "FOO=TESTING"; > > A bit OT but you should really alloc that or use a static. I'm almost a complete C non-programmer; I've copy-pasted this program from somewhere on the

Re: hoststated/relayd and Linux's tcp_tw_recycle option

2008-04-18 Thread Matthew Dempsky
On Fri, Apr 18, 2008 at 11:13 AM, Denis Doroshenko <[EMAIL PROTECTED]> wrote: > google quickly gives a url > > http://kbase.redhat.com/faq/FAQ_80_6180.shtm > > where it is said "It is likely an artifact of having > tcp_tw_recycle and tcp_tw_reuse enabled in the > sysctl settings." Okay? The p

CARP LAN outgoing IP address

2008-04-18 Thread Gábri Máté
Dear List, I have two firewalls with ngnix serving a few apache servers. I have to use CARP on the LAN side so i don't have to change the default gateway on the web servers when one of the firewalls goes down. My problem is, that in the apache logs i see the firewalls physical IP address not the C

Is there a "badblocks"-equivalent for OpenBSD?

2008-04-18 Thread ropers
Sometimes I find myself in need of a disk checking utility that can check both disks with known *and unknown* filesystems, and/or that can check even currently unpartitioned space on a disk. There exists such a program for Linux, called badblocks: http://www.linuxmanpages.com/man8/badblocks.8.php

Re: hoststated/relayd and Linux's tcp_tw_recycle option

2008-04-18 Thread Denis Doroshenko
google quickly gives a url http://kbase.redhat.com/faq/FAQ_80_6180.shtm where it is said "It is likely an artifact of having tcp_tw_recycle and tcp_tw_reuse enabled in the sysctl settings." On Fri, Apr 18, 2008 at 8:08 PM, Matthew Dempsky <[EMAIL PROTECTED]> wrote: > I setup hoststated earlier t

Re: Environment variables

2008-04-18 Thread Paul Irofti
On Fri, Apr 18, 2008 at 03:20:56PM +0200, Jurjen Oskam wrote: > Hi there, > > I'm seeing something I don't quite understand concerning environment > variables. (This is on an OpenBSD 4.2 amd64 system) I hope someone here > can explain. > > Given the following C-program: > > #include > #include

Re: More factoids about OpenBSD folks use in advocacy?

2008-04-18 Thread Matthew Dempsky
On Fri, Apr 18, 2008 at 8:34 AM, Protocol Six Consulting <[EMAIL PROTECTED]> wrote: > When I tell others about OpenBSD I can easily tell them what I like, but I > was also curious what sort of ("verifiable") factoids folks here highlight > when advocating for OpenBSD. You should just take some fr

Re: continuous message after 4.2 install (dmesg included)

2008-04-18 Thread [EMAIL PROTECTED]
included dmesgthanks for your time. [EMAIL PROTECTED] wrote: > > Hi all, > I just finished installing 4.2. after I reboot I get the following > message(s) continously: > > ichiico: exec: op 1, addr 0x28, cmdlen 1, len 1, flags 0x00: timeout, > status 0x0 > ichiico: exec: op 1, addr 0x28,

hoststated/relayd and Linux's tcp_tw_recycle option

2008-04-18 Thread Matthew Dempsky
I setup hoststated earlier this week to provide load balancing and fail over for a few Linux web servers. It went fairly smoothly, except that one of the Linux machines only passed the 'check http "/" code 200' test about 50% of the time. Just using 'check tcp' worked fine, and I saw the same res

Re: More factoids about OpenBSD folks use in advocacy?

2008-04-18 Thread Steve Shockley
Protocol Six Consulting wrote: When I tell others about OpenBSD I can easily tell them what I like, but I was also curious what sort of ("verifiable") factoids folks here highlight when advocating for OpenBSD. Personally, I'm a fan of OpenBSD because the dev team is uncompromising. Even thoug

Re: Environment variables

2008-04-18 Thread Jurjen Oskam
On Fri, Apr 18, 2008 at 04:21:08PM +0200, Almir Karic wrote: > On Fri, Apr 18, 2008 at 3:20 PM, Jurjen Oskam <[EMAIL PROTECTED]> wrote: > > So ps does show FOO, *and* it shows the value of FOO changing after > > ten seconds. > > > > what is so weird about it? you set your program an env var via

Re: SGI install -current: autoboot failed

2008-04-18 Thread Joel Sing
On Friday 18 April 2008, John N. Brahy wrote: > Hi, > > I seemed to be successful installing OpenBSD -current for SGI. When I > reboot the system after the install I get this error: > > Boot file not found on device: > pci(0)scsi(0)disk(1)rdisk(0)partition(8)/sash > Autoboot failed > Unable to cont

Re: hoststated not setting up rules in pf

2008-04-18 Thread Stuart Henderson
On 2008-04-18, The Anarcat <[EMAIL PROTECTED]> wrote: > > 3. pf never gets any rdr rule from hoststated: > # pfctl -s all | grep rdr > rdr-anchor "hoststated/*" all anchors aren't normally listed by pfctl, you would need to use "pfctl -a 'hoststated/*' -sn", but I have a feeling this may have b

More factoids about OpenBSD folks use in advocacy?

2008-04-18 Thread Protocol Six Consulting
Hi, I love using OpenBSD in the networks I administer. It does what I need simply, elegantly and with great power (not to mention for free) When I tell others about OpenBSD I can easily tell them what I like, but I was also curious what sort of ("verifiable") factoids folks here highlight wh

Re: Permission problems using NFS on OpenBSD 4.2

2008-04-18 Thread Christopher Linn
On Fri, Apr 18, 2008 at 09:16:58AM -0600, Gregorio Arvilla wrote: [...] > -Original Message- > From: Gregorio Arvilla > Sent: Friday, April 18, 2008 9:10 AM > To: 'Christopher Linn' > Subject: RE: Permission problems using NFS on OpenBSD 4.2 > > Cel, > > Thank you for your reply. > > Yo

Re: Permission problems using NFS on OpenBSD 4.2

2008-04-18 Thread Gregorio Arvilla
Cel, I think that I should have included the misc@openbsd.org account in my reply. Sorry for the mistake. Greg -Original Message- From: Gregorio Arvilla Sent: Friday, April 18, 2008 9:10 AM To: 'Christopher Linn' Subject: RE: Permission problems using NFS on OpenBSD 4.2 Cel, Thank yo

Crash with acpi enabled

2008-04-18 Thread Steve Shockley
I'm setting up an HP d530 desktop with 4.3-release. With acpi enabled, it crashes during boot (after install), with it disabled it seems to work okay. Below is the dmesg/trace/ps when it crashes, below that is a successful boot with acpi disabled. >> OpenBSD/i386 BOOT 3.01 boot> booting hd0a:

Re: Environment variables

2008-04-18 Thread Otto Moerbeek
On Fri, Apr 18, 2008 at 03:20:56PM +0200, Jurjen Oskam wrote: > Hi there, > > I'm seeing something I don't quite understand concerning environment > variables. (This is on an OpenBSD 4.2 amd64 system) I hope someone here > can explain. > > Given the following C-program: > > #include > #include

Re: Environment variables

2008-04-18 Thread Almir Karic
On Fri, Apr 18, 2008 at 3:20 PM, Jurjen Oskam <[EMAIL PROTECTED]> wrote: > So ps does show FOO, *and* it shows the value of FOO changing after > ten seconds. > what is so weird about it? you set your program an env var via env(1) for first ten seconds it has that env var, than the putenv(3) call

Environment variables

2008-04-18 Thread Jurjen Oskam
Hi there, I'm seeing something I don't quite understand concerning environment variables. (This is on an OpenBSD 4.2 amd64 system) I hope someone here can explain. Given the following C-program: #include #include #include int main(int argc, char **argv) { char *var1 = "FOO=TESTING"; i

Re: Dell RAID controller

2008-04-18 Thread Marco Peereboom
Should work with mpi. If not it is trivial to add the pci ids. On Thu, Apr 17, 2008 at 08:43:20AM -0300, John Nietzsche wrote: > Dear gentleman, > > i am setting a dell server to run openbsd 4.3. I am aware dell perc 6i > and 6e are supported, what about dell perc SAS 6e? > > Thank in advance.

Power button doesn't work properly

2008-04-18 Thread Zbigniew Baniewski
I would to have a possibility to make a proper shutdown just by pressing power button. So I've enabled apmd, and created a script /etc/apm/powerdown with the contents: #!/bin/sh /sbin/halt -p Unfortunately, the script doesn't seem to be called by apmd. When I press the power button, I'm getti

XForwarding + skype

2008-04-18 Thread Pau
Hi, as you have guessed from the subject, I am ssh -X to another pc in which there is skype installed. Most of the people I work with use this thing to send messages around to meet etc (instead of emailing or using talk, which must be too complicated for them), and I am the only obsd user. Since I