Re: relayd and large POST requests

2023-10-25 Thread Erwin Geerdink
> before going any deeper in investigating the behaviour I would suggest
> to configure this setup with using redirection.
> I think you are better with just forwarding on layer 3.
> 
> Or did I miss something? Why did you choose relay here? 

relayd is used here as tls termination proxy, since varnish does not
support tls.



Re: relayd and large POST requests

2023-10-22 Thread Erwin Geerdink
> Actually I can't be sure this the origin of your problem, but the
> value of "memory_limit" is wrong.

Thank you, I increased php memory limit but the problem persists
unfortunately. 

In fact this 3000M file upload freezes our 16G machine even
when there is no other workload, so that's a significant issue.

Has anyone else run into this problem?



Re: relayd and large POST requests

2023-10-21 Thread Erwin Geerdink
> Can you post from your php.ini what you did set for the following
> values?

php.ini:

upload_max_filesize = 4096M
post_max_size = 4096M
memory_limit = 256M
max_execution_time = 300

httpd.conf:

connection {
max request body 4294967296  # 4096M
}

I'm able to reproduce the problem locally with identical setup.
Transfer is then a matter of seconds and timeout should not be an issue.
Uploading a 3000M file with increased login.conf limits succeeds, 
but sometimes results in very high memory consumption first by relayd
and then followed by httpd, as observed with top:

  PID USERNAME PRI NICE  SIZE   RES STATE WAIT  TIMECPU COMMAND
56119 _relayd20 8198M 7117M sleep/1   kqread0:20 25.78% relayd
15048 www20 4101M 4105M sleep/3   kqread0:32 24.71% httpd

As mentioned, other times relayd's memory usage just remains low (few Mb) 
while the data is passed on to varnish/httpd (which does have increased 
memory usage while flushing the data to disk)

Kind regards,
Erwin




relayd and large POST requests

2023-10-21 Thread Erwin Geerdink
Hi,

I'm running a setup on OpenBSD 7.3 (amd64, 16GB RAM) with relayd,
varnish, httpd and php-fpm. When uploading a large >2GB file through
our web application, *occassionally* relayd starts to consume an
increasing amount of memory (as observed with top) until it hits
resource limits from login.conf and the file upload terminates
prematurely. In /var/log/daemon:

relayd[572]: relay mysite4, session 14 (1 active),
0, xxx -> 127.0.0.1:8443, Cannot allocate memory (500 Internal
Server Error), POST: Undefined error: 0

There is no temporary file created in /var/www/tmp. 

*Sometimes* the upload does succeed, in that case memory usage of
relayd remains low and the data is being flushed to disk (a growing
temporary file in /var/www/tmp).

File uploads appear to work fine when relayd is taken out of
the loop. Obviously I could tweak login.conf, but the high memory
consumption (although temporary) may also cause other problems.

Why does relayd sometimes buffer "the whole file" in memory? Can this be
configured somehow?

Possibly related but very old, no solution:
https://marc.info/?l=openbsd-misc=132588522002336=2


Kind regards,
Erwin


/etc/relayd.conf:

table  { 127.0.0.1 }

log connection

http protocol "https" {
tls keypair "server"
return error
pass
}

relay "mysite4" {
listen on xxx port 443 tls
protocol "https"
forward to  port 8443 check tcp
}



at/batch(1) and ssh-agent(1) environment variables

2018-01-31 Thread Erwin Geerdink
Hi,

at/batch(1) appears to not retain SSH_AUTH_SOCK and SSH_AGENT_PID
environment variables when commands are executed. According to the man
page: 

"(...) The working directory, the environment (except for the variables
TERM, TERMCAP, DISPLAY, and _), and the umask are retained from the
time of invocation.  An at or batch command invoked from a su(1) shell
will retain the current user ID."

Why are those variables not preserved?

My use case is an automated backup to a remote server with ssh public
key authentication (passphrased). Since cron + ssh-agent needs some
kind of workaround (e.g. predetermined socket location, Keychain etc.),
I intend to run the backup script with batch from ~/.xsession after
ssh-agent was started by default in /etc/X11/xenodm/Xsession. The
machine is not running continuously.

Example:

$ env
_=/usr/bin/env
LOGNAME=erwin
WINDOWPATH=ttyC4
WINDOWID=12582925
XTERM_SHELL=/bin/ksh
JAVA_HOME=/usr/local/jdk-1.7.0/
HOME=/home/erwin
LC_CTYPE=en_US.UTF-8
VISUAL=/usr/bin/mg
XTERM_VERSION=XTerm/OpenBSD(330)
DISPLAY=:0
SSH_AGENT_PID=73270
HOSTNAME=pc0.erwingeerdink.com
EDITOR=/usr/bin/mg
ENV=/home/erwin/.kshrc
PATH=/home/erwin/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:.
SSH_AUTH_SOCK=/tmp/ssh-MmReEdpAhc7D/agent.15964
PAGER=less
TERM=xterm
SHELL=/bin/ksh
USER=erwin
XTERM_LOCALE=en_US.UTF-8
$ echo 'env' | at now 
commands will be executed using /bin/ksh
job 1517394411.c at Wed Jan 31 11:26:51 2018
$ doas cat /var/cron/log | fgrep '1517394411.c'
doas (er...@pc0.erwingeerdink.com) password: 
Jan 31 11:26:51 pc0 at[16305]: (erwin) CREATE (1517394411.c)
Jan 31 11:26:51 pc0 cron[27096]: (erwin) ATJOB (1517394411.c)
$ cat /var/mail/erwin
(...)

Your "at" job on pc0.erwingeerdink.com
"/var/cron/atjobs/1517394411.c"

produced the following output:

_=/usr/bin/env
LOGNAME=erwin
WINDOWPATH=ttyC4
WINDOWID=12582925
XTERM_SHELL=/bin/ksh
HOME=/home/erwin
JAVA_HOME=/usr/local/jdk-1.7.0/
LC_CTYPE=en_US.UTF-8
VISUAL=/usr/bin/mg
XTERM_VERSION=XTerm/OpenBSD(330)
HOSTNAME=pc0.erwingeerdink.com
EDITOR=/usr/bin/mg
ENV=/home/erwin/.kshrc
PATH=/home/erwin/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:.
PAGER=less
XTERM_LOCALE=en_US.UTF-8
USER=erwin
$


