PDF Reader 2010: view, create, edit, print, share pdf documents

2010-03-27 Thread Newsletter
Your email client cannot read this email.
To view it online, please go here:
http://pro.mailmarketer.in/display.php?M=7875985C=16e98183402c86cead609378ba
0243d7S=1156L=911N=653

PDF READERB. 2010 - PRODUCT LAUNCH - FOR IMMEDIATE RELEASE


March 26th 2010

---

Dear customers,

We are pleased to update the following features of our PDF ReaderB. 2010:

Gather, prepare, and share information in *.pdf files using PDF ReaderB.
2010 software
Streamline document development and review
Simplify form creation and data transfer.
Combine multiple file types in polished *pdf portfolios that communicate
clearly and help make your work shine.
You would have various options which best fit your business requirements.
Following are steps which show you how to update your current version:

1. Go to  PDF Reader 2010 or copy and paste
http://pro.mailmarketer.in/link.php?M=7875985N=1156L=653F=T to your
browser
2. Download it and let PDF ReaderB. 2010 boost your business productivity.


Thanks and best regards,

PDF ReaderB. 2010

63 Clover Rd | Adams Center | NY 13606 | USA


To stop receiving these
emails:http://pro.mailmarketer.in/unsubscribe.php?M=7875985C=16e98183402c86c
ead609378ba0243d7L=911N=1156



routing question: 2 mail servers sending from their own IPs

