Re: kqemu in 5.1

2012-05-04 Thread Peter Ericson
Could there be a KVM for OpenBSD? I have been wondering for a while if the
answer is an absolute no because it could never be trustworthy enough, not
likely to happen because of lack of interest, or somewhere in between.

Peter Ericson

On 04/05/2012, at 8:28 PM, Weldon Goree wel...@b.rontosaur.us wrote:

 On 05/04/12 06:12, Jes wrote:
 Hi all:

 I can't find kqemu between snapshots packages, ports, or even in 5.1
 packages. I think I've read something about kqemu is deprecated in
 newer versions of qemu (1.0.1) Is this correct? Because performance
 without kqemu is horrible. Any solution?



 Yes, it was killed upstream since Linux now comes with its own hypervisor
(KVM).

 AFAIK OpenBSD currently does not have a working hypervisor since it also
can't be dom0 on xen until such time as xen stops randomly overwriting
register contents at unpredictable times.

 So, as of now, any virtualization will have to be of the plain qemu or bochs
variety. Sorry.

 Best,
 Weldon



bringing degraded softraid back online

2011-10-01 Thread Peter Ericson
Hi all,

I'm running 4.9 release with 2x usb hard drives in a softraid raid1 setup.

Both drives lost power so both volumes are degraded:

softraid0: trying to bring up sd3 degraded
softraid0: sd3 offline, will not be brought online

running the following doesn't fix the problem, I just get the same message as 
above
bioctl -c 1 -l /dev/sd1a,/dev/sd2a softraid0

The data isn't all that important but I would like to get it back - I don't 
have a secondary backup.

Is there anyway to say force one volume back online so I can do a rebuild on 
the other?

Finally, as much as I like openbsd's softraid am I better off just doing a 
nightly rsync between the drives for redundancy.

Thanks,

Peter



Re: TOSHIBA Portege R600/R700 ACPI suspend not working

2011-04-01 Thread Peter Ericson
On Thu, Mar 31, 2011 at 05:43:32PM -0600, Theo de Raadt wrote:
 Can you refine when this happen?
 
 if need be, sthen@ can supply you with daily kernels so that you can refine 
 when it happened.
 Hopefully you don't hit some userland:kernel compatibility issue too hard 
 when you try to
 find it... but it would be very helpful.

I tested 4.8-release kernel on 4.9-current userland (luckily apmd and
zzz work), on the R600 suspend/resume works just fine, on the R700
suspend appears to work but the machine resets itself when I press the
power button to resume.

I got lucky and found that building the kernel with /usr/src/sys
updated to 19 Aug 2010 introduces the change in behaviour, 18 Aug was
fine (note: localised dates?).

I had a look at the diff between 18th/19th and I think it might be
this commit:
http://marc.info/?l=openbsd-cvsm=128207276025618

Hope this helps, it would be great to have the R600 working again and
maybe closer to finding a solution for the R700 aswell.

Regards,

-- 
Peter Ericson



TOSHIBA Portege R600/R700 ACPI suspend not working

2011-03-31 Thread Peter Ericson
 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: SD/MMC, Drive #01,  SCSI2 0/direct fixed
sd0: 1876MB, 512 bytes/sec, 3842048 sec total
uhub2 at uhub0 port 1 Intel Rate Matching Hub rev 2.00/0.00 addr 2
uvideo0 at uhub2 port 4 configuration 1 interface 0 Realtek 2SF001 rev 
2.00/12.13 addr 3
video0 at uvideo0
uhub3 at uhub1 port 1 Intel Rate Matching Hub rev 2.00/0.00 addr 2
umass0 at uhub3 port 5 configuration 1 interface 0 TOSHIBA Optical Drive 
Controller rev 2.00/0.00 addr 3
umass0: using ATAPI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
cd0 at scsibus1 targ 1 lun 0: MATSHITA, DVD-RAM UJ-844S, 1.30 ATAPI 5/cdrom 
removable
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
root on wd0a swap on wd0b dump on wd0b

-- 
Peter Ericson



Re: TOSHIBA PORTEGE R600

2009-11-24 Thread Peter Ericson
On Mon, Nov 23, 2009 at 09:42:49PM -0500, Nick Guenther wrote:
 Funny you should ask. I have an R500 and it works fine, excepting the
 lack of ACPI support of course. The Fn-Mute key combo even works right
 away, no configuring needed (magic!). It's super flimsy though, I've
 had it's optical drive repaired twice and the DC in has come loose and
 I'm terrified of bumping the screen (it's 4mm thick). It's not the
 worst laptop I've heard of as far as heat goes but it definitely gets
 up there--I can't really do CPU intensive things on it since it'll get
 up to 95degC and hover there really quick. Wifi is wpi(4) and except
 for one firmware glitch once, and sometimes things lagging out (seems
 to be correlated with heat) until I reset the card, I've never had any
 problems. I'm not sure how different the R600 is, though.

Hi Nick,

Thanks for the detailed reply, very helpful.

A work colleague used to fix these machines, he mentioned that you
might want to upgrade the bios to 1.6 which adds ACPI support, also
pre 1.6 the optical drive wouldn't park during emergency shutdowns
which might explain why you have had to repair yours.

Anyway thanks again, I'll probably go ahead and order the R600.  Maybe
I leave the cpu throttled if it gets too hot...

Regards,

Peter



TOSHIBA PORTEGE R600

2009-11-23 Thread Peter Ericson
Hi @misc

Apologies for the previous email, I tried to send a plain text email
from bigpond webmail and it stripped out the newlines.