dmesg:
OpenBSD 6.2 (GENERIC.MP) #2: Sun Dec 10 21:14:42 CET 2017

r...@syspatch-62-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8034123776 (7661MB)
avail mem = 7783612416 (7423MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (53 entries)
bios0: vendor Award Software International, Inc. version "F4" date
10/19/2012 bios0: Gigabyte Technology Co., Ltd. GA-78LMT-USB3
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP MSDM HPET MCFG TAMG APIC SSDT
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5
(S3) USB6(S3) SBAZ(S4) P2P_(S5) PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6
(S4) PCE7(S4) PCE9(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz acpimcfg0 at acpi0 addr 0xe000, bus
0-255 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD FX(tm)-8320 Eight-Core Processor, 33398.65 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu0: ITLB 48
4KB entries fully associative, 24 4MB entries fully associative cpu0:
DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: TSC frequency 33398645960 Hz cpu0: smt 0, core 0, package 0 mtrr:
Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic
clock running at 200MHz cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD FX(tm)-8320 Eight-Core Processor, 3515.55 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu1: ITLB 48
4KB entries fully associative, 24 4MB entries fully associative cpu1:
DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: smt 0, core 3, package 0 cpu2 at mainbus0: apid 2 (application
processor) cpu2: AMD FX(tm)-8320 Eight-Core Processor, 3515.55 MHz
cpu2:

Re: adsuck: script missing?

2015-07-15 Thread Erwin Geerdink
 softraid0 at root
 scsibus4 at softraid0: 256 targets
 root on sd0a (84a682c877cee9a9.a) swap on sd0b dump on sd0b
 radeondrm0: 1400x1050
 wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using
 wskbd0 wskbd1: connecting to wsdisplay0
 wsdisplay0: screen 1-5 added (std, vt100 emulation)
 


-- 
Erwin Geerdink



Re: Alix 3D3 disconnects from network after random amount of time

2014-09-11 Thread Erwin Geerdink
On Sat, 6 Sep 2014 17:56:59 +
Артур Истомин art.is...@yandex.ru wrote:

 On Sat, Sep 06, 2014 at 11:36:55AM +0200, Erwin Geerdink wrote:
  On Fri, 05 Sep 2014 16:05:14 +0200
  Boudewijn Dijkstra sp4mtr4p.boudew...@indes.com wrote:
  
   Op Sat, 30 Aug 2014 14:20:43 +0200 schreef Erwin Geerdink
   open...@erwingeerdink.com:
pcibios0: bad IRQ table checksum
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: Warning, unable to fix up PCI interrupt routing
vr0 at pci0 dev 9 function 0 VIA VT6105M RhineIII rev 0x96:
irq 11, auglx0 at pci0 dev 15 function 3 AMD CS5536 Audio rev
0x01: irq 11,
   
   Could there be a problem with IRQ sharing?
   
  
  Good suggestion, I disabled onboard audio and am now
  testing/tcpbenching again to see if the problem persists. I was not
  able to configure IRQ addresses in the bios settings (did I
  overlook?), but when the connection is reliable I intend to use an
  usb audio interface anyway.
 
 I had the same problem when used usb flash drive as additional storage
 on Alix 2D13. I suspect problem was with AC power adapter,
 insufficient power for device. The problem was solved by failure of
 usb-drive :)
 

After some testing, I found that the problem persists even
when onboard audio is disabled such that vr0 has an exclusive IRQ.
Disconnecting all external devices (except VGA monitor and USB
keyboard) did not make a difference, although it seemed likely that
the usb audio interface was too power hungry (500 mA according to
usbdevs).

Updating to -current did not help either.

Currently I'm trying Debian, so far I haven't been able to
trigger a disconnection.

Best,
---
Erwin



Re: Alix 3D3 disconnects from network after random amount of time

2014-09-06 Thread Erwin Geerdink
On Fri, 05 Sep 2014 16:05:14 +0200
Boudewijn Dijkstra sp4mtr4p.boudew...@indes.com wrote:

 Op Sat, 30 Aug 2014 14:20:43 +0200 schreef Erwin Geerdink
 open...@erwingeerdink.com:
  pcibios0: bad IRQ table checksum
  pcibios0: PCI Exclusive IRQs: 5 10 11
  pcibios0: Warning, unable to fix up PCI interrupt routing
  vr0 at pci0 dev 9 function 0 VIA VT6105M RhineIII rev 0x96: irq
  11, auglx0 at pci0 dev 15 function 3 AMD CS5536 Audio rev 0x01:
  irq 11,
 
 Could there be a problem with IRQ sharing?
 

Good suggestion, I disabled onboard audio and am now testing/tcpbenching 
again to see if the problem persists. I was not able to configure IRQ
addresses in the bios settings (did I overlook?), 
but when the connection is reliable I intend to use an usb audio 
interface anyway.

Current dmesg and pcidump:

OpenBSD 5.5 (GENERIC) #0: Fri Apr 25 15:04:32 CEST 2014

r...@stable-55-i386.mtier.org:/binpatchng/work-binpatch55-i386/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS (AuthenticAMD 586-class) 499 
MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
real mem  = 259284992 (247MB)
avail mem = 242741248 (231MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/11/09, BIOS32 rev. 0 @ 0xfaf90
apm0 at bios0: Power Management spec V1.2 (slowidle)
pcibios0 at bios0: rev 2.1 @ 0xf/0xdfb4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf20/144 (7 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 7 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0xa800 0xef000/0x1000!
cpu0 at mainbus0: (uniprocessor)
mtrr: K6-family MTRR support (2 registers)
amdmsr0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 AMD Geode LX rev 0x33
vga1 at pci0 dev 1 function 1 AMD Geode LX Video rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
glxsb0 at pci0 dev 1 function 2 AMD Geode LX Crypto rev 0x00: RNG AES
vr0 at pci0 dev 9 function 0 VIA VT6105M RhineIII rev 0x96: irq 11, 
address 00:0d:b9:2b:97:28
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: 
OUI 0x004063, model 0x0034
glxpcib0 at pci0 dev 15 function 0 AMD CS5536 ISA rev 0x03: rev 3, 
32-bit 3579545Hz timer, watchdog, gpio, i2c
gpio0 at glxpcib0: 32 pins
iic0 at glxpcib0
maxtmp0 at iic0 addr 0x4c: lm86
pciide0 at pci0 dev 15 function 2 AMD CS5536 IDE rev 0x01: DMA, 
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: TS4GCF133
wd0: 1-sector PIO, LBA, 3823MB, 7831152 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 15 function 4 AMD CS5536 USB rev 0x02: irq 5, 
version 1.0, legacy support
ehci0 at pci0 dev 15 function 5 AMD CS5536 USB rev 0x02: irq 5
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 AMD EHCI root hub rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbdprobe: reset response 0xfa
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 AMD OHCI root hub rev 1.00/1.00 addr 1
umass0 at uhub0 port 1 configuration 1 interface 0 
Kingston DataTraveler 3.0 rev 2.10/1.10 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: Kingston, DataTraveler 3.0, PMAP 
SCSI4 0/direct removable serial.09511666BD81E994062A
sd0: 14996MB, 512 bytes/sector, 30712320 sectors
uhub2 at uhub1 port 2 ALCOR USB Hub 2.0 rev 2.00/7.02 addr 2
uhidev0 at uhub2 port 2 configuration 1 interface 0 
Primax Electronics USB Optical Mouse rev 2.00/2.00 addr 3
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub2 port 4 configuration 1 interface 0 USB USB Keykoard 
rev 1.10/1.10 addr 4
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev2 at uhub2 port 4 configuration 1 interface 1 USB USB Keykoard 
rev 1.10/1.10 addr 4
uhidev2: iclass 3/0, 2 report ids
uhid0 at uhidev2 reportid 1: input=2, output=0, feature=0
uhid1 at uhidev2 reportid 2: input=1, output=0, feature=0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (a6703cacf60979d8.a) swap on wd0b dump on wd0b

Domain /dev/pci0:
 0:1:0: AMD Geode LX
0x: Vendor ID: 1022 Product ID: 2080
0x0004: Command: 0005 Status: 0220
0x0008: Class: 06 Subclass: 00 Interface: 00 Revision: 33
0x000c: BIST: 00 Header Type: 80

Re: usb audio interfaces

2014-08-30 Thread Erwin Geerdink
On Thu, 31 Jul 2014 12:55:47 +0200
Alexandre Ratchov a...@caoua.org wrote:

 On Thu, Jul 31, 2014 at 12:48:35AM +0200, Erwin Geerdink wrote:
  Hi,
  
  I'm considering the following usb interfaces for my audio setup:
  
  E-MU 0204 usb
  E-MU Tracker Pre
  Presonus Audiobox usb
  Alesis IO|2 Express
  
  Recording will be done on a Windows machine, however it would be
  nice if I can use it for audio playback from an OpenBSD machine as
  well. I found the envy(4) and emu(4) man pages but I'm still not
  sure whether playback would work with any of these devices.
  
  Anyone experiences or suggestions?
  
 
 Hi,
 
 These devices are handled by the uaudio driver, assuming they are
 USB class compliant (driverless ones are likely to be).
 
 Unfortunately, on OpenBSD, USB1.1 devices using isochronous
 transfers don't work behind USB 2.0 hubs yet. In other words USB1.1
 audio cards are unlikely work on modern machines. I'd suggest you
 to test the cards if possible (just plug it try to play a simple
 .wav file).
 
 Another option, would be to get a old USB1.1 adapter and attach the
 USB1.1 card on it.

For the records, the Alesis io2 Express appears to work fine under
OpenBSD. The device has 2 channels, for each channel line out,
line in and mic in are working properly (I did not test the insert
jack and midi connections, but the latter do appear in dmesg). Headphone
out works great too, but the mono/stereo switch does not have any
effect. The monitor mix knob (direct/usb) also functions correctly.

So far I'm very happy with this usb soundcard under OpenBSD, big thanks
to the devs!

dmesg and audioctl output is attached below. There are no mixerctl
variables.

$dmesg
OpenBSD 5.6 (GENERIC.MP) #333: Fri Aug  8 00:20:21 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8034123776 (7661MB)
avail mem = 7811473408 (7449MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (53 entries)
bios0: vendor Award Software International, Inc. version F4 date
10/19/2012 bios0: Gigabyte Technology Co., Ltd. GA-78LMT-USB3
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP MSDM HPET MCFG TAMG APIC SSDT
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) 
USB5(S3) USB6(S3) SBAZ(S4) P2P_(S5) PCE2(S4) PCE3(S4) PCE4(S4) 
PCE5(S4) PCE6(S4) PCE7(S4) PCE9(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD FX(tm)-8320 Eight-Core Processor , 33750.19 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,
PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,
CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,
LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,
XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 
2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries
fully associative cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, C-substates=0.0.0.0.0, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD FX(tm)-8320 Eight-Core Processor , 3515.55 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,
PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,
CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,
LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,
XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 
2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries
fully associative cpu1: smt 0, core 3, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD FX(tm)-8320 Eight-Core Processor , 3515.55 MHz
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,
PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,
CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,
LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,
XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 
2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative cpu2: DTLB 64 4KB

Alix 3D3 disconnects from network after random amount of time

2014-08-30 Thread Erwin Geerdink
Hello,

My recently acquired PC Engines Alix 3D3 [1] board running OpenBSD
5.5-stable suddenly disconnects from my local network after a random
amount of time, typically 15-60 minutes. This happens consistently
while there is a low but constant amount of network traffic (e.g.
soundcard is used by a remote machine using sndiod).

Re-initializing the interface and running dhclient restores the
connection: 
$ sudo ifconfig vr0 down
$ sudo ifconfig vr0 up
$ sudo dhclient vr0

The Alix is connected to a Wireless Gigabit Dualband 300N prefab
router running dhcp. The router has been reliable so far and other
machines do not suffer from any disconnections.

Since this is a second-hand device I cannot rule out any hardware
problems, although network connectivity is fine until it breaks.
I will try some Linux distro soon and see if the same problem occurs.
Searching the mailing lists does not show any similar issues.

Below is some output from the Alix after disconnection while running tcpbench, 
not sure if
it's useful: dmesg, ifconfig, netstat -i, netstat -s and tcpbench.

[1] http://www.pcengines.ch/alix3d3.htm


$ dmesg
OpenBSD 5.5 (GENERIC) #0: Fri Apr 25 15:04:32 CEST 2014

r...@stable-55-i386.mtier.org:/binpatchng/work-binpatch55-i386/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS (AuthenticAMD
586-class) 499 MHz cpu0:
FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW real
mem  = 259219456 (247MB) avail mem = 242675712 (231MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/11/09, BIOS32 rev. 0 @ 0xfaf90
apm0 at bios0: Power Management spec V1.2 (slowidle)
pcibios0 at bios0: rev 2.1 @ 0xf/0xdfb4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf20/144 (7 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 7 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0xa800 0xef000/0x1000!
cpu0 at mainbus0: (uniprocessor)
mtrr: K6-family MTRR support (2 registers)
amdmsr0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 AMD Geode LX rev 0x33
vga1 at pci0 dev 1 function 1 AMD Geode LX Video rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
glxsb0 at pci0 dev 1 function 2 AMD Geode LX Crypto rev 0x00: RNG AES
vr0 at pci0 dev 9 function 0 VIA VT6105M RhineIII rev 0x96: irq 11,
address 00:0d:b9:2b:97:28 ukphy0 at vr0 phy 1: Generic IEEE 802.3u
media interface, rev. 3: OUI 0x004063, model 0x0034 glxpcib0 at pci0
dev 15 function 0 AMD CS5536 ISA rev 0x03: rev 3, 32-bit 3579545Hz
timer, watchdog, gpio, i2c gpio0 at glxpcib0: 32 pins iic0 at glxpcib0
maxtmp0 at iic0 addr 0x4c: lm86
pciide0 at pci0 dev 15 function 2 AMD CS5536 IDE rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility wd0
at pciide0 channel 0 drive 0: TS4GCF133 wd0: 1-sector PIO, LBA,
3823MB, 7831152 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA
mode 2 pciide0: channel 1 ignored (disabled)
auglx0 at pci0 dev 15 function 3 AMD CS5536 Audio rev 0x01: irq 11,
CS5536 AC97 ac97: codec id 0x414c4770 (Avance Logic ALC203 rev 0)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, No 3D Stereo
audio0 at auglx0
ohci0 at pci0 dev 15 function 4 AMD CS5536 USB rev 0x02: irq 5,
version 1.0, legacy support ehci0 at pci0 dev 15 function 5 AMD CS5536
USB rev 0x02: irq 5 usb0 at ehci0: USB revision 2.0
uhub0 at usb0 AMD EHCI root hub rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbdprobe: reset response 0xfa
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 AMD OHCI root hub rev 1.00/1.00 addr 1
uaudio0 at uhub1 port 1 configuration 1 interface 0 Alesis io|2 rev
1.10/1.01 addr 2 uaudio0: audio rev 1.00, 0 mixer controls
audio1 at uaudio0
umidi0 at uhub1 port 1 configuration 1 interface 3 Alesis io|2 rev
1.10/1.01 addr 2 umidi0: (genuine USB-MIDI)
umidi0: out=1, in=1
midi0 at umidi0: USB MIDI I/F
uhub2 at uhub1 port 2 ALCOR USB Hub 2.0 rev 2.00/7.02 addr 3
uhidev0 at uhub2 port 2 configuration 1 interface 0 Primax Electronics
USB Optical Mouse rev 2.00/2.00 addr 4 uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub2 port 4 configuration 1 interface 0 USB USB Keykoard
rev 1.10/1.10 addr 5 uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev2 at uhub2 port 4 configuration 1 interface 1 USB USB Keykoard
rev 1.10/1.10 addr 5 uhidev2: iclass 3/0, 2 report ids
uhid0 at uhidev2 reportid 1: input=2, output=0, feature=0
uhid1 at uhidev2 reportid 2: input=1, 

Re: usb audio interfaces

2014-08-02 Thread Erwin Geerdink
Thanks, the Presonus and Alesis interfaces are class compliant devices
according to their user manuals. So I ordered the Alesis IO|2;
the Presonus appears to lack line-level inputs.

The interface will be connected to an older notebook with USB1.1
hubs, which should be fine. Will try it with some USB2.0 hubs as well. 

Best,
-- 
Erwin



On Thu, 31 Jul 2014 12:55:47 +0200
Alexandre Ratchov a...@caoua.org wrote:

 On Thu, Jul 31, 2014 at 12:48:35AM +0200, Erwin Geerdink wrote:
  Hi,
  
  I'm considering the following usb interfaces for my audio setup:
  
  E-MU 0204 usb
  E-MU Tracker Pre
  Presonus Audiobox usb
  Alesis IO|2 Express
  
  Recording will be done on a Windows machine, however it would be
  nice if I can use it for audio playback from an OpenBSD machine as
  well. I found the envy(4) and emu(4) man pages but I'm still not
  sure whether playback would work with any of these devices.
  
  Anyone experiences or suggestions?
  
 
 Hi,
 
 These devices are handled by the uaudio driver, assuming they are
 USB class compliant (driverless ones are likely to be).
 
 Unfortunately, on OpenBSD, USB1.1 devices using isochronous
 transfers don't work behind USB 2.0 hubs yet. In other words USB1.1
 audio cards are unlikely work on modern machines. I'd suggest you
 to test the cards if possible (just plug it try to play a simple
 .wav file).
 
 Another option, would be to get a old USB1.1 adapter and attach the
 USB1.1 card on it.



usb audio interfaces

2014-07-30 Thread Erwin Geerdink
Hi,

I'm considering the following usb interfaces for my audio setup:

E-MU 0204 usb
E-MU Tracker Pre
Presonus Audiobox usb
Alesis IO|2 Express

Recording will be done on a Windows machine, however it would be
nice if I can use it for audio playback from an OpenBSD machine as
well. I found the envy(4) and emu(4) man pages but I'm still not sure
whether playback would work with any of these devices.

Anyone experiences or suggestions?

Best,
-- 
Erwin



Hibernated system crashes during wakeup boot

2014-01-16 Thread Erwin Geerdink
Hi,

Hibernating does not work on my Cooler Master RC-K280-KKN1 desktop pc:
when apmd is running and
$ ZZZ 
is invoked, the screen goes blank and the system appears
to be shutting down, not responding to keyboard input anymore. The disk
activity light is blinking, and after approx. 3 minutes the system
powers down. Booting the system then results in a system crash and ddb
is invoked; the following output was copied manually from the screen:

[...]
cpu6: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu6: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu6: smt 0, core 5, package 0
[distorted output]
cpu7: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
[distorted output]
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 21, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
[distorted output]
 dfdabu{l4t} trap, code=0
Faulted in DDB; continuing...
dkernel: page fault trap, code=0
Faulted in DDB; continuing...
ddb{6} x
mp_pdirpa+0x121c:   252cff48
ddb{6} trace
mp_pdirpa() at mp_pdirpa+0x121c
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x1b
--- interrupt ---
Bad frame pointer: 0x80002206af10
end trace framekernel: page fault trap, code=0
Faulted in DDB; continuing...
ddb{6} show registers
ds 0x10
es 0x10
fs 0x10
gs 0x10
rdi  0x8018f000
rsi 0x1
rbp  0x80002206ae28
rbx 0x8
rdx  0x819fcd01   cpu_ca+0x1
rcx 0x8
rax 0x112fa   mp_pdirpa+0x1213
r80
r90
r10  0x800022013f90
r11 0x8
r12   0
r13  0'panic: smashed stack in kprintf

At this point the system does not respond to keyboard input anymore.

Please let me know if more information is required.

OpenBSD 5.5-beta (GENERIC.MP) #267: Sun Jan 12 22:33:47 MST 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8034123776 (7661MB)
avail mem = 7812063232 (7450MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (53 entries)
bios0: vendor Award Software International, Inc. version F4 date
10/19/2012 bios0: Gigabyte Technology Co., Ltd. GA-78LMT-USB3
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP MSDM HPET MCFG TAMG APIC SSDT
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5
(S3) USB6(S3) SBAZ(S4) P2P_(S5) PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6
(S4) PCE7(S4) PCE9(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz acpimcfg0 at acpi0 addr 0xe000, bus
0-255 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD FX(tm)-8320 Eight-Core Processor , 3516.05 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu0: ITLB 48
4KB entries fully associative, 24 4MB entries fully associative cpu0:
DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var
ranges, 88 fixed ranges cpu0: apic clock running at 200MHz cpu0: mwait
min=64, max=64, C-substates=0.0.0.0.0, IBE cpu1 at mainbus0: apid 1
(application processor) cpu1: AMD FX(tm)-8320 Eight-Core Processor ,
3515.55 MHz cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu1: ITLB 48
4KB entries fully associative, 24 4MB entries fully associative cpu1:
DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: smt 0, core 3, package 0 cpu2 at mainbus0: apid 2 (application
processor) cpu2: AMD FX(tm)-8320 Eight-Core Processor , 3515.55 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu2: ITLB 48
4KB entries fully associative, 24 4MB entries fully associative cpu2:
DTLB 64 4KB entries fully associative, 64 

smp in dragonflybsd

2013-12-29 Thread Erwin Geerdink
Hi,

The openbsd journal had a series of articles on rthreads back in 2012,
which I came across last week. I've also been following DragonFlyBSD
lately. Their approach to SMP is different but seems to pay off
(according to their website), with contention in their kernel almost
eliminated in their latest release. 
Could DBSD's approach be adopted by OpenBSD, has it been considered?
Obviously it would be a hell of a job, what other complications would
arise and/or make this infeasible (security, portability)? This question
was asked before in the archives but no explanation was given.

Best,
Erwin



Re: Claws-mail frequently dumps core on 5.3R

2013-05-13 Thread Erwin Geerdink
On Fri, 10 May 2013 14:42:48 -0700
Philip Guenther guent...@gmail.com wrote:

 
 The quality of the error checking demonstrated by this crash, btw,
 should have you filing bugs with the claws-mail developers.  Bad
 input files is not a valid reason to crash; it should be reporting
 what file is involved and the most precise error message it has for
 the problem and existing with a non-zero status.
 

Thanks alot for your help. I will report this issue to the claws project. 
Meanwhile I stick to Sylpheed, which does not have this bug, apparently.

Thanks,
Erwin



Re: Claws-mail frequently dumps core on 5.3R

2013-05-10 Thread Erwin Geerdink
On Thu, 9 May 2013 13:56:19 -0700
Philip Guenther guent...@gmail.com wrote:

 
 Has anyone used to gdb here, either examine the core files or to run
 it where the signal can be caught and you can see what call is doing
 something wrong?
 
 
 Philip Guenther
 

I have little experience with debugging. I got the following output
from gdb, not sure if it's useful. Please let me know if you need
additional information.


~ $ gdb claws-mail
GNU gdb 6.3
(no debugging symbols found)

(gdb) r
Starting program: /usr/local/bin/claws-mail 

** (claws-mail:548): WARNING **: plugin loading error: File not found

[New process 548]

** (claws-mail:548): WARNING **: couldn't gnutls_x509_crt_export to get
size

** (claws-mail:548): WARNING **: couldn't gnutls_x509_crt_export to get
size

** (claws-mail:548): WARNING **: couldn't gnutls_x509_crt_export to get
size a The request is invalid.

Program received signal SIGSEGV, Segmentation fault.
0x1e8d3180bed6 in _gnutls_x509_crt_get_raw_dn2 ()
   from /usr/local/lib/libgnutls.so.39.2
(gdb) bt
#0  0x1e8d3180bed6 in _gnutls_x509_crt_get_raw_dn2 ()
   from /usr/local/lib/libgnutls.so.39.2
#1  0x1e8d31808e6a in is_issuer ()
from /usr/local/lib/libgnutls.so.39.2 #2  0x1e8b21086faf in
ssl_certificate_check_signer () from /usr/local/bin/claws-mail
#3  0x1e8b210ec3ce in claws_spell_entry_new ()
   from /usr/local/bin/claws-mail
#4  0x1e8b210ed2cd in sslcertwindow_register_hook ()
   from /usr/local/bin/claws-mail
#5  0x1e8b2107ac69 in base64_decoder_new ()
from /usr/local/bin/claws-mail #6  0x1e8d31cb8989 in
g_hook_list_marshal () from /usr/local/lib/libglib-2.0.so.3400.0
#7  0x1e8b2107ad80 in hooks_invoke () from /usr/local/bin/claws-mail
#8  0x1e8b21087626 in ssl_certificate_check ()
   from /usr/local/bin/claws-mail
#9  0x1e8b21085f0b in ssl_init_socket_with_method ()
   from /usr/local/bin/claws-mail
#10 0x1e8b2108224c in session_connect ()
   from /usr/local/bin/claws-mail
#11 0x1e8b21084d44 in fd_connect_inet ()
   from /usr/local/bin/claws-mail
#12 0x1e8d31cc4d3a in g_main_context_dispatch ()
   from /usr/local/lib/libglib-2.0.so.3400.0
#13 0x1e8d31cc6725 in
g_main_context_iterate () from /usr/local/lib/libglib-2.0.so.3400.0
#14 0x1e8d31cc67e7 in g_main_context_iteration ()
   from /usr/local/lib/libglib-2.0.so.3400.0
#15 0x1e8d23afff01 in gtk_main_iteration ()
   from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#16 0x1e8b20f740c7 in inc_cancel_all ()
   from /usr/local/bin/claws-mail
#17 0x1e8b20f7515f in inc_all_account_mail ()
   from /usr/local/bin/claws-mail
#18 0x1e8b20f76e5f in clean_quit () from /usr/local/bin/claws-mail
#19 0x1e8d31cc57cb in g_timeout_dispatch ()
   from /usr/local/lib/libglib-2.0.so.3400.0
#20 0x1e8d31cc4d3a in g_main_context_dispatch ()
   from /usr/local/lib/libglib-2.0.so.3400.0
#21 0x1e8d31cc6725 in g_main_context_iterate ()
   from /usr/local/lib/libglib-2.0.so.3400.0
#22 0x1e8d31cc7815 in g_main_loop_run ()
   from /usr/local/lib/libglib-2.0.so.3400.0
#23 0x1e8d23b00043 in gtk_main ()
   from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#24 0x1e8b20f79d6d in main () from /usr/local/bin/claws-mail
(gdb) c
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.



Re: Claws-mail frequently dumps core on 5.3R

2013-05-09 Thread Erwin Geerdink
On Sun, 5 May 2013 15:12:07 +0200
Stefan Wollny ste...@wollny.de wrote:

 Hi Erwin,
 Hi misc@!
 
 I do experience this behaviour as well - as of this morning I use the
 latest 5.3-current (#148) and claws-mail hasn't crashed for an hour.
 Yet it keeps complaining about the SSL certs being changed.
 
 I just did a fresh install of my system based on 5.3-current (#147).
 
 The ./claws-mail/certs folder has permissions 700 while the certs
 within have 644 - I have no idea if this has an effect on claws-mail.
 
 If I can help with any other info or testing just drop me a line.
 

Has upgrading to the latest current solved the coredumping for you?
Completely reinstalling claws does not work for me. I prefer to stick
to 5.3 release but if upgrading helps, I am willing to do so.

Thanks,

Erwin



cwm automatic tiling

2013-05-08 Thread Erwin Geerdink
Hi,

The cwm version shipped with 5.3 supports horizontal and
vertical manual tiling of windows. This is a great feature which I
enjoy using. 

I was wondering if this feature will be extended to
automatic tiling in next releases? Something like an 'autotile' bind
command which tiles new windows and rearranges existing ones. 

Kind regards,
Erwin



Claws-mail frequently dumps core on 5.3R

2013-05-04 Thread Erwin Geerdink
Hi,

Since I upgraded to OpenBSD 5.3 Release (following the upgrade guide on
the website), I have experienced the following problem with claws-mail
v3.8.1: Every time I try to fetch mail, a dialog 'Changed SSL
certificate' pops up, for each of my mailboxes. No matter if I
choose 'Cancel connection' or 'Accept and Save certificates', both
frequently result in a core dump.
Even when claws does not crash, the certs are not properly saved, for
the dialog shows up every subsequent fetch. The SSL certs are stored to
disk (~/.claws-mail/certs/), but information about owner and signer is
'not in certificate'.

Core dumps also occur when sending mail. 
As you understand, this makes usage quite a pain.

Does anyone experience this issue as well?
Could this be due to an incorrect upgrade?


Some terminal output while using claws:
~ $ claws-mail 

** (claws-mail:13183): WARNING **: couldn't gnutls_x509_crt_export to
get size

** (claws-mail:13183): WARNING **: couldn't gnutls_x509_crt_export to
get size b The request is invalid.

** (claws-mail:13183): WARNING **: couldn't gnutls_x509_crt_export to
get size

** (claws-mail:13183): WARNING **: couldn't gnutls_x509_crt_export to
get size b The request is invalid.

++ STATS ++ INC 0 0

** (claws-mail:13183): WARNING **: couldn't gnutls_x509_crt_export to
get size

** (claws-mail:13183): WARNING **: couldn't gnutls_x509_crt_export to
get size

** (claws-mail:13183): WARNING **: couldn't gnutls_x509_crt_export to
get size a The request is invalid.

Segmentation fault (core dumped) 

~ $ dmesg
OpenBSD 5.3 (GENERIC.MP) #62: Tue Mar 12 18:21:20 MDT 2013
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2011496448 (1918MB)
avail mem = 1935515648 (1845MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0e20 (19 entries)
bios0: vendor Hewlett-Packard version F.07 date 08/09/2007
bios0: Hewlett-Packard 30D1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA SRAT SSDT MCFG HPET APIC BOOT SLIC
acpi0: wakeup devices PCI0(S5) USB0(S0) USB2(S0) Z017(S0) Z018(S0)
MAC0(S5) P2P0(S5) XVR0(S5) XVR1(S5) XVR3(S5) XVR4(S5) XVR5(S5) XVR6(S5)
KBC0(S3) MSE0(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimcfg0 at
acpi0 addr 0xe000, bus 0-4 acpihpet0 at acpi0: 2500 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55, 1800.44 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,3DNOWP
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 256KB
64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8
4MB entries fully associative cpu0: DTLB 32 4KB entries fully
associative, 8 4MB entries fully associative cpu0: apic clock running
at 200MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD
Athlon(tm) 64 X2 Dual-Core Processor TK-55, 1800.17 MHz cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,3DNOWP
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 256KB
64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 8
4MB entries fully associative cpu1: DTLB 32 4KB entries fully
associative, 8 4MB entries fully associative ioapic0 at mainbus0: apid
2 pa 0xfec0, version 11, 24 pins acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (P2P0) acpiprt2 at acpi0: bus -1 (XVR0)
acpiprt3 at acpi0: bus 4 (XVR1)
acpiprt4 at acpi0: bus 3 (XVR2)
acpiprt5 at acpi0: bus -1 (XVR3)
acpiprt6 at acpi0: bus -1 (XVR4)
acpiprt7 at acpi0: bus -1 (XVR5)
acpiprt8 at acpi0: bus -1 (XVR6)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, PSS
acpicpu1 at acpi0: PSS
acpitz0 at acpi0acpitz0: THRM: failed to read _CRT
: no critical temperature defined
acpibtn0 at acpi0: SLPB
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 not present
acpibtn1 at acpi0: LID_
acpibtn2 at acpi0: PWRB
acpivideo0 at acpi0: UVGA
acpivout0 at acpivideo0: LCD_
cpu0: PowerNow! K8 1800 MHz: speeds: 1800 1600 800 MHz
pci0 at mainbus0 bus 0
NVIDIA MCP67 Memory rev 0xa2 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 NVIDIA MCP67 ISA rev 0xa2
nviic0 at pci0 dev 1 function 1 NVIDIA MCP67 SMBus rev 0xa2
iic0 at nviic0
iic1 at nviic0
spdmem0 at iic1 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
spdmem1 at iic1 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
NVIDIA MCP67 Memory rev 0xa2 at pci0 dev 1 function 2 not configured
NVIDIA MCP67 Co-processor rev 0xa2 at pci0 dev 1 function 3 not
configured ohci0 at pci0 dev 2 function 0 NVIDIA MCP67 USB rev 0xa2:
apic 2 int 11, version 1.0, legacy support ehci0 at pci0 dev 2 function
1 NVIDIA MCP67 USB rev 0xa2: apic 2 int 7 usb0 at ehci0: USB revision
2.0 uhub0 at usb0 

fdisk -i does not span entire 1TB disk

2013-04-14 Thread Erwin Geerdink
Hi,

After reading the man pages for fdisk, disklabel and the FAQ, I created
a FFS2 filesystem on my 1TB usb harddisk (which I want to use for
backups). The disk contains an OpenBSD MBR partition which spans
the entire disk. I issued the following commands:

# fdisk -i sd0
# disklabel -E sd0
  (created partition 'a' covering the whole OpenBSD part)
# newfs -O 2 sd0a

This works fine, however only 931GB of the disk is allocated, while 
originally it was capable of storing 1000GB (FAT filesystem).
Since an additional 5% is reserved for root, df -h tells me there is
just 878GB available.

Where has the remaining diskspace gone?


# fdisk sd0 

Disk: sd0   geometry: 121601/255/63 [1953525168 Sectors]
Offset: 0   Signature: 0xAA55
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
 0: 00  0   0   0 -  0   0   0 [   0:   0 ] unused 
 1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused 
 2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused 
*3: A6  0   1   2 - 121600 254  63 [  64:  1953520001 ] OpenBSD

# disklabel sd0

# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: Bell Carbon 
duid: bd112d36e9fc8c1f
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 121601
total sectors: 1953525168
boundstart: 64
boundend: 1953520065
drivedata: 0 

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a:   1953525056   64  4.2BSD   8192 655361 
  c:   19535251680  unused   

# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/sd0a  924G199G679G23%/mnt/sd0a


Best,
Erwin



Re: fdisk -i does not span entire 1TB disk

2013-04-14 Thread Erwin Geerdink
On Sun, 14 Apr 2013 11:58:55 +0200
Paul de Weerd we...@weirdnet.nl wrote:
 
 | Where has the remaining diskspace gone?
 
 Nowhere.  How did you see the '1000GB' on the FAT filesystem ? 

Using df -H on PCBSD 9.1.
I experimented with several other filesystems on this
disk. IIRC, I issued the following commands in PCBSD to construct a
FAT32 fs, where the device was recognized as da0:

% fdisk -I /dev/da0
% newfs_msdos -F 32 /dev/da0s1

The FreeBSD man page df(1) clearly states that -H uses base 10 for
sizes, which caused my confusion.

Thanks!



Re: Canon Pixma MP230 printer support

2013-04-09 Thread Erwin Geerdink
On Mon, 08 Apr 2013 20:08:16 -0400
Predrag Punosevac punoseva...@gmail.com wrote:

 Antoine Jacoutot wrote:
 On Mon, Apr 08, 2013 at 09:10:18PM +0200, Erwin Geerdink wrote:
  Hi,
  
  Recently I obtained a Canon Pixma MP230 printer/scanner which I
  can't get to work on my OpenBSD box. OpenBSD recognizes the device
  (w/
 kernel
  ulpt device disabled), however:
  
  - There is no cups/foomatic driver for this specific model. I tried
  the MP220 and MP240 ppd drivers but they don't work (the device
  indicator light blinks twice, which means 'no paper in tray', which
  is obviously not the case)
  
  - Canon provides IJ printer drivers for Linux (source). Simply
  using the included ppd file results in an error: File
  /usr/local/libexec/cups/filter/pstocanonij not available: No such
  file or directory
  Clearly, the linux drivers need to be built but this also results
  in errors. Unfortunately, I do not have the programming/porting
  skills to solve this problem.
  
  Does anyone know how to get this device work?
 
 Canon is one of the worst brand when it comes to opensource.
 pstocanonij might just be a wrapper which you can get from a linux
 rpm and tweak to \
 make it work (I had luck doing that using some linux driver for
 unsupported Brother \
 printers) -- or it might just be a linux-only binary blob in which
 case, there's not \
 much hope.
 
 When it comes to printing/scanning, I would get the hell away from
 Canon and Brother \
 -- there are the worst by far. They support Linux the same way NVidia
 does for its \
 graphic chips...
 
 You just got the answer from the man who is responsible for the fact
 that OpenBSD has up-to-date port of sane-backends, foomatic-filters,
 hplip, and pretty much any opensource printer driver under the Sun.
 Together with people like Matthias Kilian who is maintainer of the
 Ghostscript and slue of other useful desktop related ports, former
 developer Jacob Meuser who has disappeared from this mailing list few
 years ago (Jake I hope you are OK where ever you are now. We remember
 when you ported Ghostscript to OpenBSD) they managed to enable OpenBSD
 to work with pretty much any common desktop related hardware.
 
 However, I do believe that we as users owe them to educate ourself
 about the thins as PostScript, Printer Command Language(PCL), LPD
 protocol, IPP protocol and similar things.
 
 You will do a great favor to yourself if you get a decent printer
 which speaks PostScript or at least (PCL5) or some of network
 protocols. The same goes for a scanner that can scan directly to a
 USB or SD card and requires no drivers or just a really good Epson
 scanner.
 
 As of Canon Pixma series it is probably not worthy time it took me to
 write this e-mail. I can't speak of Canon but as of Brother I can say
 that their better laser printers (HL-5450DN and above) are excellent
 and can be just plugged and used on the OpenBSD (they speak
 PostScript, PCL5 or some of network protocols). However, I am
 avoiding them as they have relative higher price per page than Xerox
 or DeLL(rebranded Lexmark) printers which I use. They also use more
 electricity.
 
 I do not know your location but in the U.S. you can buy a decent used
 DeLL/Lexmark printer with less than 2000 pages on the drum for less
 than $50. 
 
 Best,
 Predrag
 

Thank you very much for your responses. Indeed, this printer
wouldn't be my pick either (got it for free) but it's all I have for
now.

SANE's latest version should support the scanner using the sane-pixma
backend, according to their website. I will try this when Openbsd 5.3 is
released. As for the printer, I probably stick to dual-booting if no
workaround exists.

Erwin



Canon Pixma MP230 printer support

2013-04-08 Thread Erwin Geerdink
Hi,

Recently I obtained a Canon Pixma MP230 printer/scanner which I can't
get to work on my OpenBSD box. OpenBSD recognizes the device (w/ kernel
ulpt device disabled), however:

- There is no cups/foomatic driver for this specific model. I tried
  the MP220 and MP240 ppd drivers but they don't work (the device
  indicator light blinks twice, which means 'no paper in tray', which
  is obviously not the case)

- Canon provides IJ printer drivers for Linux (source). Simply using
  the included ppd file results in an error: File
  /usr/local/libexec/cups/filter/pstocanonij not available: No such
  file or directory
  Clearly, the linux drivers need to be built but this also results in
  errors. Unfortunately, I do not have the programming/porting
  skills to solve this problem.

Does anyone know how to get this device work?

dmesg:
OpenBSD 5.2 (GENERIC.MP) #368: Wed Aug  1 10:04:49 MDT 2012
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2011496448 (1918MB)
avail mem = 1935638528 (1845MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0e20 (19 entries)
bios0: vendor Hewlett-Packard version F.07 date 08/09/2007
bios0: Hewlett-Packard 30D1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA SRAT SSDT MCFG HPET APIC BOOT SLIC
acpi0: wakeup devices PCI0(S5) USB0(S0) USB2(S0) Z017(S0) Z018(S0)
MAC0(S5) P2P0(S5) XVR0(S5) XVR1(S5) XVR3(S5) XVR4(S5) XVR5(S5) XVR6(S5) 
KBC0(S3) MSE0(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0 addr 0xe000, bus 0-4
acpihpet0 at acpi0: 2500 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55, 1800.47 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,3DNOWP
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 256KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully
associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully
associative
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55, 1800.17 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,3DNOWP
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 256KB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully
associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully
associative
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (P2P0)
acpiprt2 at acpi0: bus -1 (XVR0)
acpiprt3 at acpi0: bus 4 (XVR1)
acpiprt4 at acpi0: bus 3 (XVR2)
acpiprt5 at acpi0: bus -1 (XVR3)
acpiprt6 at acpi0: bus -1 (XVR4)
acpiprt7 at acpi0: bus -1 (XVR5)
acpiprt8 at acpi0: bus -1 (XVR6)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, PSS
acpicpu1 at acpi0: PSS
acpitz0 at acpi0acpitz0: THRM: failed to read _CRT
: no critical temperature defined
acpibtn0 at acpi0: SLPB
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 not present
acpibtn1 at acpi0: LID_
acpibtn2 at acpi0: PWRB
acpivideo0 at acpi0: UVGA
acpivout0 at acpivideo0: LCD_
cpu0: PowerNow! K8 1800 MHz: speeds: 1800 1600 800 MHz
pci0 at mainbus0 bus 0
NVIDIA MCP67 Memory rev 0xa2 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 NVIDIA MCP67 ISA rev 0xa2
nviic0 at pci0 dev 1 function 1 NVIDIA MCP67 SMBus rev 0xa2
iic0 at nviic0
iic1 at nviic0
spdmem0 at iic1 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
spdmem1 at iic1 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
NVIDIA MCP67 Memory rev 0xa2 at pci0 dev 1 function 2 not configured
NVIDIA MCP67 Co-processor rev 0xa2 at pci0 dev 1 function 3 not
configured
ohci0 at pci0 dev 2 function 0 NVIDIA MCP67 USB rev 0xa2: apic 2 int
11, version 1.0, legacy support
ehci0 at pci0 dev 2 function 1 NVIDIA MCP67 USB rev 0xa2: apic 2 int 7
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 NVIDIA EHCI root hub rev 2.00/1.00 addr 1
ohci1 at pci0 dev 4 function 0 NVIDIA MCP67 USB rev 0xa2: apic 2 int
5, version 1.0, legacy support
ehci1 at pci0 dev 4 function 1 NVIDIA MCP67 USB rev 0xa2: apic 2 int
10
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 NVIDIA EHCI root hub rev 2.00/1.00 addr 1
pciide0 at pci0 dev 6 function 0 NVIDIA MCP67 IDE rev 0xa1: DMA,
channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: MATSHITA, DVD-RAM UJ-861H, 1.50 ATAPI
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
azalia0 at pci0 dev 7 

Re: Logitech Webcam Support

2013-03-07 Thread Erwin Geerdink
On Thu, 7 Mar 2013 13:32:59 +
James Griffin j...@kontrol.kode5.net wrote:

 Hi
 
 My desktop is a Lenovo Think centre, and i' stuck a logitech hd 720p
 webcam in it. I wondered if anyone has had success with these - do
 they work on OpenBSD and what packages might I need/consider to use
 it.
 
 I ran sudo fw_update and it installed uvideo-firmware-1.2p0. The
 webcam has a built-in microphone, would that work as well? I haven't
 tried using a webcam on OpenBSD to-date so just thought i'd ask here
 about others' experiences with this.
 
 Cheers, Jamie
 

I have a Logitech C270 (HD 720p), video works fine with the uvideo
driver. I did not test the built-in microphone though

-- 
Met vriendelijke groet,

Erwin Geerdink