2010-03-27 Thread Scott McEachern
Hi folks, I'm running into a bit of a routing gotcha getting two mail 
servers to send mail out using their own respective IP addresses.  
(While this involves postfix, this is not a postfix support question, 
it's a routing question)


What I'm trying to accomplish is this:
- two autonomous domains, each with their own mail server instance 
(postfix in this case) so that one domain never 'mentions' the other 
domain.  Using one instance of postfix to relay for the 2nd domain is 
not an option, as domain1.com will be shown in the headers when mail is 
from domain2.com.  The reason is that 2nd domain is a business entity 
and should not be associated in any way with the first.


The setup (which works fine):
- the two domains have their own external IPs, dns-wise.
- two instances of postfix listen on their respective external IPs 
taking mail for their domains (set in master.cf)
- postfix acts as a mail gateway on the firewall, which shuffles mail to 
either of two instances of postfix on an internal mail server
- 5 (non-contiguous) IPs are assigned to me by ADSL, so I have one 
physical connection, with 1 'main' IP and 4 aliases.


That works fine and dandy: two independent domains.  I should mention 
that (some) internal traffic, depending on its origin, is NAT'd out with 
pf on those aliases, appearing to come from independent networks.


The problem:
- mail sent out via either instance of postfix, regardless of the 
master.cf setting, go out on the 'main' IP, such that mail headers 
appear like such:


Received: from mail.domain2.com (erratic.ca [75.119.251.119])

The goal:
I'd prefer it to read .. from mail.domain2.com (domain2.com [a.b.c.d])

The untouched firewall routing table looks like this:

Internet:
DestinationGatewayFlags   Refs  Use   Mtu  Prio 
Iface
default206.248.154.122UGS322803 56410450 - 8 
tun0

127/8  127.0.0.1  UGRS   00 33200 8 lo0
(snipping a bunch of lo0 stuff)
192.168.0/24   link#1 UC 10 - 4 nfe0
192.168.0.200:0d:60:91:5d:a4  UHLc   143271 - 4 nfe0
192.168.1/24   link#5 UC 20 - 4 sk0
192.168.1.200:19:5b:68:91:20  UHLc   1 7177 - 4 sk0
192.168.1.300:10:c6:b5:c1:72  UHLc   4   136762 - 4 sk0
192.168.2/24   link#5 UC 10 - 4 sk0
192.168.2.1127.0.0.1  UGHS   00 33200 8 lo0
192.168.3/24   link#5 UC 00 - 4 sk0
192.168.3.1127.0.0.1  UGHS   00 33200 8 lo0
206.248.154.12275.119.251.119 UH 10  1492 4 tun0
224/4  127.0.0.1  URS00 33200 8 lo0

I've tried this:
# route add 206.248.154.122 a.b.c.d

but my routing-fu is not strong.  That command gives all of the above, 
plus this:


206.248.154.122a.b.c.dUGHS   00 - 8 tun0

Of course, sending mails from domain2.com still appears from erratic.ca.

Any suggestions?  Clear as mud?  The firewall does not have an 
/etc/mygate set, and is OpenBSD 4.6-current (GENERIC) #7: Sat Jan 23 
16:34:02 EST 2010, but I don't think a dmesg is of much use here.


Unrelated question: can smtpd handle this kind of funkiness?  I'd like 
to switch to smtpd eventually if it can, but that's another project for 
another day.


Thanks!

--
- RSM
www.erratic.ca



Re: routing question: 2 mail servers sending from their own IPs

2010-03-27 Thread Philip Guenther
On Sat, Mar 27, 2010 at 1:02 AM, Scott McEachern sc...@erratic.ca wrote:
 Hi folks, I'm running into a bit of a routing gotcha getting two mail
 servers to send mail out using their own respective IP addresses.  (While
 this involves postfix, this is not a postfix support question, it's a
 routing question)

I don't see anything about routing in your question.  What I see is an
issue involving the binding of the client-side of TCP connections.

...
 The setup (which works fine):
 - the two domains have their own external IPs, dns-wise.
 - two instances of postfix listen on their respective external IPs taking
 mail for their domains (set in master.cf)
 - postfix acts as a mail gateway on the firewall, which shuffles mail to
 either of two instances of postfix on an internal mail server
 - 5 (non-contiguous) IPs are assigned to me by ADSL, so I have one physical
 connection, with 1 'main' IP and 4 aliases.
...
 The problem:
 - mail sent out via either instance of postfix, regardless of the master.cf
 setting, go out on the 'main' IP, such that mail headers appear like such:

 Received: from mail.domain2.com (erratic.ca [75.119.251.119])

 The goal:
 I'd prefer it to read .. from mail.domain2.com (domain2.com [a.b.c.d])

You need to configure the postfix for domain2.com to explicitly bind()
to the IP address of a.b.c.d and not use the default for the host.

(You might think but I've configured this postfix instance to only
listen on IP A.B.C.D, why isn't it sending from that IP?.  The answer
is because, in general, such a restriction is *not* correct behavior
for MTAs, and therefore is not the default for postfix.)


Philip Guenther



Re: routing question: 2 mail servers sending from their own IPs

2010-03-27 Thread James Shupe
Check into smtp_bind_address in Postfix. If you're still having issues,
binat rather than rdr to internal IPs so connections will originate
properly. Without seeing your pf.conf or master.cf, this is a guess, but
I think these tips should lead you in the right direction.

...master.cf:
smtp ... smtp -o smtp_bind_address=11.22.33.44


On 3/27/10 3:02 AM, Scott McEachern wrote:
 Hi folks, I'm running into a bit of a routing gotcha getting two mail
 servers to send mail out using their own respective IP addresses.
 (While this involves postfix, this is not a postfix support question,
 it's a routing question)

 What I'm trying to accomplish is this:
 - two autonomous domains, each with their own mail server instance
 (postfix in this case) so that one domain never 'mentions' the other
 domain.  Using one instance of postfix to relay for the 2nd domain is
 not an option, as domain1.com will be shown in the headers when mail is
 from domain2.com.  The reason is that 2nd domain is a business entity
 and should not be associated in any way with the first.

 The setup (which works fine):
 - the two domains have their own external IPs, dns-wise.
 - two instances of postfix listen on their respective external IPs
 taking mail for their domains (set in master.cf)
 - postfix acts as a mail gateway on the firewall, which shuffles mail to
 either of two instances of postfix on an internal mail server
 - 5 (non-contiguous) IPs are assigned to me by ADSL, so I have one
 physical connection, with 1 'main' IP and 4 aliases.

 That works fine and dandy: two independent domains.  I should mention
 that (some) internal traffic, depending on its origin, is NAT'd out with
 pf on those aliases, appearing to come from independent networks.

 The problem:
 - mail sent out via either instance of postfix, regardless of the
 master.cf setting, go out on the 'main' IP, such that mail headers
 appear like such:

 Received: from mail.domain2.com (erratic.ca [75.119.251.119])

 The goal:
 I'd prefer it to read .. from mail.domain2.com (domain2.com [a.b.c.d])

 The untouched firewall routing table looks like this:

 Internet:
 DestinationGatewayFlags   Refs  Use   Mtu  Prio
 Iface
 default206.248.154.122UGS322803 56410450 - 8
 tun0
 127/8  127.0.0.1  UGRS   00 33200 8 lo0
 (snipping a bunch of lo0 stuff)
 192.168.0/24   link#1 UC 10 - 4
 nfe0
 192.168.0.200:0d:60:91:5d:a4  UHLc   143271 - 4
 nfe0
 192.168.1/24   link#5 UC 20 - 4 sk0
 192.168.1.200:19:5b:68:91:20  UHLc   1 7177 - 4 sk0
 192.168.1.300:10:c6:b5:c1:72  UHLc   4   136762 - 4 sk0
 192.168.2/24   link#5 UC 10 - 4 sk0
 192.168.2.1127.0.0.1  UGHS   00 33200 8 lo0
 192.168.3/24   link#5 UC 00 - 4 sk0
 192.168.3.1127.0.0.1  UGHS   00 33200 8 lo0
 206.248.154.12275.119.251.119 UH 10  1492 4
 tun0
 224/4  127.0.0.1  URS00 33200 8 lo0

 I've tried this:
 # route add 206.248.154.122 a.b.c.d

 but my routing-fu is not strong.  That command gives all of the above,
 plus this:

 206.248.154.122a.b.c.dUGHS   00 - 8 tun0

 Of course, sending mails from domain2.com still appears from erratic.ca.

 Any suggestions?  Clear as mud?  The firewall does not have an
 /etc/mygate set, and is OpenBSD 4.6-current (GENERIC) #7: Sat Jan 23
 16:34:02 EST 2010, but I don't think a dmesg is of much use here.

 Unrelated question: can smtpd handle this kind of funkiness?  I'd like
 to switch to smtpd eventually if it can, but that's another project for
 another day.

 Thanks!



--
James M. Shupe
shu...@gridexec.com
RHCE Certified
Plain text preferred
1.903.522.3425

This Email is covered by the Electronic Communications Privacy Act,
18 U.S.C. 2510-2521 and is legally privileged. The information
contained in this Email is intended only for use of the individual
or entity named above. If the reader of this message is not the intended
recipient, or the employee or agent responsible to deliver it to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please immediately
notify us by telephone 1.903.522.3425 and destroy the original message.

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



unidentified system load

2010-03-27 Thread Tony Sarendal
I'm using supermicro boxes (dmesg below) as vpn routers. IPsec+gre+bgp.

After a few days uptime the boxes start reporting 8% system cpu, and at the
same time
they become unresponsive on the network approx every 10 seconds.
Any idea on how to find the reason for this is appreciated.
I have around 20 of these boxes running open and freebsd, so far all of the
openbsd boxes
display this behaviour using amd64, i386, sp and mp, 4.6 and various 4.7
snapshots.

I only see this on these specific supermicros. This happens on the devices
that don't
move any traffic as well.

Regards Tony

bmr0.mlt# ping -i 0.1 172.30.251.230
64 bytes from 172.30.251.230: icmp_seq=42 ttl=255 time=0.278 ms
64 bytes from 172.30.251.230: icmp_seq=43 ttl=255 time=0.328 ms
64 bytes from 172.30.251.230: icmp_seq=44 ttl=255 time=0.250 ms
64 bytes from 172.30.251.230: icmp_seq=45 ttl=255 time=402.911 ms
64 bytes from 172.30.251.230: icmp_seq=46 ttl=255 time=292.374 ms
64 bytes from 172.30.251.230: icmp_seq=47 ttl=255 time=181.836 ms
64 bytes from 172.30.251.230: icmp_seq=48 ttl=255 time=71.300 ms
64 bytes from 172.30.251.230: icmp_seq=49 ttl=255 time=0.255 ms
64 bytes from 172.30.251.230: icmp_seq=50 ttl=255 time=0.305 ms

bmr1.mlt# dmesg
OpenBSD 4.7-beta (GENERIC.MP) #427: Sun Feb 28 12:37:40 MST 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (GenuineIntel 686-class)
3.01 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR
real mem  = 3487580160 (3326MB)
avail mem = 3391463424 (3234MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/24/09, BIOS32 rev. 0 @ 0xfdb70,
SMBIOS rev. 2.5 @ 0xcfedf000 (39 entries)
bios0: vendor Phoenix Technologies LTD version 1.30 date 07/24/2009
bios0: Supermicro X7SBi
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP _MAR MCFG APIC BOOT SPCR ERST HEST BERT EINJ SLIC
SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices PXHA(S5) PEX_(S5) LAN_(S5) USB4(S5) USB5(S5) USB7(S5)
ESB2(S5) EXP1(S5) EXP5(S5) EXP6(S5) USB1(S5) USB2(S5) USB3(S5) USB6(S5)
ESB1(S5) PCIB(S5) KBC0(S1) MSE0(S1) COM1(S5) COM2(S5) PWRB(S3)
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 333MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (GenuineIntel 686-class)
3.01 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic1 at mainbus0: apid 3 pa 0xfecc, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PXHA)
acpiprt2 at acpi0: bus -1 (PEX_)
acpiprt3 at acpi0: bus 5 (EXP1)
acpiprt4 at acpi0: bus 13 (EXP5)
acpiprt5 at acpi0: bus 15 (EXP6)
acpiprt6 at acpi0: bus 17 (PCIB)
acpicpu0 at acpi0: C3, PSS
acpicpu1 at acpi0: C3, PSS
acpibtn0 at acpi0: PWRB
acpivideo0 at acpi0: IGD0
bios0: ROM list: 0xc/0x9000
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 3001 MHz: speeds: 3000, 2667, 2333, 2000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 3200/3210 Host rev 0x01
ppb0 at pci0 dev 1 function 0 Intel 3200/3210 PCIE rev 0x01: apic 2 int 16
(irq 5)
pci1 at ppb0 bus 1
ppb1 at pci1 dev 0 function 0 Intel PCIE-PCIE rev 0x09
pci2 at ppb1 bus 2
Intel IOxAPIC rev 0x09 at pci1 dev 0 function 1 not configured
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x02: apic 2 int 16
(irq 5)
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x02: apic 2 int 17
(irq 10)
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x02: apic 2 int 18
(irq 11)
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x02: apic 2 int 18
(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 28 function 0 Intel 82801I PCIE rev 0x02: apic 2 int 16
(irq 5)
pci3 at ppb2 bus 5
ppb3 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x02: apic 2 int 16
(irq 5)
pci4 at ppb3 bus 13
em0 at pci4 dev 0 function 0 Intel PRO/1000MT (82573E) rev 0x03: apic 2
int 16 (irq 5)PHY ID 0x1410CC0 detected (17)
, address 00:30:48:bd:45:3a
ppb4 at pci0 dev 28 function 5 Intel 82801I PCIE rev 0x02: apic 2 int 17
(irq 10)
pci5 at ppb4 bus 15
em1 at pci5 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 2
int 17 (irq 10)PHY ID 0x1410CC0 detected (17)
, address 00:30:48:bd:45:3b
uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x02: apic 2 int 23
(irq 10)
uhci4 at pci0 dev 29 function 1 Intel 82801I USB rev 0x02: apic 2 int 22
(irq 11)
uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x02: apic 2 int 18
(irq 11)
ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x02: apic 2 int 23
(irq 10)

Re: heads up - softraid metadata change

2010-03-27 Thread Mitja Muženič
Don't thank me, I had nothing to do with it - just reporting the good news :)

All the thanks and kudos go to Joel, Marco and everybody who's ever worked on
softraid(4).

Mitja
 -Original Message-
 From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of
J.C.
 Roberts
 Sent: Friday, March 26, 2010 8:11 PM
 To: Mitja MuEeniD

 Cc: misc@openbsd.org
 Subject: Re: heads up - softraid metadata change

 On Fri, 26 Mar 2010 18:31:59 +0100 Mitja MuEeniD
  mi...@muzenic.net
 wrote:

  Joel Sing (jsing@) has just commited to -current a softraid update
  that bumps the softraid metadata version - see the commit mail and
  the brief article on Undeadly. The new kernel will not assemble the
  existing softraid volumes, so special caution is required BEFORE
  upgrading your -current kernel or moving to next snapshot.
 
  http://www.openbsd.org/faq/current.html#20100326
 
  http://marc.info/?l=openbsd-cvsm=126960262412653w=2
 
  http://www.undeadly.org/cgi?action=articlesid=20100326172808
 
 
  Mitja (looking forward to more softraid goodies! :)
 


 Excellent! --It seems we're moving closer to bootable softraid.

 Thanks Mitja, Joel, and Marco.

 jcr



Re: aucat: default: can't open device

2010-03-27 Thread J.C. Roberts
On Sat, 27 Mar 2010 05:05:49 + Jacob Meuser
jake...@sdf.lonestar.org wrote:

 On Fri, Mar 26, 2010 at 06:03:47PM -0700, J.C. Roberts wrote:
 
  One of the (supposedly) working ISA devices I have here is an old
  Creative SoundBlaster card, but I can't seem to get it working.
 
  # AUCAT_DEBUG=4 SIO_DEBUG=4 aucat -l   
 
 man sb.  look for duplex.
 

The sb(4) man pages mentions a (potentially optional) configuration
file but gives no further details about it? --I think this needs to
get documented.


 does `aucat -l -m play` work?
 

no joy.

# aucat -l -m play
aucat: default: can't open device

BIOS PNP detects and configures the card properly (no jumpers).

The label on the card reads:
FCC ID: IBACT-SB32PNP49
Model#: CT3620

The output of audioctl shows:
config=SB_16

Should the above show up as SB_32 ?


For fun, I grabbed second, slightly different (older), Creative
SoundBlaster ISA card and gave it a try. The results were the same. The
card comes up properly (IRQ  DRQ) but aucat and midicat have issues.

The label on the second card reads:
FCC ID: IBACT-SB16MCD
Model#: CT750

If you need me to test them, I've also got a SB-AWE64, SB-ViBRA, ESS,
and a few other ISA based audio cards around.

It's not like I actually *use* these cards at all (for anything but
testing), and I wonder how many (if any) people are still using ISA
audio cards?

jcr


# AUCAT_DEBUG=4 SIO_DEBUG=4 aucat -l -m play
sio_open_aucat: trying 0 - 0.default
sio_open_aucat: connect: No such file or directory
sun_setpar: 0: trying pars = 48000/16/6
sun_setpar: couldn't set linear encoding
aucat: default: can't open device


# audioctl
name=SoundBlaster
version=4.12
config=SB_16
encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8,slinear_le:16,ulinear_le:16,slinear_be:16*,ulinear_be:16*
properties=mmap,independent
full_duplex=0
fullduplex=0
blocksize=200
hiwat=163
lowat=1
output_muted=0
monitor_gain=0
mode=
play.rate=8000
play.sample_rate=8000
play.channels=1
play.precision=8
play.encoding=mulaw
play.gain=128
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=32768
play.block_size=200
play.errors=0
record.rate=8000
record.sample_rate=8000
record.channels=1
record.precision=8
record.encoding=mulaw
record.gain=0
record.balance=32
record.port=0x1
record.avail_ports=0x7
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=400
record.errors=0


# mixerctl -v
outputs.master=128,128 volume
inputs.fmsynth=128,128 volume
inputs.fmsynth.mute=off  [ off on ]
inputs.fmsynth.swap=off  [ off on ]
inputs.cd=128,128 volume
inputs.cd.mute=off  [ off on ]
inputs.cd.swap=off  [ off on ]
outputs.cd.mute=off  [ off on ]
inputs.dac=128,128 volume
inputs.mic=0 volume
inputs.mic.mute=off  [ off on ]
inputs.mic.swap=off  [ off on ]
outputs.mic.mute=off  [ off on ]
inputs.line=0,0 volume
inputs.line.mute=off  [ off on ]
inputs.line.swap=off  [ off on ]
outputs.line.mute=off  [ off on ]
record.source=mic  { mic cd line fmsynth }
equalization.treble=128,128 treble
equalization.bass=128,128 bass
inputs.pc_speaker=128 volume
inputs.input=128,128 volume
outputs.output=128,128 volume
inputs.agc=off  [ off on ]


dmesg
OpenBSD 4.7-current (GENERIC) #561: Wed Mar 24 20:41:50 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium (P54C) (GenuineIntel 586-class) 133 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8
real mem  = 133791744 (127MB)
avail mem = 120848384 (115MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/08/96, BIOS32 rev. 0 @ 0xfbcf0
pcibios0 at bios0: rev 2.1 @ 0xf/0x638
pcibios0: PCI BIOS has 4 Interrupt Routing table entries
pcibios0: PCI Interrupt Router at 000:07:0 (Intel 82371FB ISA rev
0x00) pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x2800
cpu0 at mainbus0: (uniprocessor)
cpu0: F00F bug workaround installed
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82437FX rev 0x02
pcib0 at pci0 dev 7 function 0 Intel 82371FB ISA rev 0x02
pciide0 at pci0 dev 7 function 1 Intel 82371FB IDE rev 0x02: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives) pciide0: channel 1 disabled (no
drives) vga1 at pci0 dev 10 function 0 S3 86C968-0 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ahc0 at pci0 dev 11 function 0 Adaptec 

Re: aucat: default: can't open device

2010-03-27 Thread Jason McIntyre
On Sat, Mar 27, 2010 at 02:24:58AM -0700, J.C. Roberts wrote:
 On Sat, 27 Mar 2010 05:05:49 + Jacob Meuser
 jake...@sdf.lonestar.org wrote:
 
  On Fri, Mar 26, 2010 at 06:03:47PM -0700, J.C. Roberts wrote:
  
   One of the (supposedly) working ISA devices I have here is an old
   Creative SoundBlaster card, but I can't seem to get it working.
  
   # AUCAT_DEBUG=4 SIO_DEBUG=4 aucat -l   
  
  man sb.  look for duplex.
  
 
 The sb(4) man pages mentions a (potentially optional) configuration
 file but gives no further details about it? --I think this needs to
 get documented.
 

it refers to the kernel configuration file, i'd imagine. SYNOPSIS shows
the bits you can tweak.

jmc



Re: customize CFLAG with /etc/mk.conf

2010-03-27 Thread Christian Weisgerber
Aaron Lewis aaron.lewis1...@gmail.com wrote:

 I read `man mk.conf' found there's no CFLAGS or CXXFLAG entries , 
 even though i tried to
 put `CFLAG += -O3 -march=i686' into that file , but ports doesn't 
 recognize it.

No such variable is used by the ports infrastructure.  Note the
name, CFLAG is not the same as CFLAGS.

 Just want to optimize ports software , during compilation of kernel 
 , i'd comment them out.

Yes, you can set CFLAGS and CXXFLAGS in /etc/mk.conf or the environment
and most ports will pick it up.  (Some don't for sound technical
reasons, a few don't and it's an error that needs to be fixed.)

Generally speaking, I advise against playing with gcc's optimization
flags.  You will not see an improvement, and some of these optimization
steps may actually generate incorrect code.  The time you spend
fiddling with these settings will be more than you can ever gain
from them.

I do occasionally set CFLAGS to build a port *without* optimization
when I need to debug a problem with gdb(1).  Single-stepping through
code that has been run through -O2 can be a surreal experience.

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



Re: unidentified system load

2010-03-27 Thread Aaron Mason
On Sat, Mar 27, 2010 at 7:56 PM, Tony Sarendal t...@polarcap.org wrote:
 I'm using supermicro boxes (dmesg below) as vpn routers. IPsec+gre+bgp.

 After a few days uptime the boxes start reporting 8% system cpu, and at the
 same time
 they become unresponsive on the network approx every 10 seconds.
 Any idea on how to find the reason for this is appreciated.
 I have around 20 of these boxes running open and freebsd, so far all of the
 openbsd boxes
 display this behaviour using amd64, i386, sp and mp, 4.6 and various 4.7
 snapshots.

 I only see this on these specific supermicros. This happens on the devices
 that don't
 move any traffic as well.

 Regards Tony

 bmr0.mlt# ping -i 0.1 172.30.251.230
 64 bytes from 172.30.251.230: icmp_seq=42 ttl=255 time=0.278 ms
 64 bytes from 172.30.251.230: icmp_seq=43 ttl=255 time=0.328 ms
 64 bytes from 172.30.251.230: icmp_seq=44 ttl=255 time=0.250 ms
 64 bytes from 172.30.251.230: icmp_seq=45 ttl=255 time=402.911 ms
 64 bytes from 172.30.251.230: icmp_seq=46 ttl=255 time=292.374 ms
 64 bytes from 172.30.251.230: icmp_seq=47 ttl=255 time=181.836 ms
 64 bytes from 172.30.251.230: icmp_seq=48 ttl=255 time=71.300 ms
 64 bytes from 172.30.251.230: icmp_seq=49 ttl=255 time=0.255 ms
 64 bytes from 172.30.251.230: icmp_seq=50 ttl=255 time=0.305 ms

 bmr1.mlt# dmesg
 [snip]

I'd be looking at the state of your mbufs as well.  man netstat

-- 
Aaron Mason - Programmer, open source addict
I've taken my software vows - for beta or for worse



Re: unidentified system load

2010-03-27 Thread Tony Sarendal
 I'd be looking at the state of your mbufs as well.  man netstat


Thanks Aaron,

these systems are currently running with load very low. From one of the
boxes with
the problem:

bmr1.mlt# uptime
11:33AM  up 13 days,  1:04, 1 user, load averages: 0.15, 0.17, 0.11
bmr1.mlt# netstat -m
102 mbufs in use:
81 mbufs allocated to data
4 mbufs allocated to packet headers
17 mbufs allocated to socket names and addresses
69/310/6144 mbuf 2048 byte clusters in use (current/peak/max)
0/8/6144 mbuf 4096 byte clusters in use (current/peak/max)
0/8/6144 mbuf 8192 byte clusters in use (current/peak/max)
0/8/6144 mbuf 9216 byte clusters in use (current/peak/max)
0/8/6144 mbuf 12288 byte clusters in use (current/peak/max)
0/8/6144 mbuf 16384 byte clusters in use (current/peak/max)
0/8/6144 mbuf 65536 byte clusters in use (current/peak/max)
900 Kbytes allocated to network (18% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines
bmr1.mlt#
bmr1.mlt# vmstat -m
...
Memory Totals:  In UseFreeRequests
 3756K210K 3844873
...
In use 6468K, total allocated 32928K; utilization 19.6%
bmr1.mlt#

They are basically standard setups with ipsec,bgpd,gre,carp and vlans,
small and simple configs, low number of interfaces. Not even any packages
added.



Re: routing question: 2 mail servers sending from their own IPs

2010-03-27 Thread Scott McEachern

James Shupe wrote:

Check into smtp_bind_address in Postfix. If you're still having issues,
binat rather than rdr to internal IPs so connections will originate
properly. Without seeing your pf.conf or master.cf, this is a guess, but
I think these tips should lead you in the right direction.

...master.cf:
smtp ... smtp -o smtp_bind_address=11.22.33.44


  


Thank-you James and Philip, problem solved!  Between using 
inet_interfaces in main.cf and a.b.c.d:smtp... in master.cf, I figured 
it was covered, but I was wrong.  The smtp_bind_address works like a 
charm, which I didn't see when searching for multiple instances of postfix.


I did find it rather odd that I'd have to use routing.  I thought it was 
like using a sledgehammer to solve a thumbtack problem, when it was just 
a leaky screwdriver.


--
- RSM
www.erratic.ca



Re: customize CFLAG with /etc/mk.conf

2010-03-27 Thread Ivan Nudzik
Aaron,
I built 3.7 base + OpenVPN for VPN gateway with custom
CFLAGS/LDFLAGS and it worked well for years, even with such aggressive
flags as CFLAGS=-O3 -march=c3 -mmmx -m3dnow -fomit-frame-pointer and
LDFLAGS=-Wl,-z,combreloc -Wl,-O2 -Wl,--sort-common
-Wl,--enable-new-dtags. But build was broken and I must to fix many
things in OpenBSD makefiles, to get binaries done. Such LDFLAGS
significantly speedups application loading, cause it's doing the same
things as prelink utility, but it link time. CFLAGS helps me speedup C3
500MHz router device as about 20-30%, but it was synthetic measurement
on nbench built with and without CLFAGS. Kernel build was also forced
for such CFLAGS and no stability issue and subjectively more speedy.
It was few years ago, when I've had mood to compile everything with
all CPU features on. ;-) Looking at this concrete OpenBSD build my
summary is that it took me more than 20h to build it and speedups was
not such significant, comparing that it should took an about 1h to do
the same functionality with release binaries only bit slow. And two
other things to keep on mind: nowadays x86 CPUs has very heuristic
instruction handling/prefetching so it will not speedup as much with
custom CFLAGS; OpenBSD still use gcc 3.3.5 which can't do as good
optimization for new CPUs as to loose time with custom flags build. And
many makefiles in OpenBSD base don't handle CFLAGS/LDFLAGS correctly.
The last time I tried it (about 1/2y. ago), I made only kernel with
custom flags (for kernel it is COPTS variable if I remember right). Rest
of system didn't build and I didn't had a time to bother with broken
makefiles.
So if you don't want to do HPC, don't loose time with custom flags.
I if you want to do HPC, choose other operating system, cause OpenBSD
strengths are other.

I.

On Sat, 2010-03-27 at 10:05 +0800, Aaron Lewis wrote:

 Hi,
 Is that possible to modify CFLAG for port installed software ?
 
 I read `man mk.conf' found there's no CFLAGS or CXXFLAG entries , 
 even though i tried to
 put `CFLAG += -O3 -march=i686' into that file , but ports doesn't 
 recognize it.
 
 Just want to optimize ports software , during compilation of kernel 
 , i'd comment them out.
 
 Does anyone has any ideas ?
 
 Thanks in advance !



Re: Anomali on /var available space

2010-03-27 Thread Kabayan
Hi Vadim,

Thx for your reply

Problem solve after I restart pflogd
New problem is Why the pflogd process almost use 100% capacity of my /var ?

My pf manage queue bandwidth for just 100 users.

Thx

Kabayan



--- On Fri, 3/26/10, Vadim Zhukov persg...@gmail.com wrote:

From: Vadim Zhukov persg...@gmail.com
Subject: Re: Anomali on /var available space
To: misc@openbsd.org
Date: Friday, March 26, 2010, 1:33 AM

On 26 March 2010 c. 10:17:30 Kabayan wrote:
 Dear misc,

 I got anomaly available  space of my system.
 I have different output between df and du

 $ df -h /var/
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/wd0d 29.5G   29.5G   -1.5G   105%/var

 $ df -kP /var
 Filesystem  1024-blocks   Used   Available Capacity Mounted on
 /dev/wd0d  30964722   30964034-1547548   105%   /var

 $ sudo du -sh /var
 30.3M   /var

 On message:
 Mar 26 08:07:01 GreenBridgeVPN /bsd: uid 0 on /var: file system full
 Mar 26 08:07:01 GreenBridgeVPN pflogd[10433]: Logging suspended:
 fwrite: No space left on device
 Mar 26 08:08:01 GreenBridgeVPN /bsd: uid 0 on /var: file system full
 Mar 26 08:08:01 GreenBridgeVPN pflogd[10433]: Logging suspended:
 fwrite: No space left on device
 Mar 26 08:09:02 GreenBridgeVPN /bsd: uid 0 on /var: file system full

 I used:
 OpenBSD 4.7 (GENERIC.MP) #4: Mon Mar 15 02:57:08 WIT 2010

Some program(s) removed but not closed its files. Dive in in the fstat
output.

--
  Best wishes,
Vadim Zhukov

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: Anomali on /var available space

2010-03-27 Thread Vadim Zhukov
On 27 March 2010 G. 13:51:26 Kabayan wrote:
 Hi Vadim,

 Thx for your reply

 Problem solve after I restart pflogd
 New problem is Why the pflogd process almost use 100% capacity of my
 /var ?

 My pf manage queue bandwidth for just 100 users.

Probably it doesn't receive SIGHUP upon log rotation? How do you
rotate /var/log/pflog?

 --- On Fri, 3/26/10, Vadim Zhukov persg...@gmail.com wrote:

 From: Vadim Zhukov persg...@gmail.com
 Subject: Re: Anomali on /var available space
 To: misc@openbsd.org
 Date: Friday, March 26, 2010, 1:33 AM

 On 26 March 2010 c. 10:17:30 Kabayan wrote:
  Dear misc,
 
  I got anomaly available space of my system.
  I have different output between df and du
 
  $ df -h /var/
  Filesystem Size  UsedAvail Capacity Mounted on
  /dev/wd0d 29.5G29.5G-1.5G105%  /var
 
  $ df -kP /var
  Filesystem 1024-blocks  UsedAvailable Capacity Mounted on
  /dev/wd0d   3096472230964034  -1547548105%/var
 
  $ sudo du -sh /var
  30.3M/var
 
  On message:
  Mar 26 08:07:01 GreenBridgeVPN /bsd: uid 0 on /var: file system full
  Mar 26 08:07:01 GreenBridgeVPN pflogd[10433]: Logging suspended:
  fwrite: No space left on device
  Mar 26 08:08:01 GreenBridgeVPN /bsd: uid 0 on /var: file system full
  Mar 26 08:08:01 GreenBridgeVPN pflogd[10433]: Logging suspended:
  fwrite: No space left on device
  Mar 26 08:09:02 GreenBridgeVPN /bsd: uid 0 on /var: file system full
 
  I used:
  OpenBSD 4.7 (GENERIC.MP) #4: Mon Mar 15 02:57:08 WIT 2010

 Some program(s) removed but not closed its files. Dive in in the fstat
 output.


--
  Best wishes,
Vadim Zhukov

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: Anomali on /var available space

2010-03-27 Thread Otto Moerbeek
On Sat, Mar 27, 2010 at 06:51:26PM +0800, Kabayan wrote:

 Hi Vadim,
 
 Thx for your reply
 
 Problem solve after I restart pflogd
 New problem is Why the pflogd process almost use 100% capacity of my /var ?

You wrote pf.conf, so you are telling pflogd what's needs to be
logged. You cannot blame pflogd for that. 

-Otto
 
 My pf manage queue bandwidth for just 100 users.
 
 Thx
 
 Kabayan
 
 
 
 --- On Fri, 3/26/10, Vadim Zhukov persg...@gmail.com wrote:
 
 From: Vadim Zhukov persg...@gmail.com
 Subject: Re: Anomali on /var available space
 To: misc@openbsd.org
 Date: Friday, March 26, 2010, 1:33 AM
 
 On 26 March 2010 c. 10:17:30 Kabayan wrote:
  Dear misc,
 
  I got anomaly available  space of my system.
  I have different output between df and du
 
  $ df -h /var/
  Filesystem SizeUsed   Avail Capacity  Mounted on
  /dev/wd0d 29.5G   29.5G   -1.5G   105%/var
 
  $ df -kP /var
  Filesystem  1024-blocks   Used   Available Capacity Mounted on
  /dev/wd0d  30964722   30964034-1547548   105%   /var
 
  $ sudo du -sh /var
  30.3M   /var
 
  On message:
  Mar 26 08:07:01 GreenBridgeVPN /bsd: uid 0 on /var: file system full
  Mar 26 08:07:01 GreenBridgeVPN pflogd[10433]: Logging suspended:
  fwrite: No space left on device
  Mar 26 08:08:01 GreenBridgeVPN /bsd: uid 0 on /var: file system full
  Mar 26 08:08:01 GreenBridgeVPN pflogd[10433]: Logging suspended:
  fwrite: No space left on device
  Mar 26 08:09:02 GreenBridgeVPN /bsd: uid 0 on /var: file system full
 
  I used:
  OpenBSD 4.7 (GENERIC.MP) #4: Mon Mar 15 02:57:08 WIT 2010
 
 Some program(s) removed but not closed its files. Dive in in the fstat
 output.
 
 --
   Best wishes,
 Vadim Zhukov
 
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?
 A: Top-posting.
 Q: What is the most annoying thing in e-mail?



Re: Anomali on /var available space

2010-03-27 Thread Peter N. M. Hansteen
Kabayan kab4...@yahoo.com writes:

 Problem solve after I restart pflogd
 New problem is Why the pflogd process almost use 100% capacity of my /var ?

My guess would be that your pf.conf logs traffic with log (all) on at
least one rule that matches a lot of traffic, and possibly your
newsyslog.conf does not implement a very aggressive log rotation
schedule.

Logging all packets is not all that useful unless you're deep in
debugging something.  If you want to do traffic accounting, it's
easier to either use labels and extract the values at intervals, or
set up with pflow (set state-defaults pflow) and collect the netflow
data somewhere with enough disk space to slice and dice the data
separately.

- Peter
-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: aucat: default: can't open device

2010-03-27 Thread Jacob Meuser
On Sat, Mar 27, 2010 at 02:24:58AM -0700, J.C. Roberts wrote:

 sun_setpar: 0: trying pars = 48000/16/6
 sun_setpar: couldn't set linear encoding
 aucat: default: can't open device

blargh.  sb(4) can't handle 48kHz rates, and this old driver is
stupid.  we don't match exactly on sample rate, so completely
ignore all other parameters!

how the f is someone supposed to figure out what parameter is the
problem then?  if it set all the paramters it could (which is everything
but the sample rate) and returned a sample rate that the device
supported, a program could see that the sample rate requested
!= sample rate returned and deal with it, easily.  instead, by
denying all parameters, it's now a guessing game.  did sample rate not
match, or did channels not match, or was it encoding, or precision ...
and you have to get them *all* right to know the answer.

see how totally ridiculous that is?

unfortunately, fixing this is not exactly trivial.  I have an idea,
but I really would need a machine (I have the cards, just nothing that
can use them) to work it out.

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



Re: Anomali on /var available space

2010-03-27 Thread Brad Tilley
On Sat, 27 Mar 2010 13:09 +0100, Peter N. M. Hansteen
pe...@bsdly.net wrote:
 Kabayan kab4...@yahoo.com writes:
 
  Problem solve after I restart pflogd
  New problem is Why the pflogd process almost use 100% capacity of my /var ?
 
 My guess would be that your pf.conf logs traffic with log (all) on at
 least one rule that matches a lot of traffic, and possibly your
 newsyslog.conf does not implement a very aggressive log rotation
 schedule.

 Logging all packets is not all that useful unless you're deep in
 debugging something. 

I occasionally log packets that pf blocks (just to see who is poking
around). Normally, that's about 100K per hour and only 4 old logs are
kept so a small /var is OK most of the time.  Then one day, some new
network gear was installed that messed-up the layer 2 bridging and
introduced a loop and STP stopped working. From that came a huge
broadcast storm. pf logs filled up a 4GB /var in 3 minutes. I've never
seen that many packets in that short amount of time. I still log pf
blocks and 99% of the time, it's OK.

Brad



week end di Pasqua

2010-03-27 Thread info
Questa e' la nostra proposta per Pasqua!

Sara' un soggiorno di 3 notti con l'ingresso al centro benessere.

Andremo con il Pullman al Parco Oltremare di Riccione.

Vedremo lo spettacolo dei delfini e i grandi acquari marini.

Faremo la cena della Vigilia con musica dal vivo e tanto altro.

Camera doppia euro 498,00 totali per l'intero soggiorno tutto incluso

Il programma completo e' su www.missirini.it

Auguriamo una Serena Pasqua ricca di affetti e gioie

Hotel Missirini - Terme della Fratta - Romagna - T 0543 460770

Chiediamo scusa se abbiamo infastidito e invitiamo a cancellarsi.

--
Puoi cancellarti:
http://newsletter.2mlab.it/?p=unsubscribeuid=b28cdb1222c89a3bc2b91c3f879f174c

Puoi mandare questa offerta a chi vuoi tu!
http://newsletter.2mlab.it/?p=forwarduid=b28cdb1222c89a3bc2b91c3f879f174cmid=44

Puoi leggere la promozione direttamente dal sito:
http://www.missirini.it/missirini/promozione.asp?id=56promo=P_9 



Re: Anomali on /var available space

2010-03-27 Thread Peter N. M. Hansteen
Brad Tilley b...@16systems.com writes:

 network gear was installed that messed-up the layer 2 bridging and
 introduced a loop and STP stopped working. From that came a huge
 broadcast storm. pf logs filled up a 4GB /var in 3 minutes. I've never
 seen that many packets in that short amount of time. I still log pf
 blocks and 99% of the time, it's OK.

Heh. Loops can be fun (fsvo) for sure.  

I also tend to put a block log at the top of rule sets, if only to
peek at occasionally to see how much crazy stuff gets aimed at you.

But then the OP's problem of /var filling up quickly fit my hazy
memories of one time I put in way to much log (all) in a config.  The
difference in space consumption between log and log (all) is rather
significant.

- P
-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: customize CFLAG with /etc/mk.conf

2010-03-27 Thread Christiano F. Haesbaert
2010/3/26 Aaron Lewis aaron.lewis1...@gmail.com:
 Hi,
   Is that possible to modify CFLAG for port installed software ?

   I read `man mk.conf' found there's no CFLAGS or CXXFLAG entries , even
 though i tried to
   put `CFLAG += -O3 -march=i686' into that file , but ports doesn't
 recognize it.

   Just want to optimize ports software , during compilation of kernel , i'd
 comment them out.

   Does anyone has any ideas ?


Have in mind that gcc can produce wrong code with anything higher than -O2.

Honestly, don't worry with that, just compile stuff and be happy.



Re: aucat: default: can't open device

2010-03-27 Thread Chris Bennett

Jacob Meuser wrote:

On Sat, Mar 27, 2010 at 02:24:58AM -0700, J.C. Roberts wrote:

  

sun_setpar: 0: trying pars = 48000/16/6
sun_setpar: couldn't set linear encoding
aucat: default: can't open device



blargh.  sb(4) can't handle 48kHz rates, and this old driver is
stupid.  we don't match exactly on sample rate, so completely
ignore all other parameters!

how the f is someone supposed to figure out what parameter is the
problem then?  if it set all the paramters it could (which is everything
but the sample rate) and returned a sample rate that the device
supported, a program could see that the sample rate requested
!= sample rate returned and deal with it, easily.  instead, by
denying all parameters, it's now a guessing game.  did sample rate not
match, or did channels not match, or was it encoding, or precision ...
and you have to get them *all* right to know the answer.

see how totally ridiculous that is?

unfortunately, fixing this is not exactly trivial.  I have an idea,
but I really would need a machine (I have the cards, just nothing that
can use them) to work it out.

  
Now that you mention this, I remember that not accepting 48kHz was a 
common complaint for earlier soundblaster cards.

People who cared were really pissed off.

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
  -- Robert Heinlein



Re: customize CFLAG with /etc/mk.conf

2010-03-27 Thread Aaron Lewis

Thanks Jacob , I just want to make some graphic software faster.

Cause i have a core2 cpu , supports mmx code and some other features ,
i'm trying to see if it really helps with those compiler flags.

Jacob Meuser wrote:

On Sat, Mar 27, 2010 at 10:05:02AM +0800, Aaron Lewis wrote:
  

Hi,
   Is that possible to modify CFLAG for port installed software ?

   I read `man mk.conf' found there's no CFLAGS or CXXFLAG entries ,
even though i tried to
   put `CFLAG += -O3 -march=i686' into that file , but ports doesn't
recognize it.

   Just want to optimize ports software , during compilation of
kernel , i'd comment them out.

   Does anyone has any ideas ?



I've built things with '-O3 -march' on OpenBSD throughout the years.
*never* has it improved *anything*.  at best, the difference is not
noticible, at worst things are slower and less stable.  and I'm talking
like I did this a month ago with multimedia software that uses such
flags by default.

  



--
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode



Re: customize CFLAG with /etc/mk.conf

2010-03-27 Thread Aaron Lewis
Christian Weisgerber wrote:
 Aaron Lewis aaron.lewis1...@gmail.com wrote:

   
 I read `man mk.conf' found there's no CFLAGS or CXXFLAG entries , 
 even though i tried to
 put `CFLAG += -O3 -march=i686' into that file , but ports doesn't 
 recognize it.
 

 No such variable is used by the ports infrastructure.  Note the
 name, CFLAG is not the same as CFLAGS.

   

Yeah , its a typo , should be CFLAGS.
 Just want to optimize ports software , during compilation of kernel 
 , i'd comment them out.
 

 Yes, you can set CFLAGS and CXXFLAGS in /etc/mk.conf or the environment
 and most ports will pick it up.  (Some don't for sound technical
 reasons, a few don't and it's an error that needs to be fixed.)

 Generally speaking, I advise against playing with gcc's optimization
 flags.  You will not see an improvement, and some of these optimization
 steps may actually generate incorrect code.  The time you spend
 fiddling with these settings will be more than you can ever gain
 from them.
   

You're right Christian.
AFAIK , sqlite can't work with intel mmx instructions , gcc generate
wrong asm codes
 I do occasionally set CFLAGS to build a port *without* optimization
 when I need to debug a problem with gdb(1).  Single-stepping through
 code that has been run through -O2 can be a surreal experience.

   
Use CFLAGS to build software with debug information is a good hack ,
i'll take your suggestion.


-- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode



sxwerg

2010-03-27 Thread kkk123
dear

-Why Did Allah Create Humans?



[SOLVED] Re: customize CFLAG with /etc/mk.conf

2010-03-27 Thread Aaron Lewis

First of all , thanks for all your experiences ;-)
Forgive me , i didn't response to all your mail.

So let me do a summary , after collection all you mails:

I) generating CPU featured assemble takes longer time , also risks in 
creating wrong code
II) customize compiler flag on OpenBSD doesn't values so much as what we 
costs to achieve it.