Anyway, I'm thinking about buying an R600 to run current on, has
anyone had experience with this machine?


  Part Number   PPR61A-02200R ES5.0
  CPU   Intel. CoreTM2 Duo Processor ULV Su9400
(1.4GHz, 800mHz FSB, 3MB l2 cache)
mobile Intel. GS45 Express Chipset
  Video/GraphicsIntel. Graphics media Accelerator GS45
  Wireless Communications   Intel. 802.11 a/g/n, BluetoothTM V2.1 +
EDR, Built-in 3G HSPA
  BIOS  ACPI, PnP, VESA, DPmS, DDC, Sm BIOS, PCI,
BIOS support
  Audio Intel. High Definition Audio Sound
  Wired Communications  Intel. 1GBit Tx Ethernet + Active
management Technology (AmT) 4.0

Thanks in advance,

--
Peter Ericson



TOSHIBA PORTEGE R600

2009-11-23 Thread peter . ericson
Hi m...@i'm thinking of buying an R600 to run current on.Has anyone had any
experience with these machines?From the spec sheet:  Part Number
PPR61A-02200R ES5.0CPU
Intelreg; CoreTM2 Duo Processor ULV Su9400
(1.4GHz, 800mHz FSB, 3MB l2 cache)
mobile Intelreg; GS45 Express Chipset
Video/GraphicsIntelreg; Graphics media Accelerator GS45
Wireless Communications   Intelreg; 802.11 a/g/n, BluetoothTM V2.1 + EDR,
Built-in 3G HSPABIOS  ACPI, PnP, VESA, DPmS, DDC,
Sm BIOS, PCI, BIOS support   Audio Intelreg;
High Definition Audio Sound   Wired
Communications  Intelreg; 1GBit Tx Ethernet + Active management
Technology (AmT) 4.0  Thanks in advance,Peter Ericson



runaway httpd processes with mod_auth_bsd

2007-07-12 Thread Peter Ericson
?
[Fri Jul 13 15:43:35 2007] [debug] mod_auth_bsd.c(0): [client
172.16.4.59] [AuthBSD] Required group svn-pharmac == group
svn-pharmac?
[Fri Jul 13 15:43:35 2007] [debug] mod_auth_bsd.c(0): [client
172.16.4.59] [AuthBSD] Required group svn-pharmac == group ericson?
[Fri Jul 13 15:43:35 2007] [debug] mod_auth_bsd.c(0): [client
172.16.4.59] [AuthBSD] Required group svn-pharmac == group wheel?
[Fri Jul 13 15:43:35 2007] [debug] mod_auth_bsd.c(0): [client
172.16.4.59] [AuthBSD] Required group svn-pharmac == group
svn-pharmac?
[Fri Jul 13 15:43:45 2007] [debug] authd.c(0): [client 172.16.4.59]
[AuthBSD] Peer writing request
[Fri Jul 13 15:43:45 2007] [debug] authd.c(0): [AuthBSD] Auth cache
hit for user ericson
[Fri Jul 13 15:43:45 2007] [debug] authd.c(0): [client 172.16.4.59]
[AuthBSD] Peer wrote request
[Fri Jul 13 15:43:45 2007] [debug] authd.c(0): [client 172.16.4.59]
[AuthBSD] Peer read answer
[Fri Jul 13 15:43:49 2007] [debug] authd.c(0): [client 172.16.4.59]
[AuthBSD] Peer writing request
[Fri Jul 13 15:43:49 2007] [debug] authd.c(0): [AuthBSD] Auth cache
hit for user ericson
[Fri Jul 13 15:43:49 2007] [debug] authd.c(0): [client 172.16.4.59]
[AuthBSD] Peer wrote request

and here are the relevant parts of my httpd.conf:

...
MinSpareServers 15
MaxSpareServers 30
...
StartServers 15
...
MaxClients 150
...
LoadModule proxy_module /usr/lib/apache/modules/libproxy.so
LoadModule fastcgi_module /usr/lib/apache/modules/mod_fastcgi.so
LoadModule bsd_auth_module/usr/lib/apache/modules/mod_auth_bsd.so
...
AuthBSDGroup auth
Location ~ .*/props
   SSLRequireSSL
   AuthType Basic
   AuthName PHARMAC
   AuthBSD On
   Require group svn-pharmac
/Location

FastCgiServer cgi-bin/pharmac.py -processes 15 -listen-queue-depth 150
-idle-timeout 300 -flush

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/(props|.*/props) https://%{HTTP_HOST}/$1 [R,L]

RewriteCond %{HTTPS} !=on
RewriteRule ^/(~.*) https://%{HTTP_HOST}/$1 [R,L]

RewriteRule ^/~.* - [L]

RewriteRule ^/(icons|cgi-bin)/.* - [L]
RewriteRule ^/(.*) /cgi-bin/pharmac.py/$1 [PT]
...
UserDir /home/*/public_html
...
Directory /home/*/public_html
   SSLRequireSSL
   AuthType Basic
   AuthName PHARMAC
   AuthBSD On
   Require group svn-pharmac
   ...
/Directory
...
VirtualHost _default_:443

RewriteEngine On
RewriteRule ^/~.* - [L]
RewriteRule ^/(icons|cgi-bin)/.* - [L]
RewriteRule ^/(.*) /cgi-bin/pharmac.py/$1 [PT]
...


I have also upped my openfiles-cur to 1024 for daemon class in
/etc/login.conf (because I was getting Too many open files errors
from mod_auth_bsd during load testing)

This is my first post on misc@ so I hope I have included enough detail.

Thanks very much

--
Peter Ericson