If anyone has played with nginx + php-fpm, they may have run into the
"No input file specified" problem. Google will show dozens of pages
explaining what the problem is and how to fix it. Been there, spent
last weekend doing it.
After too much frustration, I tried the exact same nginx config with
php-fastcgi-5.3, and it worked like a charm. Maybe one day I'll go back
to figure out what I was doing wrong with php-fpm, but for now, the
'regular' fastcgi will do.
Until it silently died. To keep this story short, I'll leave it at:
yes, it likes to silently die on its own once or twice a day for no
apparent reason. I figured I'd go back to trying php-fpm.
I'll post copies of my nginx.conf, fastcgi_params, php-fpm.conf and
dmesg below, but the more interesting part is the kdump I got from
ktrace'ing php-fpm. The server is OpenBSD 5.1/i386 built from sources
obtained a few days before the shift to 5.1-current.
I'll post the full output below, but here's the relevant couple of bits
to my simple eyes. Here's where it gets the fastcgi params, and they
look sane to me:
23595 php-fpm-5.3 GIO fd 5 read 888 bytes
"\f\0QUERY_STRING\^N\^CREQUEST_METHODGET\f\0CONTENT_TYPE\^N\0CONTENT_LENGTH\v\^RSCRIPT_NAME/who_is_online.php\v\
\^RREQUEST_URI/who_is_online.php\f\^RDOCUMENT_URI/who_is_online.php\r\^ODOCUMENT_ROOT/var/nginx/html\^O\bSERVE\
R_PROTOCOLHTTP/1.1\^Q\aGATEWAY_INTERFACECGI/1.1\^O\fSERVER_SOFTWAREnginx/1.0.11\v\vREMOTE_ADDR192.168.1.5\v\^E\
REMOTE_PORT39331\v\vSERVER_ADDR172.16.1.10\v\^CSERVER_PORT443\v\^QSERVER_NAMEwww.blackstaff.ca\^O\^CREDIRECT_S\
TATUS200\^O!SCRIPT_FILENAME/var/nginx/html/who_is_online.php
\^QHTTP_HOSTwww.blackstaff.ca\^OGHTTP_USER_AGE\
NTMozilla/5.0 (X11; OpenBSD amd64; rv:9.0.1) Gecko/20100101
Firefox/9.0.1\v?HTTP_ACCEPTtext/html,application/x\
html+xml,application/xml;q=0.9,*/*;q=0.8\^T\^NHTTP_ACCEPT_LANGUAGEen-us,en;q=0.5\^T\rHTTP_ACCEPT_ENCODINGgzip,\
deflate\^S\^^HTTP_ACCEPT_CHARSETISO-8859-1,utf-8;q=0.7,*;q=0.7\b\^AHTTP_DNT1\^O
HTTP_CONNECTIONkeep-alive\f*HTTP_REFERERhttps://www.blackstaff.ca/admin_reauth.php\^R
HTTP_CACHE_CONTROLmax-\
age=0\0\0"
And here's where it can't find the file:
23595 php-fpm-5.3 GIO fd 2 wrote 100 bytes
"ERROR: Unable to open primary script:
/var/nginx/html/who_is_online.php (No such file or directory)
"
23595 php-fpm-5.3 RET write 100/0x64
(it doesn't matter whether the file is who_is_online.php, index.php or
any other file.)
Really, the file exists, and the directory/file permissions are fine.
It worked just a moment before with php-fastcgi, just not with php-fpm.
Normally, they look like this:
# ls -l /var/nginx/html/who_is_online.php
-rw-r----- 1 scott _nginx 149 Feb 27 18:44
/var/nginx/html/who_is_online.php
The php-fpm process was running as _nginx, which I confirmed with ps -aux.
Just on the off chance it _is_ file perms, I set everything from
/var/nginx to who_is_online.php owned _nginx:_nginx and chmod 777.
Anyone could read or even modify the file.
Still no dice, and I tried the same with index.php, and on my dev site
at /var/nginx.dev, all with the same results.
This problem is a real mystery to me, and I'm hoping I didn't miss
something crazy-simple. Can anyone explain it?
nginx was built from ports:
nginx version: nginx/1.0.11
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx
--conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx
--pid-path=/var/run/nginx.pid --lock-path=/var/nginx/tmp/nginx.lock
--http-client-body-temp-path=/var/nginx/tmp/client_body_temp
--http-proxy-temp-path=/var/nginx/tmp/proxy_temp
--http-fastcgi-temp-path=/var/nginx/tmp/fastcgi_temp
--http-scgi-temp-path=/var/nginx/tmp/scgi_temp
--http-uwsgi-temp-path=/var/nginx/tmp/uwsgi_temp
--http-log-path=/var/log/nginx/access.log
--error-log-path=/var/log/nginx/error.log --user=_nginx --group=_nginx
--with-http_gzip_static_module --with-http_ssl_module
--with-http_stub_status_module --with-http_mp4_module --with-mail
--with-mail_ssl_module --with-ipv6
php is 5.3.10:
# pkg_info -q |grep php
php-5.3.10
php-bz2-5.3.10
php-curl-5.3.10
php-fastcgi-5.3.10
php-fpm-5.3.10
php-gmp-5.3.10
php-mcrypt-5.3.10
php-pgsql-5.3.10
Here's the kdump of a ktrace -d from watching one of the worker
processes. It was idle until I refreshed the browser page, and this is
what it said:
<snip>
23595 php-fpm-5.3 RET poll 1
23595 php-fpm-5.3 CALL gettimeofday(715710552,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL accept(0,-809783136,-809783140)
23595 php-fpm-5.3 STRU struct sockaddr { AF_INET, 127.0.0.1:28040 }
23595 php-fpm-5.3 RET accept 5
23595 php-fpm-5.3 CALL fcntl(5,F_GETFL,0)
23595 php-fpm-5.3 RET fcntl 6
23595 php-fpm-5.3 CALL gettimeofday(-809783288,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL gettimeofday(-809783368,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL getrusage(0,-809783444)
23595 php-fpm-5.3 RET getrusage 0
23595 php-fpm-5.3 CALL getrusage(-1,-809783444)
23595 php-fpm-5.3 RET getrusage 0
23595 php-fpm-5.3 CALL gettimeofday(-809783372,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL gettimeofday(715710552,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL poll(-809783164,1,0)
23595 php-fpm-5.3 RET poll 0
23595 php-fpm-5.3 CALL poll(-1957154816,1,0)
23595 php-fpm-5.3 RET poll 0
23595 php-fpm-5.3 CALL poll(-1957154816,2,5000)
23595 php-fpm-5.3 RET poll 1
23595 php-fpm-5.3 CALL gettimeofday(715710552,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL read(5,-809783164,8)
23595 php-fpm-5.3 GIO fd 5 read 8 bytes
"\^A\^A\0\^A\0\b\0\0"
23595 php-fpm-5.3 RET read 8
23595 php-fpm-5.3 CALL read(5,-809783136,8)
23595 php-fpm-5.3 GIO fd 5 read 8 bytes
"\0\^A\0\0\0\0\0\0"
23595 php-fpm-5.3 RET read 8
23595 php-fpm-5.3 CALL read(5,-809783164,8)
23595 php-fpm-5.3 GIO fd 5 read 8 bytes
"\^A\^D\0\^A\^Cv\^B\0"
23595 php-fpm-5.3 RET read 8
23595 php-fpm-5.3 CALL read(5,-809783136,888)
23595 php-fpm-5.3 GIO fd 5 read 888 bytes
"\f\0QUERY_STRING\^N\^CREQUEST_METHODGET\f\0CONTENT_TYPE\^N\0CONTENT_LENGTH\v\^RSCRIPT_NAME/who_is_online.php\v\
\^RREQUEST_URI/who_is_online.php\f\^RDOCUMENT_URI/who_is_online.php\r\^ODOCUMENT_ROOT/var/nginx/html\^O\bSERVE\
R_PROTOCOLHTTP/1.1\^Q\aGATEWAY_INTERFACECGI/1.1\^O\fSERVER_SOFTWAREnginx/1.0.11\v\vREMOTE_ADDR192.168.1.5\v\^E\
REMOTE_PORT39331\v\vSERVER_ADDR172.16.1.10\v\^CSERVER_PORT443\v\^QSERVER_NAMEwww.blackstaff.ca\^O\^CREDIRECT_S\
TATUS200\^O!SCRIPT_FILENAME/var/nginx/html/who_is_online.php
\^QHTTP_HOSTwww.blackstaff.ca\^OGHTTP_USER_AGE\
NTMozilla/5.0 (X11; OpenBSD amd64; rv:9.0.1) Gecko/20100101
Firefox/9.0.1\v?HTTP_ACCEPTtext/html,application/x\
html+xml,application/xml;q=0.9,*/*;q=0.8\^T\^NHTTP_ACCEPT_LANGUAGEen-us,en;q=0.5\^T\rHTTP_ACCEPT_ENCODINGgzip,\
deflate\^S\^^HTTP_ACCEPT_CHARSETISO-8859-1,utf-8;q=0.7,*;q=0.7\b\^AHTTP_DNT1\^O
HTTP_CONNECTIONkeep-alive\f*HTTP_REFERERhttps://www.blackstaff.ca/admin_reauth.php\^R
HTTP_CACHE_CONTROLmax-\
age=0\0\0"
23595 php-fpm-5.3 RET read 888/0x378
23595 php-fpm-5.3 CALL read(5,-809783164,8)
23595 php-fpm-5.3 GIO fd 5 read 8 bytes
"\^A\^D\0\^A\0\0\0\0"
23595 php-fpm-5.3 RET read 8
23595 php-fpm-5.3 CALL gettimeofday(-809717596,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL
mmap(0,262144,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,-1,0)
23595 php-fpm-5.3 RET mmap -2048655360/0x85e40000
23595 php-fpm-5.3 CALL gettimeofday(-809717896,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL stat(-809718888,-809719060)
23595 php-fpm-5.3 NAMI "/var/nginx/html/.user.ini"
23595 php-fpm-5.3 RET stat -1 errno 2 No such file or directory
23595 php-fpm-5.3 CALL setitimer(2,-809717696,0)
23595 php-fpm-5.3 RET setitimer 0
23595 php-fpm-5.3 CALL gettimeofday(-809722744,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL lstat(-809722360,-809722572)
23595 php-fpm-5.3 NAMI "/var/nginx/html/who_is_online.php"
23595 php-fpm-5.3 RET lstat -1 errno 2 No such file or directory
23595 php-fpm-5.3 CALL issetugid()
23595 php-fpm-5.3 RET issetugid 0
23595 php-fpm-5.3 CALL open(-809718760,0<O_RDONLY>,<unused>0)
23595 php-fpm-5.3 NAMI "/usr/share/nls/C/libc.cat"
23595 php-fpm-5.3 RET open -1 errno 2 No such file or directory
23595 php-fpm-5.3 CALL open(-809718760,0<O_RDONLY>,<unused>0)
23595 php-fpm-5.3 NAMI "/usr/share/nls/libc/C"
23595 php-fpm-5.3 RET open -1 errno 2 No such file or directory
23595 php-fpm-5.3 CALL write(2,-809718616,100)
23595 php-fpm-5.3 GIO fd 2 wrote 100 bytes
"ERROR: Unable to open primary script:
/var/nginx/html/who_is_online.php (No such file or directory)
"
23595 php-fpm-5.3 RET write 100/0x64
23595 php-fpm-5.3 CALL gettimeofday(-809717596,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL getrusage(0,-809717748)
23595 php-fpm-5.3 RET getrusage 0
23595 php-fpm-5.3 CALL getrusage(-1,-809717748)
23595 php-fpm-5.3 RET getrusage 0
23595 php-fpm-5.3 CALL gettimeofday(-809717676,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL write(5,-809717056,104)
23595 php-fpm-5.3 GIO fd 5 wrote 104 bytes
"\^A\^F\0\^A\0K\^E\0Status: 404 Not Found\r
Content-type: text/html\r
\r
No input file specified.
\0\0\0\0\0\^A\^C\0\^A\0\b\0\0\0\0\0\0\0\0\0\0"
23595 php-fpm-5.3 RET write 104/0x68
23595 php-fpm-5.3 CALL shutdown(5,1)
23595 php-fpm-5.3 RET shutdown 0
23595 php-fpm-5.3 CALL recvfrom(5,-809721808,8,0,0,0)
23595 php-fpm-5.3 GIO fd 5 read 8 bytes
"\^A\^E\0\^A\0\0\0\0"
23595 php-fpm-5.3 RET recvfrom 8
23595 php-fpm-5.3 CALL recvfrom(5,-809721808,8,0,0,0)
23595 php-fpm-5.3 RET recvfrom -1 errno 35 Resource temporarily
unavailable
23595 php-fpm-5.3 CALL
getsockopt(5,SOL_SOCKET,SO_RCVTIMEO,-809721968,-809721960)
23595 php-fpm-5.3 RET getsockopt 0
23595 php-fpm-5.3 CALL poll(-1957154816,1,0)
23595 php-fpm-5.3 RET poll 0
23595 php-fpm-5.3 CALL poll(-1957154816,2,-1)
23595 php-fpm-5.3 RET poll 1
23595 php-fpm-5.3 CALL gettimeofday(715710552,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL recvfrom(5,-809721808,8,0,0,0)
23595 php-fpm-5.3 RET recvfrom 0
23595 php-fpm-5.3 CALL fstat(5,-809722036)
23595 php-fpm-5.3 STRU struct stat {dev=0, ino=0, mode=s--------- ,
nlink=0, uid=0, gid=0, rdev=0, atime=0, stime=0, ctime=0, size=0,
blocks=0, blksize=32744, flags=0x0, gen=0x0 }
23595 php-fpm-5.3 RET fstat 0
23595 php-fpm-5.3 CALL close(5)
23595 php-fpm-5.3 RET close 0
23595 php-fpm-5.3 CALL gettimeofday(-809721860,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL munmap(-2048655360,262144)
23595 php-fpm-5.3 RET munmap 0
23595 php-fpm-5.3 CALL open(1006991234,0<O_RDONLY>,<unused>0)
23595 php-fpm-5.3 NAMI "/dev/urandom"
23595 php-fpm-5.3 RET open -1 errno 2 No such file or directory
23595 php-fpm-5.3 CALL gettimeofday(-809717880,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL getpid()
23595 php-fpm-5.3 RET getpid 23595/0x5c2b
23595 php-fpm-5.3 CALL open(1006991234,0<O_RDONLY>,<unused>0)
23595 php-fpm-5.3 NAMI "/dev/urandom"
23595 php-fpm-5.3 RET open -1 errno 2 No such file or directory
23595 php-fpm-5.3 CALL gettimeofday(-809717880,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL getpid()
23595 php-fpm-5.3 RET getpid 23595/0x5c2b
23595 php-fpm-5.3 CALL setitimer(2,-809717692,0)
23595 php-fpm-5.3 RET setitimer 0
23595 php-fpm-5.3 CALL gettimeofday(-809783284,0)
23595 php-fpm-5.3 RET gettimeofday 0
23595 php-fpm-5.3 CALL accept(0,-809783136,-809783140)
23595 php-fpm-5.3 RET accept -1 errno 35 Resource temporarily
unavailable
23595 php-fpm-5.3 CALL poll(-1957154816,1,0)
23595 php-fpm-5.3 RET poll 0
23595 php-fpm-5.3 CALL poll(-1957154816,2,-1)
</snip>
and that's all it had to say.
This is a mildly snipped nginx.conf that works perfectly fine:
<snip>
user _nginx;
worker_processes 5;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local]
"$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
sendfile on;
keepalive_timeout 60;
msie_refresh on;
server_tokens off;
gzip on;
index index.php;
error_page 403 /error403.php;
error_page 404 /error404.php;
server {
server_name www.blackstaff.ca blackstaff.ca www;
listen 172.16.1.10:80 default_server;
listen 172.16.1.10:443 ssl default_server;
root /var/nginx/html;
access_log /var/log/nginx/www.access.log main;
error_log /var/log/nginx/www.error.log;
location ~ \.php$ {
include fastcgi_params;
fastcgi_index index.php;
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
}
location /icons/ {
alias /var/nginx/icons/;
}
}
}
</snip>
and fastcgi_params:
<snip>
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
# Added:
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
</snip>
I stuck with the default php-fpm.conf file, except changing the
user:group to _nginx and the chroot dir, so I'll just post a diff:
<snip>
# diff php-fpm.conf php-fpm.conf.dist
132,135c132,133
< ;user = www
< ;group = www
< user = _nginx
< group = _nginx
---
> user = www
> group = www
442,443c440
< ;chroot = /var/www
< chroot = /var/nginx
---
> chroot = /var/www
</snip>
Almost forgot the dmesg. This is from source where I don't believe
there were any significant changes between my CVS and the move to
5.1-current.
OpenBSD 5.1 (GENERIC) #1: Thu Feb 9 06:59:45 EST 2012
r...@hellgate.blackstaff.ca:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 2.80GHz ("GenuineIntel" 686-class) 2.80 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,CNXT-ID,xTPR
real mem = 1071640576 (1021MB)
avail mem = 1044013056 (995MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/07/04, BIOS32 rev. 0 @ 0xfd71c,
SMBIOS rev. 2.31 @ 0xef7d0 (57 entries)
bios0: vendor IBM version "2AKT40AUS" date 06/07/2004
bios0: IBM 8193E1U
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP TCPA APIC BOOT
acpi0: wakeup devices USB1(S3) USB2(S3) USB3(S3) USB4(S3) USBE(S3)
SLOT(S5) KBC_(S3) COMA(S5) COMB(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 133MHz
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (SLOT)
acpiprt2 at acpi0: bus -1 (AGP_)
acpicpu0 at acpi0
acpitz0 at acpi0: critical temperature is 90 degC
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc0000/0xa600 0xca800/0x1000 0xcb800/0x1000
0xe0000/0x10000!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82865G Host" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel 82865G Video" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xf0000000, size 0x8000000
inteldrm0 at vga1: apic 1 int 16
drm0 at inteldrm0
uhci0 at pci0 dev 29 function 0 "Intel 82801EB/ER USB" rev 0x02: apic 1
int 16
uhci1 at pci0 dev 29 function 1 "Intel 82801EB/ER USB" rev 0x02: apic 1
int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801EB/ER USB" rev 0x02: apic 1
int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801EB/ER USB" rev 0x02: apic 1
int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801EB/ER USB2" rev 0x02: apic 1
int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb0 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xc2
pci1 at ppb0 bus 3
fxp0 at pci1 dev 8 function 0 "Intel PRO/100 VE" rev 0x02, i82562: apic
1 int 20, address 00:0d:60:d2:48:6c
inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0
xl0 at pci1 dev 9 function 0 "3Com 3c905B 100Base-TX" rev 0x30: apic 1
int 21, address 00:01:02:60:4d:ed
exphy0 at xl0 phy 24: 3Com internal media interface
skc0 at pci1 dev 10 function 0 "D-Link DGE-530T B1" rev 0x11, Yukon Lite
(0x9): apic 1 int 22
sk0 at skc0 port A: address 00:24:01:00:27:08
eephy0 at sk0 phy 0: 88E1011 Gigabit PHY, rev. 5
ichpcib0 at pci0 dev 31 function 0 "Intel 82801EB/ER LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801EB/ER IDE" rev 0x02: DMA,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC WD400BB-23DEA0>
wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, CD-ROM GCR-8482B, 1.03> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
pciide1 at pci0 dev 31 function 2 "Intel 82801EB SATA" rev 0x02: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 18 for native-PCI interrupt
wd1 at pciide1 channel 0 drive 0: <WDC WD400BD-08LRA0>
wd1: 16-sector PIO, LBA48, 38162MB, 78156288 sectors
wd1(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 82801EB/ER SMBus" rev 0x02:
apic 1 int 17
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 256MB DDR SDRAM non-parity PC2700CL2.5
spdmem1 at iic0 addr 0x51: 256MB DDR SDRAM non-parity PC2700CL2.5
spdmem2 at iic0 addr 0x52: 256MB DDR SDRAM non-parity PC3200CL2.5
spdmem3 at iic0 addr 0x53: 256MB DDR SDRAM non-parity PC3200CL2.5
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: density unknown
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
sd0 at scsibus2 targ 1 lun 0: <OPENBSD, SR RAID 1, 005> SCSI2 0/direct fixed
sd0: 36985MB, 512 bytes/sector, 75745947 sectors
root on wd0a (383cb6009c765d64.a) swap on wd0b dump on wd0b
---
Scott McEachern