Thanks again !

Ivan Nudzik wrote:

Aaron,
I built 3.7 base + OpenVPN for VPN gateway with custom 
CFLAGS/LDFLAGS and it worked well for years, even with such aggressive 
flags as CFLAGS=-O3 -march=c3 -mmmx -m3dnow -fomit-frame-pointer and 
LDFLAGS=-Wl,-z,combreloc -Wl,-O2 -Wl,--sort-common 
-Wl,--enable-new-dtags. But build was broken and I must to fix many 
things in OpenBSD makefiles, to get binaries done. Such LDFLAGS 
significantly speedups application loading, cause it's doing the same 
things as prelink utility, but it link time. CFLAGS helps me speedup 
C3 500MHz router device as about 20-30%, but it was synthetic 
measurement on nbench built with and without CLFAGS. Kernel build was 
also forced for such CFLAGS and no stability issue and subjectively 
more speedy.
I've read about that , e.g kernel avoid intel MMX instructions , cause 
it may cause interrupts (handle lots of register together to combine a 
bigger register)
It was few years ago, when I've had mood to compile everything 
with all CPU features on. ;-) 
Yeah , i'm so interesting with CPU features on my Linux right now , like 
what you did  a few years ago ;-)


Looking at this concrete OpenBSD build my summary is that it took me 
more than 20h to build it and speedups was not such significant, 
comparing that it should took an about 1h to do the same functionality 
with release binaries only bit slow. And two other things to keep on 
mind: nowadays x86 CPUs has very heuristic instruction 
handling/prefetching so it will not speedup as much with custom 
CFLAGS; OpenBSD still use gcc 3.3.5 which can't do as good 
optimization for new CPUs as to loose time with custom flags build. 
And many makefiles in OpenBSD base don't handle CFLAGS/LDFLAGS 
correctly. The last time I tried it (about 1/2y. ago), I made only 
kernel with custom flags (for kernel it is COPTS variable if I 
remember right). Rest of system didn't build and I didn't had a time 
to bother with broken makefiles.
So if you don't want to do HPC, don't loose time with custom 
flags. I if you want to do HPC, choose other operating system, cause 
OpenBSD strengths are other.



I take your suggestion , ain't gonna waste time playing gcc's flags.


--
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode



Re: aucat: default: can't open device

2010-03-27 Thread Jacob Meuser
On Sat, Mar 27, 2010 at 01:02:44PM +, Jacob Meuser wrote:

 unfortunately, fixing this is not exactly trivial.  I have an idea,
 but I really would need a machine (I have the cards, just nothing that
 can use them) to work it out.

not exactly elegant (I don't think there is an elegant way to handle it
without bigger changes) but it should work (only compile tested).

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

Index: sbdsp.c
===
RCS file: /cvs/src/sys/dev/isa/sbdsp.c,v
retrieving revision 1.29
diff -u -p sbdsp.c
--- sbdsp.c 31 Jul 2009 22:53:04 -  1.29
+++ sbdsp.c 27 Mar 2010 15:03:58 -
@@ -562,6 +562,57 @@ sbdsp_set_params(addr, setmode, usemode, play, rec)
continue;
 
p = mode == AUMODE_PLAY ? play : rec;
+
+   switch (model) {
+   case SB_1:
+   case SB_20:
+   if (mode == AUMODE_PLAY) {
+   if (p-sample_rate  4000)
+   p-sample_rate = 4000;
+   else if (p-sample_rate  22727)
+   p-sample_rate = 22727; /* 22050 ? */
+   } else {
+   if (p-sample_rate  4000)
+   p-sample_rate = 4000;
+   else if (p-sample_rate  12987)
+   p-sample_rate = 12987; /* 12000 ? */
+   }
+   break;
+   case SB_2x:
+   if (mode == AUMODE_PLAY) {
+   if (p-sample_rate  4000)
+   p-sample_rate = 4000;
+   else if (p-sample_rate  45454)
+   p-sample_rate = 45454; /* 44100 ? */
+   } else {
+   if (p-sample_rate  4000)
+   p-sample_rate = 4000;
+   else if (p-sample_rate  14925)
+   p-sample_rate = 14925; /* ??? */
+   }
+   break;
+   case SB_PRO:
+   case SB_JAZZ:
+   if (p-channels == 2) {
+   if (p-sample_rate  11025)
+   p-sample_rate = 11025;
+   else if (p-sample_rate  22727)
+   p-sample_rate = 22727; /* 22050 ? */
+   } else {
+   if (p-sample_rate  4000)
+   p-sample_rate = 4000;
+   else if (p-sample_rate  45454)
+   p-sample_rate = 45454; /* 44100 ? */
+   }
+   break;
+   case SB_16:
+   if (p-sample_rate  5000)
+   p-sample_rate = 5000;
+   else if (p-sample_rate  45000)
+   p-sample_rate = 45000; /* 44100 ? */
+   break;
+   }
+
/* Locate proper commands */
for(m = mode == AUMODE_PLAY ? sbpmodes : sbrmodes;
m-model != -1; m++) {



Re: Abnormally slow and unstable cvs process

2010-03-27 Thread Ozgur Kazancci
Thanks a lot for the suggestions.

The NIC was trying to auto negotiate, and it was ending up in half duplex.
And that was the reason why the cvs checkout took 12 hours!

I've fixed the problem by doing;

ifconfig bge0 media 10baseT/UTP mediaopt full-duplex

and then i added that to /etc/hostname.bge0

Regards.

-- 
Ozgur Kazancci



- Ozgur Kazancci ozgur.kazan...@info.uvt.ro wrote:
 Hello.
 
 I have a new computer that i'll control remotely, (a Dell PowerEdge 860)
 it has a newly installed OpenBSD 4.6.
 
 When i try to get the src source via cvs, the progress goes extremely slow,
 it always stops for ~30 seconds,
 sometimes even few minutes pass almost at every file during the fetching.
 
 The same slowness happened also when i pkg_add'ed a package.
 
 (I use the nearest cvs mirror - i tried different mirrors as well)
 
 for example,
 
 U src/gnu/usr.bin/binutils/ld/NEWS
 (waiting too long, then)
 U src/gnu/usr.bin/binutils/ld/README
 (again wait few minutes)
 U src/gnu/usr.bin/binutils/ld/TODO
 again..
 
 The current cvs process is running since ~12 hours.
 
 I guess it's not because of my computer's internet speed,
 at least it's not that slow, of course.
 Not a DNS problem.
 
 I suspect the NIC. Broadcom BCM5721. Its driver maybe?
 
 Here is the dmesg output:
 
 http://openbsd.pastebin.ca/CDtZiOel
 
 Would gratefully appreciate any suggestions.
 
 Many thanks in advance for your time!

- Gregory Edigarov g...@bestnet.kharkov.ua wrote:
 try disabling ACPI in the first place.

- Otto Moerbeek o...@drijf.net wrote:
 I would suspect some fragmentation issue here. Check you firewall settings.



Re: macbook pro 5,5

2010-03-27 Thread Pau
Hello,

I installed a recent snapshot (i386) on the mac 5,5 and the nv driver
seems to not be able to work. I have to resort to vesa to get X
working. I thought somebody had mentioned s/he had got it working.

Re. azalia: If more testing is needed, I can help. I am now on the way
of downloading and installing the most recent amd64 snapshot on the
laptop.

Thanks in any case for the input.

Cheers,

Pau


2010/3/26 Ted Roby ted.r...@gmail.com:
 On Thu, Mar 25, 2010 at 4:16 PM, Jean-Philippe Ouellet 
 jean-phili...@ouellet.biz wrote:

 On 3/25/10 12:44 PM, Ted Roby wrote:

 On Thu, Mar 25, 2010 at 3:45 AM, Lars Noodenlars.cura...@gmail.com
  wrote:

  On 3/24/10 21:02 , Pau wrote:

  I was also wondering whether it is possible to have openbsd on the

 laptop as the only OS. I am guessing that the EFI could give trouble.


 I've done that with the older macbook pros.  I'm sure the openfirmware
 could be set to boot straight into OpenBSD, but would need a good OF
 reference first.  If you leave it as-is, the firmware takes a long time
 to
 find the system.

 Leaving a minimal OS X partition and using rEFIt to boot 'legacy first',
 it
 quickly goes into openbsd as the default.If you leave off all the
 language variants and excess printer drivers, then OS X is about 20 GB.

 /Lars


  Actually, a default install of OSX without localizations and printer
 support
 is only 4.5 GB.
 You can reduce the partition it is installed on  to that, plus the size
of
 your memory.
 So, OSX allowed me to shrink my HFS+ partition (with 4 GB ram) down to
9.5
 GB.

 I used diskutil resize to do this after install.


 Actually, if you're not going to use OSX, you shouldn't need to have it on
 your disk at all because you can put rEFIt on a small EFI partition at the
 beginning of your disk and use bless(8) from an OSX dvd or whatever to set
 it to boot. Such an EFI partition was silently created if you used Disk
 Utility to set up your disk (and exists by default on macs when you buy
 them).

 I had it set up like this on my old MacBook1,1 but have not tried it on my
 MacBookPro5,3 although I see no reason why it wouldn't work.


 Actually, I use it.



DEPARTMENT OF FINANCIAL SURVEILLANCE/FUND RECOVERY $7.5M.

2010-03-27 Thread ECONOMIC FINANCIAL CRIMES COMMISSION.
$B?7$7$$%a!%k%%I%l%9$r$*CN$i$;$7$^$9?7$7$$%a!%k%%I%l%9!'(B 
intercontinental_ngplc00...@yahoo.co.jp

Investigations into your payment file and the reason for the delay on your 
payment is concluded/approved.Are you still alive?Did you ask TOM BROWN to 
receive your 
funds?CONTACT;Mrs.F.Waziri+2347041440841(surveillance_efcc...@yahoo.com.hk)with 
your Names,Address,Age,Tel,to claim your $7.5m.

- ECONOMIC  FINANCIAL CRIMES COMMISSION.



softraid

2010-03-27 Thread Paul M
Is softraid(4) now concidered suitable for use in production 
environments?


I know that many people have used it for a long time with no problems,
but that is not my question.

I see that the bioctl man page lists the RAID 4  5 disciplines as
'experimental' - I'm specificly interested in RAID0.

I've been looking forward to switching from RAIDFrame for some time,
here's hoping that 4.7 will be that time.


I appreciate the fine work all the devs have done, and am extremely
gratefull to you all that I'm able to use such a fine OS.
Thank You.


paulm