On Thu, Jun 01, 2017 at 12:53:40AM +0200, Leo Unglaub wrote:
> Hey friends,
> the port "x11/mate/terminal" needs the port "itstool" as a dependency in
> order to build correctly.
>
> Here are the build logs:
> > checking for itstool... no
> > configure: error: itstool not found
> > *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2646 '/usr/ports/pobj/mate-terminal-1.18.1/.configure_done')
> > *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1892 '/usr/ports/packages/amd64/all/mate-terminal-1.18.1p0.tgz')
> > *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2391 '_internal-package')
> > *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2370 'package')
> > *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1909 '/var/db/pkg/mate-terminal-1.18.1p0/+CONTENTS')
> > *** Error 1 in /usr/ports/x11/mate/terminal (/usr/ports/infrastructure/mk/bsd.port.mk:2370 'install')
>
> When i install itstool the port gets build fine.
> Thanks and greetings
Fixed. Thanks for the report.
--
Antoine
Wednesday, May 31, 2017
[security] chicken-4.12.0p1
Hi,
Here is an fix for segfault in Chicken scheme which could cause denial of
service.
More details can be found on chicken mailing list:
https://lists.nongnu.org/archive/html/chicken-announce/2017-05/msg00000.html
Timo
Index: Makefile.inc
===================================================================
RCS file: /cvs/ports/lang/chicken/Makefile.inc,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile.inc
--- Makefile.inc 17 Mar 2017 23:40:47 -0000 1.11
+++ Makefile.inc 1 Jun 2017 03:36:42 -0000
@@ -3,7 +3,7 @@
COMMENT= practical and portable Scheme system
V= 4.12.0
-REVISION= 0
+REVISION= 1
DISTNAME= chicken-${V}
MAINTAINER= Timo Myyra <timo.myyra@wickedbsd.net>
Index: core/patches/patch-runtime_c
===================================================================
RCS file: core/patches/patch-runtime_c
diff -N core/patches/patch-runtime_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ core/patches/patch-runtime_c 1 Jun 2017 03:36:42 -0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+Fix segmentation fault in "length" on improper lists.
+
+Index: runtime.c
+--- runtime.c.orig
++++ runtime.c
+@@ -5372,7 +5372,7 @@ C_regparm C_word C_fcall C_i_length(C_word lst)
+ }
+ }
+
+- if(C_immediatep(slow) || C_block_header(lst) != C_PAIR_TAG)
++ if(C_immediatep(slow) || C_block_header(slow) != C_PAIR_TAG)
+ barf(C_NOT_A_PROPER_LIST_ERROR, "length", lst);
+
+ slow = C_u_i_cdr(slow);
Here is an fix for segfault in Chicken scheme which could cause denial of
service.
More details can be found on chicken mailing list:
https://lists.nongnu.org/archive/html/chicken-announce/2017-05/msg00000.html
Timo
Index: Makefile.inc
===================================================================
RCS file: /cvs/ports/lang/chicken/Makefile.inc,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile.inc
--- Makefile.inc 17 Mar 2017 23:40:47 -0000 1.11
+++ Makefile.inc 1 Jun 2017 03:36:42 -0000
@@ -3,7 +3,7 @@
COMMENT= practical and portable Scheme system
V= 4.12.0
-REVISION= 0
+REVISION= 1
DISTNAME= chicken-${V}
MAINTAINER= Timo Myyra <timo.myyra@wickedbsd.net>
Index: core/patches/patch-runtime_c
===================================================================
RCS file: core/patches/patch-runtime_c
diff -N core/patches/patch-runtime_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ core/patches/patch-runtime_c 1 Jun 2017 03:36:42 -0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+Fix segmentation fault in "length" on improper lists.
+
+Index: runtime.c
+--- runtime.c.orig
++++ runtime.c
+@@ -5372,7 +5372,7 @@ C_regparm C_word C_fcall C_i_length(C_word lst)
+ }
+ }
+
+- if(C_immediatep(slow) || C_block_header(lst) != C_PAIR_TAG)
++ if(C_immediatep(slow) || C_block_header(slow) != C_PAIR_TAG)
+ barf(C_NOT_A_PROPER_LIST_ERROR, "length", lst);
+
+ slow = C_u_i_cdr(slow);
HEADS UP: COMPILER (and clang report)
We now have a new mechanism for selecting C and/or C++ compilers in ports,
it's called (drum roll....) COMPILER.
This is probably the 4th iteration of wacky tries, the first 3 none of my
fellow porters understood I guess. This one is as simple as I could get it.
And it's documented in bsd.port.mk.
Simply put, ports requiring a C/C++ compiler that's not gcc 4.2.1 or more
ancient will set
COMPILER = gcc
or
COMPILER = clang
(or even both for very strange cases)
and get the C/C++ compiler from ports (either gcc 4.9 or ports/clang).
Exemption: if the base compiler is clang (officially only on aarch64
for now), it's deemed to be modern enough so it will be chosen.
By default, C and C++ are affected, but you can set
COMPILER_LANGS = c
instead to only get C (this changes build, run, wantlib depends according
to the needs of C++).
MODGCC4_ARCHS and MODCLANG_ARCHS can still be used to fine-tune that choice
(some cases require a specific compiler because of assembly).
In general, clang arches have zero choice, because the libc++ from base
does NOT mix at all with the libstdc++ used by both gcc and clang ports.
Most instances of gcc4 and clang modules for C, C++ have been converted
to COMPILER, including some stuff that doesn't yet build with base clang.
(but the number of problematic ports is steadily going down, though we
are now in the "difficult to fix area" where it takes longer to repair things.
it's called (drum roll....) COMPILER.
This is probably the 4th iteration of wacky tries, the first 3 none of my
fellow porters understood I guess. This one is as simple as I could get it.
And it's documented in bsd.port.mk.
Simply put, ports requiring a C/C++ compiler that's not gcc 4.2.1 or more
ancient will set
COMPILER = gcc
or
COMPILER = clang
(or even both for very strange cases)
and get the C/C++ compiler from ports (either gcc 4.9 or ports/clang).
Exemption: if the base compiler is clang (officially only on aarch64
for now), it's deemed to be modern enough so it will be chosen.
By default, C and C++ are affected, but you can set
COMPILER_LANGS = c
instead to only get C (this changes build, run, wantlib depends according
to the needs of C++).
MODGCC4_ARCHS and MODCLANG_ARCHS can still be used to fine-tune that choice
(some cases require a specific compiler because of assembly).
In general, clang arches have zero choice, because the libc++ from base
does NOT mix at all with the libstdc++ used by both gcc and clang ports.
Most instances of gcc4 and clang modules for C, C++ have been converted
to COMPILER, including some stuff that doesn't yet build with base clang.
(but the number of problematic ports is steadily going down, though we
are now in the "difficult to fix area" where it takes longer to repair things.
Re: clang luajit unwinding
On Wed, May 31, 2017 at 01:59:28PM -0400, Ted Unangst wrote:
> a little late to the party, but luajit is broken with clang because it needs
> special libunwind support or something. that's the story so far.
>
> anyway, looking closer at luajit I notice that "external" unwinding is only
> the default on amd64. i386 and others use internal unwinding. one can also
> disable unwinding by defining LJ_NO_UNWIND.
>
> anyway, that's what I did, and things seem to work fine. there's a long
> comment in src/lj_err.c that lays out the pros and cons of each approach,
> mostly less c++ compat. i personally don't much care, and if it only works on
> one architecture, I'd say it's questionable to rely on this feature.
>
> maybe we can live without unwind in luajit?
Libobjc2 is also broken for the exact same reason, and that kills gnustep.
FreeBSD doesn't have any patches for libobjc nor luajit, so I guess they
probably have unwinder support in base.
I'm going to do a temp build with LJ_NO_UNWIND anyway, just so that I can
see further fallout.
Some of the ports that require luajit also do heavy C++, so I think there's
no real way around it.
> a little late to the party, but luajit is broken with clang because it needs
> special libunwind support or something. that's the story so far.
>
> anyway, looking closer at luajit I notice that "external" unwinding is only
> the default on amd64. i386 and others use internal unwinding. one can also
> disable unwinding by defining LJ_NO_UNWIND.
>
> anyway, that's what I did, and things seem to work fine. there's a long
> comment in src/lj_err.c that lays out the pros and cons of each approach,
> mostly less c++ compat. i personally don't much care, and if it only works on
> one architecture, I'd say it's questionable to rely on this feature.
>
> maybe we can live without unwind in luajit?
Libobjc2 is also broken for the exact same reason, and that kills gnustep.
FreeBSD doesn't have any patches for libobjc nor luajit, so I guess they
probably have unwinder support in base.
I'm going to do a temp build with LJ_NO_UNWIND anyway, just so that I can
see further fallout.
Some of the ports that require luajit also do heavy C++, so I think there's
no real way around it.
x11/mate/terminal: missing build dependency
Hey friends,
the port "x11/mate/terminal" needs the port "itstool" as a dependency in
order to build correctly.
Here are the build logs:
> checking for itstool... no
> configure: error: itstool not found
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2646 '/usr/ports/pobj/mate-terminal-1.18.1/.configure_done')
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1892 '/usr/ports/packages/amd64/all/mate-terminal-1.18.1p0.tgz')
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2391 '_internal-package')
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2370 'package')
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1909 '/var/db/pkg/mate-terminal-1.18.1p0/+CONTENTS')
> *** Error 1 in /usr/ports/x11/mate/terminal (/usr/ports/infrastructure/mk/bsd.port.mk:2370 'install')
When i install itstool the port gets build fine.
Thanks and greetings
Leo
the port "x11/mate/terminal" needs the port "itstool" as a dependency in
order to build correctly.
Here are the build logs:
> checking for itstool... no
> configure: error: itstool not found
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2646 '/usr/ports/pobj/mate-terminal-1.18.1/.configure_done')
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1892 '/usr/ports/packages/amd64/all/mate-terminal-1.18.1p0.tgz')
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2391 '_internal-package')
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2370 'package')
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1909 '/var/db/pkg/mate-terminal-1.18.1p0/+CONTENTS')
> *** Error 1 in /usr/ports/x11/mate/terminal (/usr/ports/infrastructure/mk/bsd.port.mk:2370 'install')
When i install itstool the port gets build fine.
Thanks and greetings
Leo
Re: solidrun marvell macchiatobin
On 31.5.2017. 23:17, Patrick Wildt wrote:
> Are you following my Twitter or what? ;) I just posted a picture
> of that board, arrived on the doorsteps today. I'll be having a
> look.
perfect box for MP firewall :)
> Are you following my Twitter or what? ;) I just posted a picture
> of that board, arrived on the doorsteps today. I'll be having a
> look.
perfect box for MP firewall :)
Re: solidrun marvell macchiatobin
On Wed, May 31, 2017 at 09:19:31PM +0200, Hrvoje Popovski wrote:
> Hi arm gurus,
>
> does openbsd support solid-run marvell armada family boards?
>
> primary this little cute firewall :)
>
> https://www.solid-run.com/marvell-armada-family/armada-8040-community-board/
>
>
> if there are any interest in this box i'm willing to donate it for
> development ..
>
>
Are you following my Twitter or what? ;) I just posted a picture
of that board, arrived on the doorsteps today. I'll be having a
look.
Patrick
> Hi arm gurus,
>
> does openbsd support solid-run marvell armada family boards?
>
> primary this little cute firewall :)
>
> https://www.solid-run.com/marvell-armada-family/armada-8040-community-board/
>
>
> if there are any interest in this box i'm willing to donate it for
> development ..
>
>
Are you following my Twitter or what? ;) I just posted a picture
of that board, arrived on the doorsteps today. I'll be having a
look.
Patrick
Re: Blank screen after boot with Radeon HD 5450
On Wed, May 31, 2017 at 3:44 PM, Allan Streib <astreib@indiana.edu> wrote:
>> You may be able to get a higher resolution by decreasing the refresh rate:
>>
>> $ gtf 2560 1440 33
>>
>> # 2560x1440 @ 33.00 Hz (GTF) hsync: 48.44 kHz; pclk: 162.77 MHz
>> Modeline "2560x1440_33.00" 162.77 2560 2688 2960 3360 1440 1441
>> 1444 1468 -HSync +Vsync
>>
>> $ xrandr --newmode 2560x1440_33.00 162.77 2560 2688 2960 3360 1440
>> 1441 1444 1468 -HSync +Vsync
>> $ xrandr --addmode DVI-0 2560x1440_33.00
>> $ xrandr --output DVI-0 --mode 2560x1440_33.00
>
> Yes, that actually worked! I tried first at 50Hz and it did not, but
> 33Hz is working at 2560x1440 (but not in console however, I don't know
> how to specify a different mode there, if it's even possible).
DVI limits the clock frequency to 165 MHz (the first number on the
mode line). You may be able to go beyond that by using a DisplayPort
cable instead.
>> You may be able to get a higher resolution by decreasing the refresh rate:
>>
>> $ gtf 2560 1440 33
>>
>> # 2560x1440 @ 33.00 Hz (GTF) hsync: 48.44 kHz; pclk: 162.77 MHz
>> Modeline "2560x1440_33.00" 162.77 2560 2688 2960 3360 1440 1441
>> 1444 1468 -HSync +Vsync
>>
>> $ xrandr --newmode 2560x1440_33.00 162.77 2560 2688 2960 3360 1440
>> 1441 1444 1468 -HSync +Vsync
>> $ xrandr --addmode DVI-0 2560x1440_33.00
>> $ xrandr --output DVI-0 --mode 2560x1440_33.00
>
> Yes, that actually worked! I tried first at 50Hz and it did not, but
> 33Hz is working at 2560x1440 (but not in console however, I don't know
> how to specify a different mode there, if it's even possible).
DVI limits the clock frequency to 165 MHz (the first number on the
mode line). You may be able to go beyond that by using a DisplayPort
cable instead.
Re: Blank screen after boot with Radeon HD 5450
Sorry for the noise -- I hit send before I was finished formatting my
prior reply.
Maximilian Pichler <maxim.pichler@gmail.com> writes:
> If and when I get my hands on another monitor I'll definitely try it
> out. (Although ultimately it would be nice to get it working with this
> one, as it works fine under Linux. This is a Dell U2515H.)
Interesting, that's the same model I have.
> You may be able to get a higher resolution by decreasing the refresh rate:
>
> $ gtf 2560 1440 33
>
> # 2560x1440 @ 33.00 Hz (GTF) hsync: 48.44 kHz; pclk: 162.77 MHz
> Modeline "2560x1440_33.00" 162.77 2560 2688 2960 3360 1440 1441
> 1444 1468 -HSync +Vsync
>
> $ xrandr --newmode 2560x1440_33.00 162.77 2560 2688 2960 3360 1440
> 1441 1444 1468 -HSync +Vsync
> $ xrandr --addmode DVI-0 2560x1440_33.00
> $ xrandr --output DVI-0 --mode 2560x1440_33.00
Yes, that actually worked! I tried first at 50Hz and it did not, but
33Hz is working at 2560x1440 (but not in console however, I don't know
how to specify a different mode there, if it's even possible).
Thanks!
Allan
prior reply.
Maximilian Pichler <maxim.pichler@gmail.com> writes:
> If and when I get my hands on another monitor I'll definitely try it
> out. (Although ultimately it would be nice to get it working with this
> one, as it works fine under Linux. This is a Dell U2515H.)
Interesting, that's the same model I have.
> You may be able to get a higher resolution by decreasing the refresh rate:
>
> $ gtf 2560 1440 33
>
> # 2560x1440 @ 33.00 Hz (GTF) hsync: 48.44 kHz; pclk: 162.77 MHz
> Modeline "2560x1440_33.00" 162.77 2560 2688 2960 3360 1440 1441
> 1444 1468 -HSync +Vsync
>
> $ xrandr --newmode 2560x1440_33.00 162.77 2560 2688 2960 3360 1440
> 1441 1444 1468 -HSync +Vsync
> $ xrandr --addmode DVI-0 2560x1440_33.00
> $ xrandr --output DVI-0 --mode 2560x1440_33.00
Yes, that actually worked! I tried first at 50Hz and it did not, but
33Hz is working at 2560x1440 (but not in console however, I don't know
how to specify a different mode there, if it's even possible).
Thanks!
Allan
Re: Blank screen after boot with Radeon HD 5450
Maximilian Pichler <maxim.pichler@gmail.com> writes:
> If and when I get my hands on another monitor I'll definitely try it
> out. (Although ultimately it would be nice to get it working with this
> one, as it works fine under Linux. This is a Dell U2515H.)
Interesting, that's the same model I have.
You may be able to get a higher resolution by decreasing the refresh rate:
$ gtf 2560 1440 33
# 2560x1440 @ 33.00 Hz (GTF) hsync: 48.44 kHz; pclk: 162.77 MHz
Modeline "2560x1440_33.00" 162.77 2560 2688 2960 3360 1440 1441
1444 1468 -HSync +Vsync
$ xrandr --newmode 2560x1440_33.00 162.77 2560 2688 2960 3360 1440
1441 1444 1468 -HSync +Vsync
$ xrandr --addmode DVI-0 2560x1440_33.00
$ xrandr --output DVI-0 --mode 2560x1440_33.00
> If and when I get my hands on another monitor I'll definitely try it
> out. (Although ultimately it would be nice to get it working with this
> one, as it works fine under Linux. This is a Dell U2515H.)
Interesting, that's the same model I have.
You may be able to get a higher resolution by decreasing the refresh rate:
$ gtf 2560 1440 33
# 2560x1440 @ 33.00 Hz (GTF) hsync: 48.44 kHz; pclk: 162.77 MHz
Modeline "2560x1440_33.00" 162.77 2560 2688 2960 3360 1440 1441
1444 1468 -HSync +Vsync
$ xrandr --newmode 2560x1440_33.00 162.77 2560 2688 2960 3360 1440
1441 1444 1468 -HSync +Vsync
$ xrandr --addmode DVI-0 2560x1440_33.00
$ xrandr --output DVI-0 --mode 2560x1440_33.00
battlestar pledge
I guess there aren't too many people playing battlestar on OpenBSD these
days.
I noticed this when entering a space battle:
96814 battlestar CALL ioctl(1,TIOCGETA,0x83c2c197c78)
96814 battlestar PLDG ioctl, "tty", errno 1 Operation not permitted
Which seems to be rectified by adding "tty" to line 53 of battlestar.c
if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
Hope that helps (and/or saves the galaxy),
tom
p.s. apologies for lack of a proper patch
days.
I noticed this when entering a space battle:
96814 battlestar CALL ioctl(1,TIOCGETA,0x83c2c197c78)
96814 battlestar PLDG ioctl, "tty", errno 1 Operation not permitted
Which seems to be rectified by adding "tty" to line 53 of battlestar.c
if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
Hope that helps (and/or saves the galaxy),
tom
p.s. apologies for lack of a proper patch
solidrun marvell macchiatobin
Hi arm gurus,
does openbsd support solid-run marvell armada family boards?
primary this little cute firewall :)
https://www.solid-run.com/marvell-armada-family/armada-8040-community-board/
if there are any interest in this box i'm willing to donate it for
development ..
does openbsd support solid-run marvell armada family boards?
primary this little cute firewall :)
https://www.solid-run.com/marvell-armada-family/armada-8040-community-board/
if there are any interest in this box i'm willing to donate it for
development ..
Re: Blank screen after boot with Radeon HD 5450
On Wed, May 31, 2017 at 2:06 PM, Allan Streib <astreib@indiana.edu> wrote:
> I think you should try another monitor if at all possible. Perhaps your
> monitor just goes into power-save mode with an incompatible signal.
If and when I get my hands on another monitor I'll definitely try it
out. (Although ultimately it would be nice to get it working with this
one, as it works fine under Linux. This is a Dell U2515H.)
> My xrandr shows the 2560x1440 mode at 59.95Hz, I'm assuming that's close
> enough to 60Hz that it should work? Or could that be the problem? The
> highest I can get working is 2048x1152.
>
> Screen 0: minimum 320 x 200, current 4096 x 1152, maximum 8192 x 8192
> DVI-0 connected primary 2048x1152+0+0 (normal left inverted right x axis y axis) 553mm x 311mm
> 2560x1440 59.95 +
> 2048x1152 60.00*
> 1920x1200 59.95
> [...]
You may be able to get a higher resolution by decreasing the refresh rate:
$ gtf 2560 1440 33
# 2560x1440 @ 33.00 Hz (GTF) hsync: 48.44 kHz; pclk: 162.77 MHz
Modeline "2560x1440_33.00" 162.77 2560 2688 2960 3360 1440 1441
1444 1468 -HSync +Vsync
$ xrandr --newmode 2560x1440_33.00 162.77 2560 2688 2960 3360 1440
1441 1444 1468 -HSync +Vsync
$ xrandr --addmode DVI-0 2560x1440_33.00
$ xrandr --output DVI-0 --mode 2560x1440_33.00
> I think you should try another monitor if at all possible. Perhaps your
> monitor just goes into power-save mode with an incompatible signal.
If and when I get my hands on another monitor I'll definitely try it
out. (Although ultimately it would be nice to get it working with this
one, as it works fine under Linux. This is a Dell U2515H.)
> My xrandr shows the 2560x1440 mode at 59.95Hz, I'm assuming that's close
> enough to 60Hz that it should work? Or could that be the problem? The
> highest I can get working is 2048x1152.
>
> Screen 0: minimum 320 x 200, current 4096 x 1152, maximum 8192 x 8192
> DVI-0 connected primary 2048x1152+0+0 (normal left inverted right x axis y axis) 553mm x 311mm
> 2560x1440 59.95 +
> 2048x1152 60.00*
> 1920x1200 59.95
> [...]
You may be able to get a higher resolution by decreasing the refresh rate:
$ gtf 2560 1440 33
# 2560x1440 @ 33.00 Hz (GTF) hsync: 48.44 kHz; pclk: 162.77 MHz
Modeline "2560x1440_33.00" 162.77 2560 2688 2960 3360 1440 1441
1444 1468 -HSync +Vsync
$ xrandr --newmode 2560x1440_33.00 162.77 2560 2688 2960 3360 1440
1441 1444 1468 -HSync +Vsync
$ xrandr --addmode DVI-0 2560x1440_33.00
$ xrandr --output DVI-0 --mode 2560x1440_33.00
Re: newsyslog: timestamp (date) instead of 0, 1, 2, ... in new log file name
I have exactly the same concern / request. newsyslog should be
able to archive with dates rather than count. I'd code it as a flag to
newsyslog if I had the time. Or the skill, really. sysadmin != coder.
I'm just agreeing because sometimes magical kernel hackers fix
my problems for me.
Having static date based names for the gzipped archived log files
makes for cleaner backups, and much easier recovery of log files
from backups when tracing a problem.
For instance:
authlog.20170531.gz
If there's a name collision with just day, then I'd add time
authlog.20170531T123456.gz
--
View this message in context: http://openbsd-archive.7691.n7.nabble.com/newsyslog-timestamp-date-instead-of-0-1-2-in-new-log-file-name-tp317952p319767.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.
able to archive with dates rather than count. I'd code it as a flag to
newsyslog if I had the time. Or the skill, really. sysadmin != coder.
I'm just agreeing because sometimes magical kernel hackers fix
my problems for me.
Having static date based names for the gzipped archived log files
makes for cleaner backups, and much easier recovery of log files
from backups when tracing a problem.
For instance:
authlog.20170531.gz
If there's a name collision with just day, then I'd add time
authlog.20170531T123456.gz
--
View this message in context: http://openbsd-archive.7691.n7.nabble.com/newsyslog-timestamp-date-instead-of-0-1-2-in-new-log-file-name-tp317952p319767.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.
Re: Blank screen after boot with Radeon HD 5450
Maximilian Pichler <maxim.pichler@gmail.com> writes:
> Just tried another graphics card (VisionTek Radeon HD 6350), with
> identical results: the boot messages are shown, then the signal is
> lost.
>
I think you should try another monitor if at all possible. Perhaps your
monitor just goes into power-save mode with an incompatible signal. On
mine, it pops up a message that asks me to set my video card to "2560 x
1140 60Hz" which, according to the dmesg, it should already be:
radeondrm0: 2560x1440
My xrandr shows the 2560x1440 mode at 59.95Hz, I'm assuming that's close
enough to 60Hz that it should work? Or could that be the problem? The
highest I can get working is 2048x1152.
Screen 0: minimum 320 x 200, current 4096 x 1152, maximum 8192 x 8192
DVI-0 connected primary 2048x1152+0+0 (normal left inverted right x axis y axis) 553mm x 311mm
2560x1440 59.95 +
2048x1152 60.00*
1920x1200 59.95
[...]
> Just tried another graphics card (VisionTek Radeon HD 6350), with
> identical results: the boot messages are shown, then the signal is
> lost.
>
I think you should try another monitor if at all possible. Perhaps your
monitor just goes into power-save mode with an incompatible signal. On
mine, it pops up a message that asks me to set my video card to "2560 x
1140 60Hz" which, according to the dmesg, it should already be:
radeondrm0: 2560x1440
My xrandr shows the 2560x1440 mode at 59.95Hz, I'm assuming that's close
enough to 60Hz that it should work? Or could that be the problem? The
highest I can get working is 2048x1152.
Screen 0: minimum 320 x 200, current 4096 x 1152, maximum 8192 x 8192
DVI-0 connected primary 2048x1152+0+0 (normal left inverted right x axis y axis) 553mm x 311mm
2560x1440 59.95 +
2048x1152 60.00*
1920x1200 59.95
[...]
clang luajit unwinding
a little late to the party, but luajit is broken with clang because it needs
special libunwind support or something. that's the story so far.
anyway, looking closer at luajit I notice that "external" unwinding is only
the default on amd64. i386 and others use internal unwinding. one can also
disable unwinding by defining LJ_NO_UNWIND.
anyway, that's what I did, and things seem to work fine. there's a long
comment in src/lj_err.c that lays out the pros and cons of each approach,
mostly less c++ compat. i personally don't much care, and if it only works on
one architecture, I'd say it's questionable to rely on this feature.
maybe we can live without unwind in luajit?
special libunwind support or something. that's the story so far.
anyway, looking closer at luajit I notice that "external" unwinding is only
the default on amd64. i386 and others use internal unwinding. one can also
disable unwinding by defining LJ_NO_UNWIND.
anyway, that's what I did, and things seem to work fine. there's a long
comment in src/lj_err.c that lays out the pros and cons of each approach,
mostly less c++ compat. i personally don't much care, and if it only works on
one architecture, I'd say it's questionable to rely on this feature.
maybe we can live without unwind in luajit?
Re: UPDATE: devel/pcre
Rafael Sadowski <rafael@sizeofvoid.org> writes:
> *ping*
>
> On Sat May 13, 2017 at 09:59:20AM +0200, Rafael Sadowski wrote:
>> On Sat May 13, 2017 at 12:40:18AM +0200, Rafael Sadowski wrote:
>> > Hi ports@,
>> >
>> > simple update to the last stable version. No symbol changes in shared
>> > libs.
>> >
>> > Comments? Ok?
>> >
>> > Best regards,
>> >
>> > Rafael
>> >
>>
>> New morning , new diff.
>> This time without hardcoded "-02" flags in configure. Also tested with
>> clang(1).
ok jca@
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
> *ping*
>
> On Sat May 13, 2017 at 09:59:20AM +0200, Rafael Sadowski wrote:
>> On Sat May 13, 2017 at 12:40:18AM +0200, Rafael Sadowski wrote:
>> > Hi ports@,
>> >
>> > simple update to the last stable version. No symbol changes in shared
>> > libs.
>> >
>> > Comments? Ok?
>> >
>> > Best regards,
>> >
>> > Rafael
>> >
>>
>> New morning , new diff.
>> This time without hardcoded "-02" flags in configure. Also tested with
>> clang(1).
ok jca@
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
Re: Blank screen after boot with Radeon HD 5450
Just tried another graphics card (VisionTek Radeon HD 6350), with
identical results: the boot messages are shown, then the signal is
lost.
identical results: the boot messages are shown, then the signal is
lost.
UPDATE: SMPlayer-17.6.0
Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/smplayer/Makefile,v
retrieving revision 1.35
diff -u -p -r1.35 Makefile
--- Makefile 12 May 2017 14:33:39 -0000 1.35
+++ Makefile 31 May 2017 14:33:16 -0000
@@ -2,7 +2,7 @@
COMMENT = complete front-end for MPlayer
-DISTNAME = smplayer-17.5.0
+DISTNAME = smplayer-17.6.0
CATEGORIES = multimedia x11
Index: distinfo
===================================================================
RCS file: /cvs/ports/x11/smplayer/distinfo,v
retrieving revision 1.23
diff -u -p -r1.23 distinfo
--- distinfo 12 May 2017 14:33:39 -0000 1.23
+++ distinfo 31 May 2017 14:33:16 -0000
@@ -1,2 +1,2 @@
-SHA256 (smplayer-17.5.0.tar.bz2) = OLwZsulG+No1wZArOKM3VoPkKhFZHImAGIWz8W+OAog=
-SIZE (smplayer-17.5.0.tar.bz2) = 5012413
+SHA256 (smplayer-17.6.0.tar.bz2) = L5882yzJglredcsdt2K3+Z6gJk/lGiOdTCc/DYqd+U0=
+SIZE (smplayer-17.6.0.tar.bz2) = 5024904
Hi,
Update for SMPlayer to 17.6.0.
Still no changelog, portroach found out the new version before the
release. :P
Ok? Comments?
Cheers.-
--
Sending from my toaster.
===================================================================
RCS file: /cvs/ports/x11/smplayer/Makefile,v
retrieving revision 1.35
diff -u -p -r1.35 Makefile
--- Makefile 12 May 2017 14:33:39 -0000 1.35
+++ Makefile 31 May 2017 14:33:16 -0000
@@ -2,7 +2,7 @@
COMMENT = complete front-end for MPlayer
-DISTNAME = smplayer-17.5.0
+DISTNAME = smplayer-17.6.0
CATEGORIES = multimedia x11
Index: distinfo
===================================================================
RCS file: /cvs/ports/x11/smplayer/distinfo,v
retrieving revision 1.23
diff -u -p -r1.23 distinfo
--- distinfo 12 May 2017 14:33:39 -0000 1.23
+++ distinfo 31 May 2017 14:33:16 -0000
@@ -1,2 +1,2 @@
-SHA256 (smplayer-17.5.0.tar.bz2) = OLwZsulG+No1wZArOKM3VoPkKhFZHImAGIWz8W+OAog=
-SIZE (smplayer-17.5.0.tar.bz2) = 5012413
+SHA256 (smplayer-17.6.0.tar.bz2) = L5882yzJglredcsdt2K3+Z6gJk/lGiOdTCc/DYqd+U0=
+SIZE (smplayer-17.6.0.tar.bz2) = 5024904
Hi,
Update for SMPlayer to 17.6.0.
Still no changelog, portroach found out the new version before the
release. :P
Ok? Comments?
Cheers.-
--
Sending from my toaster.
Re: smtpd doesn't start
>Did you ever post smtpd.conf? This issue seems odd.
I did, but for some reason my messages are damaged
on the marc. Here it is on the nabble, the third message.
http://openbsd-archive.7691.n7.nabble.com/smtpd-doesn-t-start-td319036.html
Re: UPDATE: emulators/sdlmame
On 2017/05/31 15:52, Marc Espie wrote:
> On Tue, May 30, 2017 at 07:18:40PM -0700, Mike Larkin wrote:
> > sdlmame requires wxneeded for many of its emulated targets.
> >
> > ok?
> >
> >
> > Index: Makefile
> > ===================================================================
> > RCS file: /cvs/ports/emulators/sdlmame/Makefile,v
> > retrieving revision 1.50
> > diff -u -p -r1.50 Makefile
> > --- Makefile 24 Apr 2017 07:52:21 -0000 1.50
> > +++ Makefile 31 May 2017 00:35:17 -0000
> > @@ -3,6 +3,8 @@
> > # Other archs have not been tested
> > ONLY_FOR_ARCHS = amd64
> >
> > +USE_WXNEEDED= Yes
> > +
> > # i386: src/emu/cpu/i386/pentops.inc: error: integer constant is too large for 'long' type
> >
> > MULTI_PACKAGES = -main -tools
>
> So this is not going to work with clang...
>
neither will chromium/iridium, qemu, node, webkit, libreoffice and a
bunch of other things until we have a way around it..so it's not really
a show-stopper for sdlmame for now, we just need a different way to do
things.
> On Tue, May 30, 2017 at 07:18:40PM -0700, Mike Larkin wrote:
> > sdlmame requires wxneeded for many of its emulated targets.
> >
> > ok?
> >
> >
> > Index: Makefile
> > ===================================================================
> > RCS file: /cvs/ports/emulators/sdlmame/Makefile,v
> > retrieving revision 1.50
> > diff -u -p -r1.50 Makefile
> > --- Makefile 24 Apr 2017 07:52:21 -0000 1.50
> > +++ Makefile 31 May 2017 00:35:17 -0000
> > @@ -3,6 +3,8 @@
> > # Other archs have not been tested
> > ONLY_FOR_ARCHS = amd64
> >
> > +USE_WXNEEDED= Yes
> > +
> > # i386: src/emu/cpu/i386/pentops.inc: error: integer constant is too large for 'long' type
> >
> > MULTI_PACKAGES = -main -tools
>
> So this is not going to work with clang...
>
neither will chromium/iridium, qemu, node, webkit, libreoffice and a
bunch of other things until we have a way around it..so it's not really
a show-stopper for sdlmame for now, we just need a different way to do
things.
Re: UPDATE: emulators/sdlmame
On Tue, May 30, 2017 at 07:18:40PM -0700, Mike Larkin wrote:
> sdlmame requires wxneeded for many of its emulated targets.
>
> ok?
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/emulators/sdlmame/Makefile,v
> retrieving revision 1.50
> diff -u -p -r1.50 Makefile
> --- Makefile 24 Apr 2017 07:52:21 -0000 1.50
> +++ Makefile 31 May 2017 00:35:17 -0000
> @@ -3,6 +3,8 @@
> # Other archs have not been tested
> ONLY_FOR_ARCHS = amd64
>
> +USE_WXNEEDED= Yes
> +
> # i386: src/emu/cpu/i386/pentops.inc: error: integer constant is too large for 'long' type
>
> MULTI_PACKAGES = -main -tools
So this is not going to work with clang...
> sdlmame requires wxneeded for many of its emulated targets.
>
> ok?
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/emulators/sdlmame/Makefile,v
> retrieving revision 1.50
> diff -u -p -r1.50 Makefile
> --- Makefile 24 Apr 2017 07:52:21 -0000 1.50
> +++ Makefile 31 May 2017 00:35:17 -0000
> @@ -3,6 +3,8 @@
> # Other archs have not been tested
> ONLY_FOR_ARCHS = amd64
>
> +USE_WXNEEDED= Yes
> +
> # i386: src/emu/cpu/i386/pentops.inc: error: integer constant is too large for 'long' type
>
> MULTI_PACKAGES = -main -tools
So this is not going to work with clang...
Re: UPDATE: emulators/sdlmame
On 2017/05/30 19:18, Mike Larkin wrote:
> sdlmame requires wxneeded for many of its emulated targets.
>
> ok?
Please bump REVISION, then it's OK.
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/emulators/sdlmame/Makefile,v
> retrieving revision 1.50
> diff -u -p -r1.50 Makefile
> --- Makefile 24 Apr 2017 07:52:21 -0000 1.50
> +++ Makefile 31 May 2017 00:35:17 -0000
> @@ -3,6 +3,8 @@
> # Other archs have not been tested
> ONLY_FOR_ARCHS = amd64
>
> +USE_WXNEEDED= Yes
> +
> # i386: src/emu/cpu/i386/pentops.inc: error: integer constant is too large for 'long' type
>
> MULTI_PACKAGES = -main -tools
>
> sdlmame requires wxneeded for many of its emulated targets.
>
> ok?
Please bump REVISION, then it's OK.
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/emulators/sdlmame/Makefile,v
> retrieving revision 1.50
> diff -u -p -r1.50 Makefile
> --- Makefile 24 Apr 2017 07:52:21 -0000 1.50
> +++ Makefile 31 May 2017 00:35:17 -0000
> @@ -3,6 +3,8 @@
> # Other archs have not been tested
> ONLY_FOR_ARCHS = amd64
>
> +USE_WXNEEDED= Yes
> +
> # i386: src/emu/cpu/i386/pentops.inc: error: integer constant is too large for 'long' type
>
> MULTI_PACKAGES = -main -tools
>
rspamd or spamassasin
Hi there,
I'm going to build a new mailserver with openSMTP and Dovecot and I was
wondering what is used for additional spamfiltering for this kind of
setup. I looked around and saw that rspamd is somewhat in favor but
since I'm new to the openSMTP thing (had courier befor) I was wondering
which of the tools mentions is the best fit.
regards
--
Markus Rosjat fon: +49 351 8107223 mail: rosjat@ghweb.de
G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden
http://www.ghweb.de
fon: +49 351 8107220 fax: +49 351 8107227
Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before
you print it, think about your responsibility and commitment to the
ENVIRONMENT
I'm going to build a new mailserver with openSMTP and Dovecot and I was
wondering what is used for additional spamfiltering for this kind of
setup. I looked around and saw that rspamd is somewhat in favor but
since I'm new to the openSMTP thing (had courier befor) I was wondering
which of the tools mentions is the best fit.
regards
--
Markus Rosjat fon: +49 351 8107223 mail: rosjat@ghweb.de
G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden
http://www.ghweb.de
fon: +49 351 8107220 fax: +49 351 8107227
Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before
you print it, think about your responsibility and commitment to the
ENVIRONMENT
Re: [NEW] sysutils/bdfresize
On Sat, May 27, 2017 at 10:41:30PM +0200, Frederic Cambus wrote:
> Here is a new port: sysutils/bdfresize
Improved tarball attached, which also avoids picking local getopt
headers.
Comments? OK to import?
> Here is a new port: sysutils/bdfresize
Improved tarball attached, which also avoids picking local getopt
headers.
Comments? OK to import?
Re: smtpd doesn't start
Hi Peter,
On Tue, 30 May 2017 12:32:35 +0200 Peter Hessler wrote:
> On 2017 May 30 (Tue) at 10:37:37 +0100 (+0100), Craig Skinner wrote:
> :.localdomain (.local interferes with iStuff, avoid it)
> :.internal
> :.private
> :.priv
> :.lan
>
> NO NO NO NO NO NO NO NO NO
>
> All of those domains may (or have been) issued by ICANN, and can be
> used for real.
RFC 2606 (& 6761, section 6) reserves the following TLDs for private testing:
.test
.example
.invalid
.localhost
(These were created for testing, not for production.)
http://en.wikipedia.org/wiki/.test
http://en.wikipedia.org/wiki/.example
http://en.wikipedia.org/wiki/.invalid
http://en.wikipedia.org/wiki/.localhost
'.local' is reserved as a pseudo-TLD for link-local hostnames that can
be resolved via Multicast DNS http://en.wikipedia.org/wiki/.local
Similar to 'localhost', '.localdomain' is "reserved" for internal usage.
Hence the traditional default 'localhost.localdomain' on new installs.
Also regarded as "reserved" are the other pseudo-TLDs mentioned.
Cool,
--
Craig Skinner | http://linkd.in/yGqkv7
On Tue, 30 May 2017 12:32:35 +0200 Peter Hessler wrote:
> On 2017 May 30 (Tue) at 10:37:37 +0100 (+0100), Craig Skinner wrote:
> :.localdomain (.local interferes with iStuff, avoid it)
> :.internal
> :.private
> :.priv
> :.lan
>
> NO NO NO NO NO NO NO NO NO
>
> All of those domains may (or have been) issued by ICANN, and can be
> used for real.
RFC 2606 (& 6761, section 6) reserves the following TLDs for private testing:
.test
.example
.invalid
.localhost
(These were created for testing, not for production.)
http://en.wikipedia.org/wiki/.test
http://en.wikipedia.org/wiki/.example
http://en.wikipedia.org/wiki/.invalid
http://en.wikipedia.org/wiki/.localhost
'.local' is reserved as a pseudo-TLD for link-local hostnames that can
be resolved via Multicast DNS http://en.wikipedia.org/wiki/.local
Similar to 'localhost', '.localdomain' is "reserved" for internal usage.
Hence the traditional default 'localhost.localdomain' on new installs.
Also regarded as "reserved" are the other pseudo-TLDs mentioned.
Cool,
--
Craig Skinner | http://linkd.in/yGqkv7
Optimizing for PF with high number of states and searches
Hi all,
We have an oldish (2013) but well-spec'd pair of servers (active-backup) ,
running OpenBSD 6.0 and PF.
The only difference between the server hardware is that the primary has two
physical processors, the secondary has one.
This primary firewall is worked pretty hard (see pfctl -si below) and of
late it seems to struggle when load increases.
If we fail over to the secondary we see jitter/dropped packets on priority
traffic.
If we reload PF we often see jitter (testing with world-ping) and drops of
icmp (which has prio 7) which seem to settle if we reload PF again.
If I make a change the queue config, I need to reboot.
Problems seem to coincide with spikes in congestion, congestion is usually
approx 0.7/s if it rises much above 1 we see problems.
Most of the CPU cores aren't used much, two of the 8 cores average about
40%, one went up to 75% when I had problem with a ruleset.
I am trying to get hard figures rather than a 'feeling'. Stats that seem
high are when there are problems (see vmstat output at the bottom, when
things are relatively quiet , context switching and interrupts are <3000).
context-switching > 15,000
interrupts >14,000
Searches > 500,000
net.inet.ip.ifq.len is usually < 100 (I've seen it at >700 briefly). This
seems to suggest that changing net.inet.ip.ifq.maxlen may not make a
difference.
FWIW the ruleset as loaded is around 1300 lines when displayed with pfctl
-vvsr
I am looking for ways to optimize performance and would appreciate any
suggestions as to what to try and what stats to look at.
The alternative is to buy new hardware, but need to be convinced a faster
processor will make a big difference.
1) I am thinking of trying higher values of net.inet.ip.ifq.maxlen,
currently 2048. I tried 2500, didn't see much difference but suspect I can
go quite a bit higher. Does this setting require a reboot and am I right in
thinking this may help congestion, lower interrupts and context-switching?
2) Memory use is low according to collectd/snmp graphs , we have plenty can
we utilise it more?
3) Is an upgrade to OpenBSD 6.1 likely to make a significant difference?
4) We log all dropped traffic to pflog0, will disk I/O be a problem?
Sorry for vagueness, thanks in advance.
Kevin.
Possibly useful output and spec below:
Hardware:
2 x Quad Core Intel(R) Xeon(R) CPU E5-2637 v2 @ 3.50GHz, 3600.54 MH
OpenBSD 6.0 GENERIC.MP#2 amd64
NICs
Inside type ix 10Gbps, e,g, ix1 at pci5 dev 0 function 1 "Intel 82599"
rev 0x01
Outside and pfsync type em 1Gbps e.g. em1 at pci2 dev 0 function 1 "Intel
I350" rev 0x01
Of the 8 cores, two average about 40% utilisation. One of them peaked at
about 75% when struggling.
Memory =64Gbps
[LIVE]root@ar1300:~# pfctl -si
Status: Enabled for 0 days 09:04:42 Debug: err
State Table Total Rate
current entries 1205635
searches 16678281544 <(667)%20828-1544>
510320.1/s
inserts 157481830 4818.6/s
removals 156276195 4781.7/s
Counters
match 149125447 4562.9/s
bad-offset 0 0.0/s
fragment 0 0.0/s
short 3395 0.1/s
normalize 296 0.0/s
memory 0 0.0/s
bad-timestamp 0 0.0/s
congestion 14523 0.4/s
ip-option 0 0.0/s
proto-cksum 0 0.0/s
state-mismatch 103949 3.2/s
state-insert 10397 0.3/s
state-limit 0 0.0/s
src-limit 0 0.0/s
synproxy 0 0.0/s
translate 0 0.0/s
no-route 0 0.0/s
[LIVE]root@ar1300:~# vmstat -si
4096 bytes per page
16257397 pages managed
16007891 pages free
13720 pages active
4146 pages inactive
0 pages being paged out
16 pages wired
2000987 pages zeroed
4 pages reserved for pagedaemon
6 pages reserved for kernel
16830030 swap pages
0 swap pages in use
0 total anon's in system
0 free anon's
119821710 page faults
119081179 traps
474725184 interrupts
510456927 cpu context switches
255355 fpu context switches
3224063 software interrupts
317594717 syscalls
0 pagein operations
329258 forks
640 forks where vmspace is shared
37 kernel map entries
51141141 zeroed page hits
2222 zeroed page misses
0 number of times the pagedaemon woke up
0 revolutions of the clock hand
0 pages freed by pagedaemon
0 pages scanned by pagedaemon
0 pages reactivated by pagedaemon
0 busy pages found by pagedaemon
14089163 total name lookups
cache hits (90% pos + 9% neg) system 0% per-directory
deletions 0%, falsehits 0%, toolong 0%
0 select collisions
interrupt total rate
irq0/clock 26133597 798
irq0/ipi 1582624 48
irq144/acpi0 2 0
irq113/em0 21289414 650
irq114/em1 232449860 7106
irq116/ix1 220960739 6754
irq101/ehci0 51 0
irq104/ehci1 55 0
irq105/ahci0 25073 0
Total 502441415 15360
[LIVE]root@ar1300:~# vmstat
procs memory page disks traps cpu
r b w avm fre flt re pi po fr sr sd0 sd1 int sys cs us
sy id
1 1 0 54960 64032024 3662 0 0 0 0 0 0 0 14513 9707 15606
0 9 91
[LIVE]root@ar1300:~# vmstat
procs memory page disks traps cpu
r b w avm fre flt re pi po fr sr sd0 sd1 int sys cs us
sy id
3 2 0 53392 63829852 3601 0 0 0 0 0 0 0 1903 2971 2430 0
10 90
[LIVE]root@ar1300:~# sysctl net.inet.ip.ifq.maxlen
net.inet.ip.ifq.maxlen=2048
[LIVE]root@ar1300:~# sysctl net.inet.ip.ifq.len
net.inet.ip.ifq.len=0
[LIVE]root@ar1300:~# sysctl net.inet.ip.ifq.drops
net.inet.ip.ifq.drops=66419
Regards,
*Kevin Gee*
We have an oldish (2013) but well-spec'd pair of servers (active-backup) ,
running OpenBSD 6.0 and PF.
The only difference between the server hardware is that the primary has two
physical processors, the secondary has one.
This primary firewall is worked pretty hard (see pfctl -si below) and of
late it seems to struggle when load increases.
If we fail over to the secondary we see jitter/dropped packets on priority
traffic.
If we reload PF we often see jitter (testing with world-ping) and drops of
icmp (which has prio 7) which seem to settle if we reload PF again.
If I make a change the queue config, I need to reboot.
Problems seem to coincide with spikes in congestion, congestion is usually
approx 0.7/s if it rises much above 1 we see problems.
Most of the CPU cores aren't used much, two of the 8 cores average about
40%, one went up to 75% when I had problem with a ruleset.
I am trying to get hard figures rather than a 'feeling'. Stats that seem
high are when there are problems (see vmstat output at the bottom, when
things are relatively quiet , context switching and interrupts are <3000).
context-switching > 15,000
interrupts >14,000
Searches > 500,000
net.inet.ip.ifq.len is usually < 100 (I've seen it at >700 briefly). This
seems to suggest that changing net.inet.ip.ifq.maxlen may not make a
difference.
FWIW the ruleset as loaded is around 1300 lines when displayed with pfctl
-vvsr
I am looking for ways to optimize performance and would appreciate any
suggestions as to what to try and what stats to look at.
The alternative is to buy new hardware, but need to be convinced a faster
processor will make a big difference.
1) I am thinking of trying higher values of net.inet.ip.ifq.maxlen,
currently 2048. I tried 2500, didn't see much difference but suspect I can
go quite a bit higher. Does this setting require a reboot and am I right in
thinking this may help congestion, lower interrupts and context-switching?
2) Memory use is low according to collectd/snmp graphs , we have plenty can
we utilise it more?
3) Is an upgrade to OpenBSD 6.1 likely to make a significant difference?
4) We log all dropped traffic to pflog0, will disk I/O be a problem?
Sorry for vagueness, thanks in advance.
Kevin.
Possibly useful output and spec below:
Hardware:
2 x Quad Core Intel(R) Xeon(R) CPU E5-2637 v2 @ 3.50GHz, 3600.54 MH
OpenBSD 6.0 GENERIC.MP#2 amd64
NICs
Inside type ix 10Gbps, e,g, ix1 at pci5 dev 0 function 1 "Intel 82599"
rev 0x01
Outside and pfsync type em 1Gbps e.g. em1 at pci2 dev 0 function 1 "Intel
I350" rev 0x01
Of the 8 cores, two average about 40% utilisation. One of them peaked at
about 75% when struggling.
Memory =64Gbps
[LIVE]root@ar1300:~# pfctl -si
Status: Enabled for 0 days 09:04:42 Debug: err
State Table Total Rate
current entries 1205635
searches 16678281544 <(667)%20828-1544>
510320.1/s
inserts 157481830 4818.6/s
removals 156276195 4781.7/s
Counters
match 149125447 4562.9/s
bad-offset 0 0.0/s
fragment 0 0.0/s
short 3395 0.1/s
normalize 296 0.0/s
memory 0 0.0/s
bad-timestamp 0 0.0/s
congestion 14523 0.4/s
ip-option 0 0.0/s
proto-cksum 0 0.0/s
state-mismatch 103949 3.2/s
state-insert 10397 0.3/s
state-limit 0 0.0/s
src-limit 0 0.0/s
synproxy 0 0.0/s
translate 0 0.0/s
no-route 0 0.0/s
[LIVE]root@ar1300:~# vmstat -si
4096 bytes per page
16257397 pages managed
16007891 pages free
13720 pages active
4146 pages inactive
0 pages being paged out
16 pages wired
2000987 pages zeroed
4 pages reserved for pagedaemon
6 pages reserved for kernel
16830030 swap pages
0 swap pages in use
0 total anon's in system
0 free anon's
119821710 page faults
119081179 traps
474725184 interrupts
510456927 cpu context switches
255355 fpu context switches
3224063 software interrupts
317594717 syscalls
0 pagein operations
329258 forks
640 forks where vmspace is shared
37 kernel map entries
51141141 zeroed page hits
2222 zeroed page misses
0 number of times the pagedaemon woke up
0 revolutions of the clock hand
0 pages freed by pagedaemon
0 pages scanned by pagedaemon
0 pages reactivated by pagedaemon
0 busy pages found by pagedaemon
14089163 total name lookups
cache hits (90% pos + 9% neg) system 0% per-directory
deletions 0%, falsehits 0%, toolong 0%
0 select collisions
interrupt total rate
irq0/clock 26133597 798
irq0/ipi 1582624 48
irq144/acpi0 2 0
irq113/em0 21289414 650
irq114/em1 232449860 7106
irq116/ix1 220960739 6754
irq101/ehci0 51 0
irq104/ehci1 55 0
irq105/ahci0 25073 0
Total 502441415 15360
[LIVE]root@ar1300:~# vmstat
procs memory page disks traps cpu
r b w avm fre flt re pi po fr sr sd0 sd1 int sys cs us
sy id
1 1 0 54960 64032024 3662 0 0 0 0 0 0 0 14513 9707 15606
0 9 91
[LIVE]root@ar1300:~# vmstat
procs memory page disks traps cpu
r b w avm fre flt re pi po fr sr sd0 sd1 int sys cs us
sy id
3 2 0 53392 63829852 3601 0 0 0 0 0 0 0 1903 2971 2430 0
10 90
[LIVE]root@ar1300:~# sysctl net.inet.ip.ifq.maxlen
net.inet.ip.ifq.maxlen=2048
[LIVE]root@ar1300:~# sysctl net.inet.ip.ifq.len
net.inet.ip.ifq.len=0
[LIVE]root@ar1300:~# sysctl net.inet.ip.ifq.drops
net.inet.ip.ifq.drops=66419
Regards,
*Kevin Gee*
Re: siteXX.tgz with /home/user/.ssh/authorized_keys results in empty file
> >How about not overwriting already existing files?
> >
> >Index: install.sub
> >===================================================================
> >RCS file: /var/cvs/src/distrib/miniroot/install.sub,v
> >retrieving revision 1.1011
> >diff -u -p -r1.1011 install.sub
> >--- install.sub 28 May 2017 09:24:56 -0000 1.1011
> >+++ install.sub 30 May 2017 00:18:16 -0000
> >@@ -2919,7 +2919,7 @@ do_install(){
> >
> > _home=/mnt$_home
> > mkdir -p $_home
> >- (cd /mnt/etc/skel; cp -pR . $_home)
> >+ (cd /mnt/etc/skel; pax -rw -k -pe . $_home)
>
> If that's what it does, I'm all for it.
It is: -rw is copy mode, -k keeps existing files, -pe preserves owners,
permissions, times, etc like cp -p.
I committed the diff, so it should be fixed in the next snapshot.
> >
> >Index: install.sub
> >===================================================================
> >RCS file: /var/cvs/src/distrib/miniroot/install.sub,v
> >retrieving revision 1.1011
> >diff -u -p -r1.1011 install.sub
> >--- install.sub 28 May 2017 09:24:56 -0000 1.1011
> >+++ install.sub 30 May 2017 00:18:16 -0000
> >@@ -2919,7 +2919,7 @@ do_install(){
> >
> > _home=/mnt$_home
> > mkdir -p $_home
> >- (cd /mnt/etc/skel; cp -pR . $_home)
> >+ (cd /mnt/etc/skel; pax -rw -k -pe . $_home)
>
> If that's what it does, I'm all for it.
It is: -rw is copy mode, -k keeps existing files, -pe preserves owners,
permissions, times, etc like cp -p.
I committed the diff, so it should be fixed in the next snapshot.
Re: macbook only sees 3GB of ram
On May 31 01:08:01, deraadt@openbsd.org wrote:
> 1. it works, be happy.
I am.
> 2. the memory map from the bios is being honoured; the kernel makes
> conservative decisions to honours it, as a result it works. see 1.
memory map conflict 0xbef00000/0x100000
memory map conflict 0xbf000000/0x1000000
memory map conflict 0xf00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xfffb0000/0x30000
Is this the place in the dmesg where the kernel makes those decisions?
> 3. if you want to drill down further and get access to more memory,
> you have the source code AND the hardware.
>
> 4. if you don't want to drill down, but just want to bitch,
Somehow, asking on the mailing list seems to escape you
as neither "drilling" nor "just want to bitch".
> sorry noone
> cares enough to do anything about this without the hardware, so go get
> a padded box for it and maybe we can find a developer who will take the
> machine off your hands.
If there is someone who is interested enough,
please let me know off-list and I will send the machine.
Jan
> > On May 31 08:48:09, hans@stare.cz wrote:
> > > This is current/amd64 on an old MacBook A1181 (dmesg below).
> > > Until yesterday it had 2+1 GB of RAM, now it has 2+2 GB.
> > > However, dmesg still reports around 3GB.
> > >
> > > No, it's not the old dmesg; yes, I have checked. In fact,
> > > spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > > spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > >
> > > It's not a hardwware issue - the MacOS that dualboots this machine
> > > sees and uses the 4GB. Am I missing something obvious?
> > >
> > > OpenBSD 6.1-current (GENERIC.MP) #0: Sat May 20 12:31:37 CEST 2017
> > > hans@macbook.stare.cz:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > > real mem = 3171909632 (3024MB)
> > > avail mem = 3070050304 (2927MB)
> >
> > Here is a fresh upgrade to the latest snapshot
> > - the issue is the same.
> >
> >
> > OpenBSD 6.1-current (GENERIC.MP) #87: Tue May 30 21:05:25 MDT 2017
> > deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > real mem = 3171909632 (3024MB)
> > avail mem = 3070050304 (2927MB)
> > mpath0 at root
> > scsibus0 at mpath0: 256 targets
> > mainbus0 at root
> > bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0000 (37 entries)
> > bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date 06/27/07
> > bios0: Apple Inc. MacBook2,1
> > acpi0 at bios0: rev 2
> > acpi0: sleep states S0 S3 S4 S5
> > acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
> > acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB7(S3) EC__(S3)
> > acpitimer0 at acpi0: 3579545 Hz, 24 bits
> > acpihpet0 at acpi0: 14318179 Hz
> > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> > cpu0 at mainbus0: apid 0 (boot processor)
> > cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.59 MHz
> > cpu0: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
> > cpu0: 4MB 64b/line 16-way L2 cache
> > cpu0: smt 0, core 0, package 0
> > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> > cpu0: apic clock running at 166MHz
> > cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
> > cpu1 at mainbus0: apid 1 (application processor)
> > cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.26 MHz
> > cpu1: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
> > cpu1: 4MB 64b/line 16-way L2 cache
> > cpu1: smt 0, core 1, package 0
> > ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
> > acpimcfg0 at acpi0 addr 0xf0000000, bus 0-255
> > acpiec0 at acpi0
> > acpiprt0 at acpi0: bus 0 (PCI0)
> > acpiprt1 at acpi0: bus 1 (RP01)
> > acpiprt2 at acpi0: bus 2 (RP02)
> > acpiprt3 at acpi0: bus 3 (PCIB)
> > acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
> > acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
> > acpisbs0 at acpi0: SBS0 model "ASMB016" serial 19351 type LION oem "DP"
> > acpiac0 at acpi0: AC unit online
> > acpibtn0 at acpi0: LID0
> > "APP0002" at acpi0 not configured
> > acpibtn1 at acpi0: PWRB
> > acpibtn2 at acpi0: SLPB
> > "APP0001" at acpi0 not configured
> > "APP0003" at acpi0 not configured
> > "ACPI0001" at acpi0 not configured
> > acpivideo0 at acpi0: GFX0
> > cpu0: Enhanced SpeedStep 2161 MHz: speeds: 2167, 2000, 1833, 1667, 1500, 1333, 1000 MHz
> > memory map conflict 0xbef00000/0x100000
> > memory map conflict 0xbf000000/0x1000000
> > memory map conflict 0xf00f8000/0x1000
> > memory map conflict 0xfed1c000/0x4000
> > memory map conflict 0xfffb0000/0x30000
> > pci0 at mainbus0 bus 0
> > pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
> > inteldrm0 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
> > drm0 at inteldrm0
> > intagp0 at inteldrm0
> > agp0 at intagp0: aperture at 0xc0000000, size 0x10000000
> > inteldrm0: apic 1 int 16
> > inteldrm0: 1280x800, 32bpp
> > wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
> > wsdisplay0: screen 1-5 added (std, vt100 emulation)
> > "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
> > vendor "Intel", unknown product 0x27a3 (class DASP subclass Time and Frequency, rev 0x03) at pci0 dev 7 function 0 not configured
> > azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
> > azalia0: codecs: Sigmatel STAC9220/1
> > audio0 at azalia0
> > ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: msi
> > pci1 at ppb0 bus 1
> > mskc0 at pci1 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x22, Yukon-2 EC rev. A3 (0x2): msi
> > msk0 at mskc0 port A: address 00:1b:63:36:2b:5d
> > eephy0 at msk0 phy 0: 88E1111 Gigabit PHY, rev. 2
> > ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: msi
> > pci2 at ppb1 bus 2
> > athn0 at pci2 dev 0 function 0 "Atheros AR5418" rev 0x01: apic 1 int 17
> > athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 4, address 00:1c:b3:c4:b2:ae
> > uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 21
> > uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 19
> > uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
> > uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 16
> > ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 21
> > usb0 at ehci0: USB revision 2.0
> > uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> > ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
> > pci3 at ppb2 bus 3
> > "AT&T/Lucent FW322 1394" rev 0x61 at pci3 dev 3 function 0 not configured
> > pcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02
> > pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
> > atapiscsi0 at pciide0 channel 0 drive 0
> > scsibus1 at atapiscsi0: 2 targets
> > cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-R UJ-857E, ZB0E> ATAPI 5/cdrom removable
> > cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
> > pciide0: channel 1 disabled (no drives)
> > pciide1 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
> > pciide1: using apic 1 int 19 for native-PCI interrupt
> > wd0 at pciide1 channel 0 drive 1: <ST980811AS>
> > wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
> > wd0(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 6
> > ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 1 int 19
> > iic0 at ichiic0
> > iic0: addr 0x48 00=36 01=00 02=4b 03=50 words 00=3680 01=00ff 02=4b00 03=5000 04=ffff 05=ffff 06=ffff 07=ffff
> > spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > usb1 at uhci0: USB revision 1.0
> > uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> > usb2 at uhci1: USB revision 1.0
> > uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> > usb3 at uhci2: USB revision 1.0
> > uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> > usb4 at uhci3: USB revision 1.0
> > uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> > isa0 at pcib0
> > isadma0 at isa0
> > pcppi0 at isa0 port 0x61
> > spkr0 at pcppi0
> > asmc0 at isa0 port 0x300/32: rev 1.17f517, 226 keys
> > vmm0 at mainbus0: VMX
> > drm: render error detected, EIR: 0x00000010
> > drm: page table error
> > drm: PGTBL_ER: 0x00000102
> > error: [drm:pid0:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x00000010, masking
> > drm: render error detected, EIR: 0x00000010
> > drm: page table error
> > drm: PGTBL_ER: 0x00000102
> > uvideo0 at uhub0 port 4 configuration 1 interface 0 "Micron Built-in iSight" rev 2.00/1.84 addr 2
> > video0 at uvideo0
> > uhidev0 at uhub1 port 2 configuration 1 interface 0 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
> > uhidev0: iclass 3/1
> > ukbd0 at uhidev0: 8 variable keys, 5 key codes, country code 13
> > wskbd0 at ukbd0: console keyboard, using wsdisplay0
> > uhidev1 at uhub1 port 2 configuration 1 interface 1 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
> > uhidev1: iclass 3/1, 5 report ids
> > ums0 at uhidev1 reportid 2: 3 buttons
> > wsmouse0 at ums0 mux 0
> > ums1 at uhidev1 reportid 5
> > ums1: mouse has no X report
> > uhidev2 at uhub1 port 2 configuration 1 interface 2 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
> > uhidev2: iclass 3/0
> > uhid0 at uhidev2: input=1, output=0, feature=0
> > uhidev3 at uhub3 port 2 configuration 1 interface 0 "Apple Computer, Inc. IR Receiver" rev 2.00/1.10 addr 2
> > uhidev3: iclass 3/0, 38 report ids
> > uhid1 at uhidev3 reportid 36: input=4, output=0, feature=0
> > uhid2 at uhidev3 reportid 37: input=4, output=0, feature=0
> > uhid3 at uhidev3 reportid 38: input=4, output=0, feature=0
> > uhidev4 at uhub4 port 1 configuration 1 interface 0 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
> > uhidev4: iclass 3/1
> > ukbd1 at uhidev4: 8 variable keys, 6 key codes
> > wskbd1 at ukbd1 mux 1
> > wskbd1: connecting to wsdisplay0
> > uhidev5 at uhub4 port 1 configuration 1 interface 1 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
> > uhidev5: iclass 3/1
> > ums2 at uhidev5: 5 buttons
> > wsmouse1 at ums2 mux 0
> > vscsi0 at root
> > scsibus2 at vscsi0: 256 targets
> > softraid0 at root
> > scsibus3 at softraid0: 256 targets
> > sd0 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
> > sd0: 20821MB, 512 bytes/sector, 42642928 sectors
> > root on sd0a (075497a4ce516f3d.a) swap on sd0b dump on sd0b
> >
>
> 1. it works, be happy.
I am.
> 2. the memory map from the bios is being honoured; the kernel makes
> conservative decisions to honours it, as a result it works. see 1.
memory map conflict 0xbef00000/0x100000
memory map conflict 0xbf000000/0x1000000
memory map conflict 0xf00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xfffb0000/0x30000
Is this the place in the dmesg where the kernel makes those decisions?
> 3. if you want to drill down further and get access to more memory,
> you have the source code AND the hardware.
>
> 4. if you don't want to drill down, but just want to bitch,
Somehow, asking on the mailing list seems to escape you
as neither "drilling" nor "just want to bitch".
> sorry noone
> cares enough to do anything about this without the hardware, so go get
> a padded box for it and maybe we can find a developer who will take the
> machine off your hands.
If there is someone who is interested enough,
please let me know off-list and I will send the machine.
Jan
> > On May 31 08:48:09, hans@stare.cz wrote:
> > > This is current/amd64 on an old MacBook A1181 (dmesg below).
> > > Until yesterday it had 2+1 GB of RAM, now it has 2+2 GB.
> > > However, dmesg still reports around 3GB.
> > >
> > > No, it's not the old dmesg; yes, I have checked. In fact,
> > > spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > > spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > >
> > > It's not a hardwware issue - the MacOS that dualboots this machine
> > > sees and uses the 4GB. Am I missing something obvious?
> > >
> > > OpenBSD 6.1-current (GENERIC.MP) #0: Sat May 20 12:31:37 CEST 2017
> > > hans@macbook.stare.cz:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > > real mem = 3171909632 (3024MB)
> > > avail mem = 3070050304 (2927MB)
> >
> > Here is a fresh upgrade to the latest snapshot
> > - the issue is the same.
> >
> >
> > OpenBSD 6.1-current (GENERIC.MP) #87: Tue May 30 21:05:25 MDT 2017
> > deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > real mem = 3171909632 (3024MB)
> > avail mem = 3070050304 (2927MB)
> > mpath0 at root
> > scsibus0 at mpath0: 256 targets
> > mainbus0 at root
> > bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0000 (37 entries)
> > bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date 06/27/07
> > bios0: Apple Inc. MacBook2,1
> > acpi0 at bios0: rev 2
> > acpi0: sleep states S0 S3 S4 S5
> > acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
> > acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB7(S3) EC__(S3)
> > acpitimer0 at acpi0: 3579545 Hz, 24 bits
> > acpihpet0 at acpi0: 14318179 Hz
> > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> > cpu0 at mainbus0: apid 0 (boot processor)
> > cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.59 MHz
> > cpu0: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
> > cpu0: 4MB 64b/line 16-way L2 cache
> > cpu0: smt 0, core 0, package 0
> > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> > cpu0: apic clock running at 166MHz
> > cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
> > cpu1 at mainbus0: apid 1 (application processor)
> > cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.26 MHz
> > cpu1: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
> > cpu1: 4MB 64b/line 16-way L2 cache
> > cpu1: smt 0, core 1, package 0
> > ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
> > acpimcfg0 at acpi0 addr 0xf0000000, bus 0-255
> > acpiec0 at acpi0
> > acpiprt0 at acpi0: bus 0 (PCI0)
> > acpiprt1 at acpi0: bus 1 (RP01)
> > acpiprt2 at acpi0: bus 2 (RP02)
> > acpiprt3 at acpi0: bus 3 (PCIB)
> > acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
> > acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
> > acpisbs0 at acpi0: SBS0 model "ASMB016" serial 19351 type LION oem "DP"
> > acpiac0 at acpi0: AC unit online
> > acpibtn0 at acpi0: LID0
> > "APP0002" at acpi0 not configured
> > acpibtn1 at acpi0: PWRB
> > acpibtn2 at acpi0: SLPB
> > "APP0001" at acpi0 not configured
> > "APP0003" at acpi0 not configured
> > "ACPI0001" at acpi0 not configured
> > acpivideo0 at acpi0: GFX0
> > cpu0: Enhanced SpeedStep 2161 MHz: speeds: 2167, 2000, 1833, 1667, 1500, 1333, 1000 MHz
> > memory map conflict 0xbef00000/0x100000
> > memory map conflict 0xbf000000/0x1000000
> > memory map conflict 0xf00f8000/0x1000
> > memory map conflict 0xfed1c000/0x4000
> > memory map conflict 0xfffb0000/0x30000
> > pci0 at mainbus0 bus 0
> > pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
> > inteldrm0 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
> > drm0 at inteldrm0
> > intagp0 at inteldrm0
> > agp0 at intagp0: aperture at 0xc0000000, size 0x10000000
> > inteldrm0: apic 1 int 16
> > inteldrm0: 1280x800, 32bpp
> > wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
> > wsdisplay0: screen 1-5 added (std, vt100 emulation)
> > "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
> > vendor "Intel", unknown product 0x27a3 (class DASP subclass Time and Frequency, rev 0x03) at pci0 dev 7 function 0 not configured
> > azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
> > azalia0: codecs: Sigmatel STAC9220/1
> > audio0 at azalia0
> > ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: msi
> > pci1 at ppb0 bus 1
> > mskc0 at pci1 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x22, Yukon-2 EC rev. A3 (0x2): msi
> > msk0 at mskc0 port A: address 00:1b:63:36:2b:5d
> > eephy0 at msk0 phy 0: 88E1111 Gigabit PHY, rev. 2
> > ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: msi
> > pci2 at ppb1 bus 2
> > athn0 at pci2 dev 0 function 0 "Atheros AR5418" rev 0x01: apic 1 int 17
> > athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 4, address 00:1c:b3:c4:b2:ae
> > uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 21
> > uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 19
> > uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
> > uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 16
> > ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 21
> > usb0 at ehci0: USB revision 2.0
> > uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> > ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
> > pci3 at ppb2 bus 3
> > "AT&T/Lucent FW322 1394" rev 0x61 at pci3 dev 3 function 0 not configured
> > pcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02
> > pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
> > atapiscsi0 at pciide0 channel 0 drive 0
> > scsibus1 at atapiscsi0: 2 targets
> > cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-R UJ-857E, ZB0E> ATAPI 5/cdrom removable
> > cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
> > pciide0: channel 1 disabled (no drives)
> > pciide1 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
> > pciide1: using apic 1 int 19 for native-PCI interrupt
> > wd0 at pciide1 channel 0 drive 1: <ST980811AS>
> > wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
> > wd0(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 6
> > ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 1 int 19
> > iic0 at ichiic0
> > iic0: addr 0x48 00=36 01=00 02=4b 03=50 words 00=3680 01=00ff 02=4b00 03=5000 04=ffff 05=ffff 06=ffff 07=ffff
> > spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > usb1 at uhci0: USB revision 1.0
> > uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> > usb2 at uhci1: USB revision 1.0
> > uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> > usb3 at uhci2: USB revision 1.0
> > uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> > usb4 at uhci3: USB revision 1.0
> > uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> > isa0 at pcib0
> > isadma0 at isa0
> > pcppi0 at isa0 port 0x61
> > spkr0 at pcppi0
> > asmc0 at isa0 port 0x300/32: rev 1.17f517, 226 keys
> > vmm0 at mainbus0: VMX
> > drm: render error detected, EIR: 0x00000010
> > drm: page table error
> > drm: PGTBL_ER: 0x00000102
> > error: [drm:pid0:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x00000010, masking
> > drm: render error detected, EIR: 0x00000010
> > drm: page table error
> > drm: PGTBL_ER: 0x00000102
> > uvideo0 at uhub0 port 4 configuration 1 interface 0 "Micron Built-in iSight" rev 2.00/1.84 addr 2
> > video0 at uvideo0
> > uhidev0 at uhub1 port 2 configuration 1 interface 0 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
> > uhidev0: iclass 3/1
> > ukbd0 at uhidev0: 8 variable keys, 5 key codes, country code 13
> > wskbd0 at ukbd0: console keyboard, using wsdisplay0
> > uhidev1 at uhub1 port 2 configuration 1 interface 1 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
> > uhidev1: iclass 3/1, 5 report ids
> > ums0 at uhidev1 reportid 2: 3 buttons
> > wsmouse0 at ums0 mux 0
> > ums1 at uhidev1 reportid 5
> > ums1: mouse has no X report
> > uhidev2 at uhub1 port 2 configuration 1 interface 2 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
> > uhidev2: iclass 3/0
> > uhid0 at uhidev2: input=1, output=0, feature=0
> > uhidev3 at uhub3 port 2 configuration 1 interface 0 "Apple Computer, Inc. IR Receiver" rev 2.00/1.10 addr 2
> > uhidev3: iclass 3/0, 38 report ids
> > uhid1 at uhidev3 reportid 36: input=4, output=0, feature=0
> > uhid2 at uhidev3 reportid 37: input=4, output=0, feature=0
> > uhid3 at uhidev3 reportid 38: input=4, output=0, feature=0
> > uhidev4 at uhub4 port 1 configuration 1 interface 0 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
> > uhidev4: iclass 3/1
> > ukbd1 at uhidev4: 8 variable keys, 6 key codes
> > wskbd1 at ukbd1 mux 1
> > wskbd1: connecting to wsdisplay0
> > uhidev5 at uhub4 port 1 configuration 1 interface 1 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
> > uhidev5: iclass 3/1
> > ums2 at uhidev5: 5 buttons
> > wsmouse1 at ums2 mux 0
> > vscsi0 at root
> > scsibus2 at vscsi0: 256 targets
> > softraid0 at root
> > scsibus3 at softraid0: 256 targets
> > sd0 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
> > sd0: 20821MB, 512 bytes/sector, 42642928 sectors
> > root on sd0a (075497a4ce516f3d.a) swap on sd0b dump on sd0b
> >
>
Re: macbook only sees 3GB of ram
1. it works, be happy.
2. the memory map from the bios is being honoured; the kernel makes
conservative decisions to honours it, as a result it works. see 1.
3. if you want to drill down further and get access to more memory,
you have the source code AND the hardware.
4. if you don't want to drill down, but just want to bitch, sorry noone
cares enough to do anything about this without the hardware, so go get
a padded box for it and maybe we can find a developer who will take the
machine off your hands.
> On May 31 08:48:09, hans@stare.cz wrote:
> > This is current/amd64 on an old MacBook A1181 (dmesg below).
> > Until yesterday it had 2+1 GB of RAM, now it has 2+2 GB.
> > However, dmesg still reports around 3GB.
> >
> > No, it's not the old dmesg; yes, I have checked. In fact,
> > spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> >
> > It's not a hardwware issue - the MacOS that dualboots this machine
> > sees and uses the 4GB. Am I missing something obvious?
> >
> > OpenBSD 6.1-current (GENERIC.MP) #0: Sat May 20 12:31:37 CEST 2017
> > hans@macbook.stare.cz:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > real mem = 3171909632 (3024MB)
> > avail mem = 3070050304 (2927MB)
>
> Here is a fresh upgrade to the latest snapshot
> - the issue is the same.
>
>
> OpenBSD 6.1-current (GENERIC.MP) #87: Tue May 30 21:05:25 MDT 2017
> deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 3171909632 (3024MB)
> avail mem = 3070050304 (2927MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0000 (37 entries)
> bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date 06/27/07
> bios0: Apple Inc. MacBook2,1
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
> acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB7(S3) EC__(S3)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.59 MHz
> cpu0: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
> cpu0: 4MB 64b/line 16-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 166MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.26 MHz
> cpu1: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
> cpu1: 4MB 64b/line 16-way L2 cache
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
> acpimcfg0 at acpi0 addr 0xf0000000, bus 0-255
> acpiec0 at acpi0
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (RP01)
> acpiprt2 at acpi0: bus 2 (RP02)
> acpiprt3 at acpi0: bus 3 (PCIB)
> acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
> acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
> acpisbs0 at acpi0: SBS0 model "ASMB016" serial 19351 type LION oem "DP"
> acpiac0 at acpi0: AC unit online
> acpibtn0 at acpi0: LID0
> "APP0002" at acpi0 not configured
> acpibtn1 at acpi0: PWRB
> acpibtn2 at acpi0: SLPB
> "APP0001" at acpi0 not configured
> "APP0003" at acpi0 not configured
> "ACPI0001" at acpi0 not configured
> acpivideo0 at acpi0: GFX0
> cpu0: Enhanced SpeedStep 2161 MHz: speeds: 2167, 2000, 1833, 1667, 1500, 1333, 1000 MHz
> memory map conflict 0xbef00000/0x100000
> memory map conflict 0xbf000000/0x1000000
> memory map conflict 0xf00f8000/0x1000
> memory map conflict 0xfed1c000/0x4000
> memory map conflict 0xfffb0000/0x30000
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
> inteldrm0 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
> drm0 at inteldrm0
> intagp0 at inteldrm0
> agp0 at intagp0: aperture at 0xc0000000, size 0x10000000
> inteldrm0: apic 1 int 16
> inteldrm0: 1280x800, 32bpp
> wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
> vendor "Intel", unknown product 0x27a3 (class DASP subclass Time and Frequency, rev 0x03) at pci0 dev 7 function 0 not configured
> azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
> azalia0: codecs: Sigmatel STAC9220/1
> audio0 at azalia0
> ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: msi
> pci1 at ppb0 bus 1
> mskc0 at pci1 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x22, Yukon-2 EC rev. A3 (0x2): msi
> msk0 at mskc0 port A: address 00:1b:63:36:2b:5d
> eephy0 at msk0 phy 0: 88E1111 Gigabit PHY, rev. 2
> ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: msi
> pci2 at ppb1 bus 2
> athn0 at pci2 dev 0 function 0 "Atheros AR5418" rev 0x01: apic 1 int 17
> athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 4, address 00:1c:b3:c4:b2:ae
> uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 21
> uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 19
> uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
> uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 16
> ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 21
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
> pci3 at ppb2 bus 3
> "AT&T/Lucent FW322 1394" rev 0x61 at pci3 dev 3 function 0 not configured
> pcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02
> pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
> atapiscsi0 at pciide0 channel 0 drive 0
> scsibus1 at atapiscsi0: 2 targets
> cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-R UJ-857E, ZB0E> ATAPI 5/cdrom removable
> cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
> pciide0: channel 1 disabled (no drives)
> pciide1 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
> pciide1: using apic 1 int 19 for native-PCI interrupt
> wd0 at pciide1 channel 0 drive 1: <ST980811AS>
> wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
> wd0(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 6
> ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 1 int 19
> iic0 at ichiic0
> iic0: addr 0x48 00=36 01=00 02=4b 03=50 words 00=3680 01=00ff 02=4b00 03=5000 04=ffff 05=ffff 06=ffff 07=ffff
> spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> usb1 at uhci0: USB revision 1.0
> uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb2 at uhci1: USB revision 1.0
> uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb3 at uhci2: USB revision 1.0
> uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb4 at uhci3: USB revision 1.0
> uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> isa0 at pcib0
> isadma0 at isa0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> asmc0 at isa0 port 0x300/32: rev 1.17f517, 226 keys
> vmm0 at mainbus0: VMX
> drm: render error detected, EIR: 0x00000010
> drm: page table error
> drm: PGTBL_ER: 0x00000102
> error: [drm:pid0:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x00000010, masking
> drm: render error detected, EIR: 0x00000010
> drm: page table error
> drm: PGTBL_ER: 0x00000102
> uvideo0 at uhub0 port 4 configuration 1 interface 0 "Micron Built-in iSight" rev 2.00/1.84 addr 2
> video0 at uvideo0
> uhidev0 at uhub1 port 2 configuration 1 interface 0 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
> uhidev0: iclass 3/1
> ukbd0 at uhidev0: 8 variable keys, 5 key codes, country code 13
> wskbd0 at ukbd0: console keyboard, using wsdisplay0
> uhidev1 at uhub1 port 2 configuration 1 interface 1 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
> uhidev1: iclass 3/1, 5 report ids
> ums0 at uhidev1 reportid 2: 3 buttons
> wsmouse0 at ums0 mux 0
> ums1 at uhidev1 reportid 5
> ums1: mouse has no X report
> uhidev2 at uhub1 port 2 configuration 1 interface 2 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
> uhidev2: iclass 3/0
> uhid0 at uhidev2: input=1, output=0, feature=0
> uhidev3 at uhub3 port 2 configuration 1 interface 0 "Apple Computer, Inc. IR Receiver" rev 2.00/1.10 addr 2
> uhidev3: iclass 3/0, 38 report ids
> uhid1 at uhidev3 reportid 36: input=4, output=0, feature=0
> uhid2 at uhidev3 reportid 37: input=4, output=0, feature=0
> uhid3 at uhidev3 reportid 38: input=4, output=0, feature=0
> uhidev4 at uhub4 port 1 configuration 1 interface 0 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
> uhidev4: iclass 3/1
> ukbd1 at uhidev4: 8 variable keys, 6 key codes
> wskbd1 at ukbd1 mux 1
> wskbd1: connecting to wsdisplay0
> uhidev5 at uhub4 port 1 configuration 1 interface 1 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
> uhidev5: iclass 3/1
> ums2 at uhidev5: 5 buttons
> wsmouse1 at ums2 mux 0
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> sd0 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
> sd0: 20821MB, 512 bytes/sector, 42642928 sectors
> root on sd0a (075497a4ce516f3d.a) swap on sd0b dump on sd0b
>
2. the memory map from the bios is being honoured; the kernel makes
conservative decisions to honours it, as a result it works. see 1.
3. if you want to drill down further and get access to more memory,
you have the source code AND the hardware.
4. if you don't want to drill down, but just want to bitch, sorry noone
cares enough to do anything about this without the hardware, so go get
a padded box for it and maybe we can find a developer who will take the
machine off your hands.
> On May 31 08:48:09, hans@stare.cz wrote:
> > This is current/amd64 on an old MacBook A1181 (dmesg below).
> > Until yesterday it had 2+1 GB of RAM, now it has 2+2 GB.
> > However, dmesg still reports around 3GB.
> >
> > No, it's not the old dmesg; yes, I have checked. In fact,
> > spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> >
> > It's not a hardwware issue - the MacOS that dualboots this machine
> > sees and uses the 4GB. Am I missing something obvious?
> >
> > OpenBSD 6.1-current (GENERIC.MP) #0: Sat May 20 12:31:37 CEST 2017
> > hans@macbook.stare.cz:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > real mem = 3171909632 (3024MB)
> > avail mem = 3070050304 (2927MB)
>
> Here is a fresh upgrade to the latest snapshot
> - the issue is the same.
>
>
> OpenBSD 6.1-current (GENERIC.MP) #87: Tue May 30 21:05:25 MDT 2017
> deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 3171909632 (3024MB)
> avail mem = 3070050304 (2927MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0000 (37 entries)
> bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date 06/27/07
> bios0: Apple Inc. MacBook2,1
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
> acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB7(S3) EC__(S3)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.59 MHz
> cpu0: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
> cpu0: 4MB 64b/line 16-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 166MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.26 MHz
> cpu1: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
> cpu1: 4MB 64b/line 16-way L2 cache
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
> acpimcfg0 at acpi0 addr 0xf0000000, bus 0-255
> acpiec0 at acpi0
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (RP01)
> acpiprt2 at acpi0: bus 2 (RP02)
> acpiprt3 at acpi0: bus 3 (PCIB)
> acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
> acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
> acpisbs0 at acpi0: SBS0 model "ASMB016" serial 19351 type LION oem "DP"
> acpiac0 at acpi0: AC unit online
> acpibtn0 at acpi0: LID0
> "APP0002" at acpi0 not configured
> acpibtn1 at acpi0: PWRB
> acpibtn2 at acpi0: SLPB
> "APP0001" at acpi0 not configured
> "APP0003" at acpi0 not configured
> "ACPI0001" at acpi0 not configured
> acpivideo0 at acpi0: GFX0
> cpu0: Enhanced SpeedStep 2161 MHz: speeds: 2167, 2000, 1833, 1667, 1500, 1333, 1000 MHz
> memory map conflict 0xbef00000/0x100000
> memory map conflict 0xbf000000/0x1000000
> memory map conflict 0xf00f8000/0x1000
> memory map conflict 0xfed1c000/0x4000
> memory map conflict 0xfffb0000/0x30000
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
> inteldrm0 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
> drm0 at inteldrm0
> intagp0 at inteldrm0
> agp0 at intagp0: aperture at 0xc0000000, size 0x10000000
> inteldrm0: apic 1 int 16
> inteldrm0: 1280x800, 32bpp
> wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
> vendor "Intel", unknown product 0x27a3 (class DASP subclass Time and Frequency, rev 0x03) at pci0 dev 7 function 0 not configured
> azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
> azalia0: codecs: Sigmatel STAC9220/1
> audio0 at azalia0
> ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: msi
> pci1 at ppb0 bus 1
> mskc0 at pci1 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x22, Yukon-2 EC rev. A3 (0x2): msi
> msk0 at mskc0 port A: address 00:1b:63:36:2b:5d
> eephy0 at msk0 phy 0: 88E1111 Gigabit PHY, rev. 2
> ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: msi
> pci2 at ppb1 bus 2
> athn0 at pci2 dev 0 function 0 "Atheros AR5418" rev 0x01: apic 1 int 17
> athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 4, address 00:1c:b3:c4:b2:ae
> uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 21
> uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 19
> uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
> uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 16
> ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 21
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
> pci3 at ppb2 bus 3
> "AT&T/Lucent FW322 1394" rev 0x61 at pci3 dev 3 function 0 not configured
> pcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02
> pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
> atapiscsi0 at pciide0 channel 0 drive 0
> scsibus1 at atapiscsi0: 2 targets
> cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-R UJ-857E, ZB0E> ATAPI 5/cdrom removable
> cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
> pciide0: channel 1 disabled (no drives)
> pciide1 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
> pciide1: using apic 1 int 19 for native-PCI interrupt
> wd0 at pciide1 channel 0 drive 1: <ST980811AS>
> wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
> wd0(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 6
> ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 1 int 19
> iic0 at ichiic0
> iic0: addr 0x48 00=36 01=00 02=4b 03=50 words 00=3680 01=00ff 02=4b00 03=5000 04=ffff 05=ffff 06=ffff 07=ffff
> spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> usb1 at uhci0: USB revision 1.0
> uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb2 at uhci1: USB revision 1.0
> uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb3 at uhci2: USB revision 1.0
> uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb4 at uhci3: USB revision 1.0
> uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> isa0 at pcib0
> isadma0 at isa0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> asmc0 at isa0 port 0x300/32: rev 1.17f517, 226 keys
> vmm0 at mainbus0: VMX
> drm: render error detected, EIR: 0x00000010
> drm: page table error
> drm: PGTBL_ER: 0x00000102
> error: [drm:pid0:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x00000010, masking
> drm: render error detected, EIR: 0x00000010
> drm: page table error
> drm: PGTBL_ER: 0x00000102
> uvideo0 at uhub0 port 4 configuration 1 interface 0 "Micron Built-in iSight" rev 2.00/1.84 addr 2
> video0 at uvideo0
> uhidev0 at uhub1 port 2 configuration 1 interface 0 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
> uhidev0: iclass 3/1
> ukbd0 at uhidev0: 8 variable keys, 5 key codes, country code 13
> wskbd0 at ukbd0: console keyboard, using wsdisplay0
> uhidev1 at uhub1 port 2 configuration 1 interface 1 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
> uhidev1: iclass 3/1, 5 report ids
> ums0 at uhidev1 reportid 2: 3 buttons
> wsmouse0 at ums0 mux 0
> ums1 at uhidev1 reportid 5
> ums1: mouse has no X report
> uhidev2 at uhub1 port 2 configuration 1 interface 2 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
> uhidev2: iclass 3/0
> uhid0 at uhidev2: input=1, output=0, feature=0
> uhidev3 at uhub3 port 2 configuration 1 interface 0 "Apple Computer, Inc. IR Receiver" rev 2.00/1.10 addr 2
> uhidev3: iclass 3/0, 38 report ids
> uhid1 at uhidev3 reportid 36: input=4, output=0, feature=0
> uhid2 at uhidev3 reportid 37: input=4, output=0, feature=0
> uhid3 at uhidev3 reportid 38: input=4, output=0, feature=0
> uhidev4 at uhub4 port 1 configuration 1 interface 0 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
> uhidev4: iclass 3/1
> ukbd1 at uhidev4: 8 variable keys, 6 key codes
> wskbd1 at ukbd1 mux 1
> wskbd1: connecting to wsdisplay0
> uhidev5 at uhub4 port 1 configuration 1 interface 1 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
> uhidev5: iclass 3/1
> ums2 at uhidev5: 5 buttons
> wsmouse1 at ums2 mux 0
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> sd0 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
> sd0: 20821MB, 512 bytes/sector, 42642928 sectors
> root on sd0a (075497a4ce516f3d.a) swap on sd0b dump on sd0b
>
Re: macbook only sees 3GB of ram
On May 31 08:48:09, hans@stare.cz wrote:
> This is current/amd64 on an old MacBook A1181 (dmesg below).
> Until yesterday it had 2+1 GB of RAM, now it has 2+2 GB.
> However, dmesg still reports around 3GB.
>
> No, it's not the old dmesg; yes, I have checked. In fact,
> spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
>
> It's not a hardwware issue - the MacOS that dualboots this machine
> sees and uses the 4GB. Am I missing something obvious?
>
> OpenBSD 6.1-current (GENERIC.MP) #0: Sat May 20 12:31:37 CEST 2017
> hans@macbook.stare.cz:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 3171909632 (3024MB)
> avail mem = 3070050304 (2927MB)
Here is a fresh upgrade to the latest snapshot
- the issue is the same.
OpenBSD 6.1-current (GENERIC.MP) #87: Tue May 30 21:05:25 MDT 2017
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3171909632 (3024MB)
avail mem = 3070050304 (2927MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0000 (37 entries)
bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date 06/27/07
bios0: Apple Inc. MacBook2,1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB7(S3) EC__(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.59 MHz
cpu0: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.26 MHz
cpu1: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf0000000, bus 0-255
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP02)
acpiprt3 at acpi0: bus 3 (PCIB)
acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
acpisbs0 at acpi0: SBS0 model "ASMB016" serial 19351 type LION oem "DP"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
"APP0002" at acpi0 not configured
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
"APP0001" at acpi0 not configured
"APP0003" at acpi0 not configured
"ACPI0001" at acpi0 not configured
acpivideo0 at acpi0: GFX0
cpu0: Enhanced SpeedStep 2161 MHz: speeds: 2167, 2000, 1833, 1667, 1500, 1333, 1000 MHz
memory map conflict 0xbef00000/0x100000
memory map conflict 0xbf000000/0x1000000
memory map conflict 0xf00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xfffb0000/0x30000
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
inteldrm0 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xc0000000, size 0x10000000
inteldrm0: apic 1 int 16
inteldrm0: 1280x800, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
vendor "Intel", unknown product 0x27a3 (class DASP subclass Time and Frequency, rev 0x03) at pci0 dev 7 function 0 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Sigmatel STAC9220/1
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: msi
pci1 at ppb0 bus 1
mskc0 at pci1 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x22, Yukon-2 EC rev. A3 (0x2): msi
msk0 at mskc0 port A: address 00:1b:63:36:2b:5d
eephy0 at msk0 phy 0: 88E1111 Gigabit PHY, rev. 2
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 "Atheros AR5418" rev 0x01: apic 1 int 17
athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 4, address 00:1c:b3:c4:b2:ae
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 21
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 21
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci3 at ppb2 bus 3
"AT&T/Lucent FW322 1394" rev 0x61 at pci3 dev 3 function 0 not configured
pcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-R UJ-857E, ZB0E> ATAPI 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 19 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 1: <ST980811AS>
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 1 int 19
iic0 at ichiic0
iic0: addr 0x48 00=36 01=00 02=4b 03=50 words 00=3680 01=00ff 02=4b00 03=5000 04=ffff 05=ffff 06=ffff 07=ffff
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
asmc0 at isa0 port 0x300/32: rev 1.17f517, 226 keys
vmm0 at mainbus0: VMX
drm: render error detected, EIR: 0x00000010
drm: page table error
drm: PGTBL_ER: 0x00000102
error: [drm:pid0:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x00000010, masking
drm: render error detected, EIR: 0x00000010
drm: page table error
drm: PGTBL_ER: 0x00000102
uvideo0 at uhub0 port 4 configuration 1 interface 0 "Micron Built-in iSight" rev 2.00/1.84 addr 2
video0 at uvideo0
uhidev0 at uhub1 port 2 configuration 1 interface 0 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 5 key codes, country code 13
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub1 port 2 configuration 1 interface 1 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
uhidev1: iclass 3/1, 5 report ids
ums0 at uhidev1 reportid 2: 3 buttons
wsmouse0 at ums0 mux 0
ums1 at uhidev1 reportid 5
ums1: mouse has no X report
uhidev2 at uhub1 port 2 configuration 1 interface 2 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
uhidev2: iclass 3/0
uhid0 at uhidev2: input=1, output=0, feature=0
uhidev3 at uhub3 port 2 configuration 1 interface 0 "Apple Computer, Inc. IR Receiver" rev 2.00/1.10 addr 2
uhidev3: iclass 3/0, 38 report ids
uhid1 at uhidev3 reportid 36: input=4, output=0, feature=0
uhid2 at uhidev3 reportid 37: input=4, output=0, feature=0
uhid3 at uhidev3 reportid 38: input=4, output=0, feature=0
uhidev4 at uhub4 port 1 configuration 1 interface 0 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
uhidev4: iclass 3/1
ukbd1 at uhidev4: 8 variable keys, 6 key codes
wskbd1 at ukbd1 mux 1
wskbd1: connecting to wsdisplay0
uhidev5 at uhub4 port 1 configuration 1 interface 1 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
uhidev5: iclass 3/1
ums2 at uhidev5: 5 buttons
wsmouse1 at ums2 mux 0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd0 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd0: 20821MB, 512 bytes/sector, 42642928 sectors
root on sd0a (075497a4ce516f3d.a) swap on sd0b dump on sd0b
> This is current/amd64 on an old MacBook A1181 (dmesg below).
> Until yesterday it had 2+1 GB of RAM, now it has 2+2 GB.
> However, dmesg still reports around 3GB.
>
> No, it's not the old dmesg; yes, I have checked. In fact,
> spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
>
> It's not a hardwware issue - the MacOS that dualboots this machine
> sees and uses the 4GB. Am I missing something obvious?
>
> OpenBSD 6.1-current (GENERIC.MP) #0: Sat May 20 12:31:37 CEST 2017
> hans@macbook.stare.cz:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 3171909632 (3024MB)
> avail mem = 3070050304 (2927MB)
Here is a fresh upgrade to the latest snapshot
- the issue is the same.
OpenBSD 6.1-current (GENERIC.MP) #87: Tue May 30 21:05:25 MDT 2017
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3171909632 (3024MB)
avail mem = 3070050304 (2927MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0000 (37 entries)
bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date 06/27/07
bios0: Apple Inc. MacBook2,1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB7(S3) EC__(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.59 MHz
cpu0: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.26 MHz
cpu1: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf0000000, bus 0-255
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP02)
acpiprt3 at acpi0: bus 3 (PCIB)
acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
acpisbs0 at acpi0: SBS0 model "ASMB016" serial 19351 type LION oem "DP"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
"APP0002" at acpi0 not configured
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
"APP0001" at acpi0 not configured
"APP0003" at acpi0 not configured
"ACPI0001" at acpi0 not configured
acpivideo0 at acpi0: GFX0
cpu0: Enhanced SpeedStep 2161 MHz: speeds: 2167, 2000, 1833, 1667, 1500, 1333, 1000 MHz
memory map conflict 0xbef00000/0x100000
memory map conflict 0xbf000000/0x1000000
memory map conflict 0xf00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xfffb0000/0x30000
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
inteldrm0 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xc0000000, size 0x10000000
inteldrm0: apic 1 int 16
inteldrm0: 1280x800, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
vendor "Intel", unknown product 0x27a3 (class DASP subclass Time and Frequency, rev 0x03) at pci0 dev 7 function 0 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Sigmatel STAC9220/1
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: msi
pci1 at ppb0 bus 1
mskc0 at pci1 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x22, Yukon-2 EC rev. A3 (0x2): msi
msk0 at mskc0 port A: address 00:1b:63:36:2b:5d
eephy0 at msk0 phy 0: 88E1111 Gigabit PHY, rev. 2
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 "Atheros AR5418" rev 0x01: apic 1 int 17
athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 4, address 00:1c:b3:c4:b2:ae
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 21
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 21
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci3 at ppb2 bus 3
"AT&T/Lucent FW322 1394" rev 0x61 at pci3 dev 3 function 0 not configured
pcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-R UJ-857E, ZB0E> ATAPI 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 19 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 1: <ST980811AS>
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 1 int 19
iic0 at ichiic0
iic0: addr 0x48 00=36 01=00 02=4b 03=50 words 00=3680 01=00ff 02=4b00 03=5000 04=ffff 05=ffff 06=ffff 07=ffff
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
asmc0 at isa0 port 0x300/32: rev 1.17f517, 226 keys
vmm0 at mainbus0: VMX
drm: render error detected, EIR: 0x00000010
drm: page table error
drm: PGTBL_ER: 0x00000102
error: [drm:pid0:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x00000010, masking
drm: render error detected, EIR: 0x00000010
drm: page table error
drm: PGTBL_ER: 0x00000102
uvideo0 at uhub0 port 4 configuration 1 interface 0 "Micron Built-in iSight" rev 2.00/1.84 addr 2
video0 at uvideo0
uhidev0 at uhub1 port 2 configuration 1 interface 0 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 5 key codes, country code 13
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub1 port 2 configuration 1 interface 1 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
uhidev1: iclass 3/1, 5 report ids
ums0 at uhidev1 reportid 2: 3 buttons
wsmouse0 at ums0 mux 0
ums1 at uhidev1 reportid 5
ums1: mouse has no X report
uhidev2 at uhub1 port 2 configuration 1 interface 2 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
uhidev2: iclass 3/0
uhid0 at uhidev2: input=1, output=0, feature=0
uhidev3 at uhub3 port 2 configuration 1 interface 0 "Apple Computer, Inc. IR Receiver" rev 2.00/1.10 addr 2
uhidev3: iclass 3/0, 38 report ids
uhid1 at uhidev3 reportid 36: input=4, output=0, feature=0
uhid2 at uhidev3 reportid 37: input=4, output=0, feature=0
uhid3 at uhidev3 reportid 38: input=4, output=0, feature=0
uhidev4 at uhub4 port 1 configuration 1 interface 0 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
uhidev4: iclass 3/1
ukbd1 at uhidev4: 8 variable keys, 6 key codes
wskbd1 at ukbd1 mux 1
wskbd1: connecting to wsdisplay0
uhidev5 at uhub4 port 1 configuration 1 interface 1 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
uhidev5: iclass 3/1
ums2 at uhidev5: 5 buttons
wsmouse1 at ums2 mux 0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd0 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd0: 20821MB, 512 bytes/sector, 42642928 sectors
root on sd0a (075497a4ce516f3d.a) swap on sd0b dump on sd0b
Tuesday, May 30, 2017
macbook only sees 3GB of ram
This is current/amd64 on an old MacBook A1181 (dmesg below).
Until yesterday it had 2+1 GB of RAM, now it has 2+2 GB.
However, dmesg still reports around 3GB.
No, it's not the old dmesg; yes, I have checked. In fact,
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
It's not a hardwware issue - the MacOS that dualboots this machine
sees and uses the 4GB. Am I missing something obvious?
Jan
OpenBSD 6.1-current (GENERIC.MP) #0: Sat May 20 12:31:37 CEST 2017
hans@macbook.stare.cz:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3171909632 (3024MB)
avail mem = 3070050304 (2927MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0000 (37 entries)
bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date 06/27/07
bios0: Apple Inc. MacBook2,1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB7(S3) EC__(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.56 MHz
cpu0: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.25 MHz
cpu1: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf0000000, bus 0-255
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP02)
acpiprt3 at acpi0: bus 3 (PCIB)
acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
acpisbs0 at acpi0: SBS0 model "ASMB016" serial 19351 type LION oem "DP"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
"APP0002" at acpi0 not configured
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
"APP0001" at acpi0 not configured
"APP0003" at acpi0 not configured
"ACPI0001" at acpi0 not configured
acpivideo0 at acpi0: GFX0
cpu0: Enhanced SpeedStep 2161 MHz: speeds: 2167, 2000, 1833, 1667, 1500, 1333, 1000 MHz
memory map conflict 0xbef00000/0x100000
memory map conflict 0xbf000000/0x1000000
memory map conflict 0xf00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xfffb0000/0x30000
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
inteldrm0 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xc0000000, size 0x10000000
inteldrm0: apic 1 int 16
inteldrm0: 1280x800, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
vendor "Intel", unknown product 0x27a3 (class DASP subclass Time and Frequency, rev 0x03) at pci0 dev 7 function 0 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Sigmatel STAC9220/1
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: msi
pci1 at ppb0 bus 1
mskc0 at pci1 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x22, Yukon-2 EC rev. A3 (0x2): msi
msk0 at mskc0 port A: address 00:1b:63:36:2b:5d
eephy0 at msk0 phy 0: 88E1111 Gigabit PHY, rev. 2
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 "Atheros AR5418" rev 0x01: apic 1 int 17
athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 4, address 00:1c:b3:c4:b2:ae
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 21
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 21
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci3 at ppb2 bus 3
"AT&T/Lucent FW322 1394" rev 0x61 at pci3 dev 3 function 0 not configured
pcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-R UJ-857E, ZB0E> ATAPI 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 19 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 1: <ST980811AS>
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 1 int 19
iic0 at ichiic0
iic0: addr 0x48 00=31 01=00 02=4b 03=50 words 00=3100 01=00ff 02=4b00 03=5000 04=ffff 05=ffff 06=ffff 07=ffff
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
asmc0 at isa0 port 0x300/32: rev 1.17f517, 226 keys
vmm0 at mainbus0: VMX
drm: render error detected, EIR: 0x00000010
drm: page table error
drm: PGTBL_ER: 0x00000102
error: [drm:pid0:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x00000010, masking
drm: render error detected, EIR: 0x00000010
drm: page table error
drm: PGTBL_ER: 0x00000102
uvideo0 at uhub0 port 4 configuration 1 interface 0 "Apple Computer Bluetooth" rev 2.00/0.0c addr 2
uhidev0 at uhub1 port 2 configuration 1 interface 0 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 5 key codes, country code 13
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub1 port 2 configuration 1 interface 1 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
uhidev1: iclass 3/1, 5 report ids
ums0 at uhidev1 reportid 2: 3 buttons
wsmouse0 at ums0 mux 0
ums1 at uhidev1 reportid 5
ums1: mouse has no X report
uhidev2 at uhub1 port 2 configuration 1 interface 2 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
uhidev2: iclass 3/0
uhid0 at uhidev2: input=1, output=0, feature=0
uhidev3 at uhub3 port 2 configuration 1 interface 0 "Apple Computer, Inc. IR Receiver" rev 2.00/1.10 addr 2
uhidev3: iclass 3/0, 38 report ids
uhid1 at uhidev3 reportid 36: input=4, output=0, feature=0
uhid2 at uhidev3 reportid 37: input=4, output=0, feature=0
uhid3 at uhidev3 reportid 38: input=4, output=0, feature=0
uhidev4 at uhub4 port 1 configuration 1 interface 0 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
uhidev4: iclass 3/1
ukbd1 at uhidev4: 8 variable keys, 6 key codes
wskbd1 at ukbd1 mux 1
wskbd1: connecting to wsdisplay0
uhidev5 at uhub4 port 1 configuration 1 interface 1 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
uhidev5: iclass 3/1
ums2 at uhidev5: 5 buttons
wsmouse1 at ums2 mux 0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd0 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd0: 20821MB, 512 bytes/sector, 42642928 sectors
root on sd0a (075497a4ce516f3d.a) swap on sd0b dump on sd0b
uvideo0 detached
uvideo0 at uhub0 port 4 configuration 1 interface 0 "Micron Built-in iSight" rev 2.00/1.84 addr 2
video0 at uvideo0
Until yesterday it had 2+1 GB of RAM, now it has 2+2 GB.
However, dmesg still reports around 3GB.
No, it's not the old dmesg; yes, I have checked. In fact,
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
It's not a hardwware issue - the MacOS that dualboots this machine
sees and uses the 4GB. Am I missing something obvious?
Jan
OpenBSD 6.1-current (GENERIC.MP) #0: Sat May 20 12:31:37 CEST 2017
hans@macbook.stare.cz:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3171909632 (3024MB)
avail mem = 3070050304 (2927MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0000 (37 entries)
bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date 06/27/07
bios0: Apple Inc. MacBook2,1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB7(S3) EC__(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.56 MHz
cpu0: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.25 MHz
cpu1: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf0000000, bus 0-255
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP02)
acpiprt3 at acpi0: bus 3 (PCIB)
acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 mwait), PSS
acpisbs0 at acpi0: SBS0 model "ASMB016" serial 19351 type LION oem "DP"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
"APP0002" at acpi0 not configured
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
"APP0001" at acpi0 not configured
"APP0003" at acpi0 not configured
"ACPI0001" at acpi0 not configured
acpivideo0 at acpi0: GFX0
cpu0: Enhanced SpeedStep 2161 MHz: speeds: 2167, 2000, 1833, 1667, 1500, 1333, 1000 MHz
memory map conflict 0xbef00000/0x100000
memory map conflict 0xbf000000/0x1000000
memory map conflict 0xf00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xfffb0000/0x30000
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
inteldrm0 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xc0000000, size 0x10000000
inteldrm0: apic 1 int 16
inteldrm0: 1280x800, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
vendor "Intel", unknown product 0x27a3 (class DASP subclass Time and Frequency, rev 0x03) at pci0 dev 7 function 0 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Sigmatel STAC9220/1
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: msi
pci1 at ppb0 bus 1
mskc0 at pci1 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x22, Yukon-2 EC rev. A3 (0x2): msi
msk0 at mskc0 port A: address 00:1b:63:36:2b:5d
eephy0 at msk0 phy 0: 88E1111 Gigabit PHY, rev. 2
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 "Atheros AR5418" rev 0x01: apic 1 int 17
athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 4, address 00:1c:b3:c4:b2:ae
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 21
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 21
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci3 at ppb2 bus 3
"AT&T/Lucent FW322 1394" rev 0x61 at pci3 dev 3 function 0 not configured
pcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-R UJ-857E, ZB0E> ATAPI 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 19 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 1: <ST980811AS>
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 1 int 19
iic0 at ichiic0
iic0: addr 0x48 00=31 01=00 02=4b 03=50 words 00=3100 01=00ff 02=4b00 03=5000 04=ffff 05=ffff 06=ffff 07=ffff
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
asmc0 at isa0 port 0x300/32: rev 1.17f517, 226 keys
vmm0 at mainbus0: VMX
drm: render error detected, EIR: 0x00000010
drm: page table error
drm: PGTBL_ER: 0x00000102
error: [drm:pid0:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x00000010, masking
drm: render error detected, EIR: 0x00000010
drm: page table error
drm: PGTBL_ER: 0x00000102
uvideo0 at uhub0 port 4 configuration 1 interface 0 "Apple Computer Bluetooth" rev 2.00/0.0c addr 2
uhidev0 at uhub1 port 2 configuration 1 interface 0 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 5 key codes, country code 13
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub1 port 2 configuration 1 interface 1 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
uhidev1: iclass 3/1, 5 report ids
ums0 at uhidev1 reportid 2: 3 buttons
wsmouse0 at ums0 mux 0
ums1 at uhidev1 reportid 5
ums1: mouse has no X report
uhidev2 at uhub1 port 2 configuration 1 interface 2 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.18 addr 2
uhidev2: iclass 3/0
uhid0 at uhidev2: input=1, output=0, feature=0
uhidev3 at uhub3 port 2 configuration 1 interface 0 "Apple Computer, Inc. IR Receiver" rev 2.00/1.10 addr 2
uhidev3: iclass 3/0, 38 report ids
uhid1 at uhidev3 reportid 36: input=4, output=0, feature=0
uhid2 at uhidev3 reportid 37: input=4, output=0, feature=0
uhid3 at uhidev3 reportid 38: input=4, output=0, feature=0
uhidev4 at uhub4 port 1 configuration 1 interface 0 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
uhidev4: iclass 3/1
ukbd1 at uhidev4: 8 variable keys, 6 key codes
wskbd1 at ukbd1 mux 1
wskbd1: connecting to wsdisplay0
uhidev5 at uhub4 port 1 configuration 1 interface 1 "Apple Computer HID-proxy" rev 2.00/19.65 addr 2
uhidev5: iclass 3/1
ums2 at uhidev5: 5 buttons
wsmouse1 at ums2 mux 0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd0 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd0: 20821MB, 512 bytes/sector, 42642928 sectors
root on sd0a (075497a4ce516f3d.a) swap on sd0b dump on sd0b
uvideo0 detached
uvideo0 at uhub0 port 4 configuration 1 interface 0 "Micron Built-in iSight" rev 2.00/1.84 addr 2
video0 at uvideo0
Re: Blank screen after boot with Radeon HD 5450
On Wed, May 31, 2017 at 1:02 AM, Luis Coronado <lcoronado@ticoit.com> wrote:
> xrandr over ssh? even if you run it with -X it will display something from
> the machine running the ssh client (and the local X server) not the ssh
> server one :s
>
> -l
>
> On Tue, May 30, 2017 at 3:08 PM, Mihai Popescu <mihscu@gmail.com> wrote:
>>
>> What is the output of xrandr plain command, without any parameters? Do
>> not use display numbers or anything else, type it like this 'xrandr'
>> using a ssh connection on the non working configuration.
>>
>
It looks like xrandr reports are not helpful. I think you shoudl
enable the onboard card, find a second monitor from a friend and try
to boot with both monitor connected. Then you can debug.
> xrandr over ssh? even if you run it with -X it will display something from
> the machine running the ssh client (and the local X server) not the ssh
> server one :s
>
> -l
>
> On Tue, May 30, 2017 at 3:08 PM, Mihai Popescu <mihscu@gmail.com> wrote:
>>
>> What is the output of xrandr plain command, without any parameters? Do
>> not use display numbers or anything else, type it like this 'xrandr'
>> using a ssh connection on the non working configuration.
>>
>
It looks like xrandr reports are not helpful. I think you shoudl
enable the onboard card, find a second monitor from a friend and try
to boot with both monitor connected. Then you can debug.
Re: [NEW] www/h2o
ping with a newer version this time.
On 14 March 2017 at 22:13, David CARLIER <devnexen@gmail.com> wrote:
> ping
>
> On 18 February 2017 at 14:33, David CARLIER <devnexen@gmail.com> wrote:
>
>> ping :-)
>>
>> On 9 February 2017 at 20:31, David CARLIER <devnexen@gmail.com> wrote:
>>
>>> Thanks for your inputs. Here a new version. Regards.
>>>
>>> On 9 February 2017 at 17:35, Stuart Henderson <stu@spacehopper.org>
>>> wrote:
>>>
>>>> On 2017/02/09 16:04, David CARLIER wrote:
>>>> > ping :-)
>>>> >
>>>> > On 27 January 2017 at 22:57, David CARLIER <devnexen@gmail.com>
>>>> wrote:
>>>> >
>>>> > > Hi all,
>>>> > >
>>>> > > This is an early draft of a possible import of h2o into the tree.
>>>> > >
>>>> > > Let me know what you think.
>>>> > >
>>>> > > Thanks.
>>>> > >
>>>>
>>>> On 2017/01/27 22:57, David CARLIER wrote:
>>>> > diff --git a/www/h2o/Makefile b/www/h2o/Makefile
>>>>
>>>> tar.gz for ports submissions please.
>>>>
>>>> > new file mode 100644
>>>> > index 0000000..df7a730
>>>> > --- /dev/null
>>>> > +++ b/www/h2o/Makefile
>>>> > @@ -0,0 +1,35 @@
>>>> > +# $OpenBSD $
>>>> > +
>>>> > +COMMENT = Web server library
>>>>
>>>> lowercase first char. could do with being more descriptive. it's not
>>>> just a library.
>>>>
>>>> > +DISTNAME = v${V}
>>>> > +PKGNAME = h2o-${V}
>>>> > +V = 2.1.0
>>>> ..
>>>> > +MASTER_SITES = https://github.com/h2o/h2o/archive/
>>>> ..
>>>> > +WRKDIST = ${WRKDIR}/${PKGNAME}
>>>>
>>>> replace all the above with
>>>>
>>>> GH_ACCOUNT= h2o
>>>> GH_PROJECT= h2o
>>>> GH_TAGNAME= v2.1.0
>>>>
>>>> and regenerate distinfo
>>>>
>>>> > +
>>>> > +SHARED_LIBS = h2o-evloop 0.0
>>>> > +
>>>> > +CATEGORIES = www
>>>> > +
>>>> > +HOMEPAGE = http://h2o.examp1e.net
>>>>
>>>> immediately redirects to https://h2o.examp1e.net/, so better to use
>>>> that.
>>>>
>>>> > +
>>>> > +PERMIT_PACKAGE_CDROM = Yes
>>>> > +
>>>> > +MODULES = devel/cmake gcc4
>>>> > +MODGCC4_LANGS = c c++
>>>> > +MODGCC4_ARCHS = *
>>>> > +
>>>> > +CONFIGURE_ARGS = -DWITH_BUNDLED_SSL=OFF \
>>>> > + -DBUILD_SHARED_LIBS=ON \
>>>> > + -DWITH_MRUBY=OFF \
>>>> > + -DCMAKE_INSTALL_SYSCONFDIR=/etc/h2o
>>>> > +
>>>> > +NO_TEST = No
>>>> > +
>>>> > +post-install:
>>>> > + @mkdir /etc/h2o
>>>> > + ${INSTALL_DATA} ${FILESDIR}/h2o.conf /etc/h2o
>>>>
>>>> during packaging, install the files to ${PREFIX}/share/examples/h2o.
>>>>
>>>> in plist, do this
>>>>
>>>> share/examples/h2o/
>>>> @sample ${SYSCONFDIR}/h2o/
>>>> share/examples/h2o/h2o.conf
>>>> @sample ${SYSCONFDIR}/h2o/h2o.conf
>>>>
>>>> > diff --git a/www/h2o/files/h2o.conf b/www/h2o/files/h2o.conf
>>>> > new file mode 100644
>>>> > index 0000000..f57cd33
>>>> > --- /dev/null
>>>> > +++ b/www/h2o/files/h2o.conf
>>>> > @@ -0,0 +1,7 @@
>>>> > +listen: 8080
>>>> > +hosts:
>>>> > + "127.0.0.1:8080":
>>>> > + paths:
>>>> > + /:
>>>> > + file.dir: /var/www/htdocs
>>>> > + access-log: /var/log/h2o-access.log
>>>>
>>>> probably better to use something in /var/www/logs/ -
>>>> maybe just use the existing /var/www/logs/access.log?
>>>>
>>>> > diff --git a/www/h2o/pkg/DESCR b/www/h2o/pkg/DESCR
>>>> > new file mode 100644
>>>> > index 0000000..2b22290
>>>> > --- /dev/null
>>>> > +++ b/www/h2o/pkg/DESCR
>>>> > @@ -0,0 +1 @@
>>>> > +H2o is an optimized HTTP server with support for HTTP/1.x and HTTP/2
>>>>
>>>> could do with a bit more description here.
>>>> could use "optimized HTTP server with support for HTTP/1.x and HTTP/2"
>>>> as COMMENT..
>>>>
>>>> > diff --git a/www/h2o/pkg/PLIST b/www/h2o/pkg/PLIST
>>>> > new file mode 100644
>>>> > index 0000000..984f0d5
>>>> > --- /dev/null
>>>> > +++ b/www/h2o/pkg/PLIST
>>>> > @@ -0,0 +1,115 @@
>>>> > +@comment $OpenBSD$
>>>> > +@bin bin/h2o
>>>> > +@mode 700
>>>> > +@owner www
>>>> > +@group www
>>>> > +include/h2o/
>>>> > +include/h2o.h
>>>> > +include/h2o/cache.h
>>>> <..>
>>>>
>>>> these @mode/@owner/@group are wrong. www should never be able to write
>>>> to
>>>> these sorts of file.
>>>>
>>>> > +include/h2o/cache_digests.h
>>>> > +include/h2o/configurator.h
>>>> > +include/h2o/file.h
>>>> > +include/h2o/filecache.h
>>>> > +include/h2o/hostinfo.h
>>>> > +include/h2o/http1.h
>>>> > +include/h2o/http1client.h
>>>> > +include/h2o/http2.h
>>>> > +include/h2o/http2_casper.h
>>>> > +include/h2o/http2_internal.h
>>>> > +include/h2o/http2_scheduler.h
>>>> > +include/h2o/linklist.h
>>>> > +include/h2o/memcached.h
>>>> > +include/h2o/memory.h
>>>> > +include/h2o/mruby_.h
>>>> > +include/h2o/multithread.h
>>>> > +include/h2o/openssl_backport.h
>>>> > +include/h2o/rand.h
>>>> > +include/h2o/serverutil.h
>>>> > +include/h2o/socket/
>>>> > +include/h2o/socket.h
>>>> > +include/h2o/socket/evloop.h
>>>> > +include/h2o/socket/uv-binding.h
>>>> > +include/h2o/socketpool.h
>>>> > +include/h2o/string_.h
>>>> > +include/h2o/time_.h
>>>> > +include/h2o/timeout.h
>>>> > +include/h2o/token.h
>>>> > +include/h2o/tunnel.h
>>>> > +include/h2o/url.h
>>>> > +include/h2o/version.h
>>>> > +include/h2o/websocket.h
>>>> > +@lib lib/libh2o-evloop.so.${LIBh2o-evloop_VERSION}
>>>> > +lib/pkgconfig/libh2o-evloop.pc
>>>> > +share/doc/h2o/
>>>> > +share/doc/h2o/assets/
>>>> > +share/doc/h2o/assets/8mbps100msec-nginx195-h2o150.png
>>>> > +share/doc/h2o/assets/firstpaintbench.png
>>>> > +share/doc/h2o/assets/remotebench.png
>>>> > +share/doc/h2o/assets/searchstyle.css
>>>> > +share/doc/h2o/assets/staticfile612-nginx1910-h2o170.png
>>>> > +share/doc/h2o/assets/style.css
>>>> > +share/doc/h2o/benchmarks.html
>>>> > +share/doc/h2o/configure/
>>>> > +share/doc/h2o/configure.html
>>>> > +share/doc/h2o/configure/access_control.html
>>>> > +share/doc/h2o/configure/access_log_directives.html
>>>> > +share/doc/h2o/configure/base_directives.html
>>>> > +share/doc/h2o/configure/basic_auth.html
>>>> > +share/doc/h2o/configure/cgi.html
>>>> > +share/doc/h2o/configure/command_options.html
>>>> > +share/doc/h2o/configure/compress_directives.html
>>>> > +share/doc/h2o/configure/dos_detection.html
>>>> > +share/doc/h2o/configure/errordoc_directives.html
>>>> > +share/doc/h2o/configure/expires_directives.html
>>>> > +share/doc/h2o/configure/fastcgi_directives.html
>>>> > +share/doc/h2o/configure/file_directives.html
>>>> > +share/doc/h2o/configure/headers_directives.html
>>>> > +share/doc/h2o/configure/http1_directives.html
>>>> > +share/doc/h2o/configure/http2_directives.html
>>>> > +share/doc/h2o/configure/mruby.html
>>>> > +share/doc/h2o/configure/mruby_directives.html
>>>> > +share/doc/h2o/configure/proxy_directives.html
>>>> > +share/doc/h2o/configure/quick_start.html
>>>> > +share/doc/h2o/configure/redirect_directives.html
>>>> > +share/doc/h2o/configure/reproxy_directives.html
>>>> > +share/doc/h2o/configure/status_directives.html
>>>> > +share/doc/h2o/configure/syntax_and_structure.html
>>>> > +share/doc/h2o/configure/throttle_response_directives.html
>>>> > +share/doc/h2o/examples/
>>>> > +share/doc/h2o/examples/doc_root/
>>>> > +share/doc/h2o/examples/doc_root.alternate/
>>>> > +share/doc/h2o/examples/doc_root.alternate/index.txt
>>>> > +share/doc/h2o/examples/doc_root/index.html
>>>> > +share/doc/h2o/examples/h2o/
>>>> > +share/doc/h2o/examples/h2o/alternate.crt
>>>> > +share/doc/h2o/examples/h2o/alternate.key
>>>> > +share/doc/h2o/examples/h2o/h2o.conf
>>>> > +share/doc/h2o/examples/h2o/server.crt
>>>> > +share/doc/h2o/examples/h2o/server.key
>>>> > +share/doc/h2o/examples/h2o_mruby/
>>>> > +share/doc/h2o/examples/h2o_mruby/h2o.conf
>>>> > +share/doc/h2o/examples/h2o_mruby/hello.rb
>>>> > +share/doc/h2o/examples/libh2o/
>>>> > +share/doc/h2o/examples/libh2o/http1client.c
>>>> > +share/doc/h2o/examples/libh2o/latency-optimization.c
>>>> > +share/doc/h2o/examples/libh2o/simple.c
>>>> > +share/doc/h2o/examples/libh2o/socket-client.c
>>>> > +share/doc/h2o/examples/libh2o/websocket.c
>>>> > +share/doc/h2o/faq.html
>>>> > +share/doc/h2o/index.html
>>>> > +share/doc/h2o/install.html
>>>> > +share/doc/h2o/search/
>>>> > +share/doc/h2o/search/jquery-1.9.1.min.js
>>>> > +share/doc/h2o/search/oktavia-english-search.js
>>>> > +share/doc/h2o/search/oktavia-jquery-ui.js
>>>> > +share/doc/h2o/search/searchindex.js
>>>> > +share/h2o/
>>>> > +share/h2o/annotate-backtrace-symbols
>>>> > +share/h2o/ca-bundle.crt
>>>> > +share/h2o/fastcgi-cgi
>>>> > +share/h2o/fetch-ocsp-response
>>>> > +share/h2o/kill-on-close
>>>> > +share/h2o/setuidgid
>>>> > +share/h2o/start_server
>>>> > +share/h2o/status/
>>>> > +share/h2o/status/index.html
>>>>
>>>>
>>>>
>>>
>>
>
On 14 March 2017 at 22:13, David CARLIER <devnexen@gmail.com> wrote:
> ping
>
> On 18 February 2017 at 14:33, David CARLIER <devnexen@gmail.com> wrote:
>
>> ping :-)
>>
>> On 9 February 2017 at 20:31, David CARLIER <devnexen@gmail.com> wrote:
>>
>>> Thanks for your inputs. Here a new version. Regards.
>>>
>>> On 9 February 2017 at 17:35, Stuart Henderson <stu@spacehopper.org>
>>> wrote:
>>>
>>>> On 2017/02/09 16:04, David CARLIER wrote:
>>>> > ping :-)
>>>> >
>>>> > On 27 January 2017 at 22:57, David CARLIER <devnexen@gmail.com>
>>>> wrote:
>>>> >
>>>> > > Hi all,
>>>> > >
>>>> > > This is an early draft of a possible import of h2o into the tree.
>>>> > >
>>>> > > Let me know what you think.
>>>> > >
>>>> > > Thanks.
>>>> > >
>>>>
>>>> On 2017/01/27 22:57, David CARLIER wrote:
>>>> > diff --git a/www/h2o/Makefile b/www/h2o/Makefile
>>>>
>>>> tar.gz for ports submissions please.
>>>>
>>>> > new file mode 100644
>>>> > index 0000000..df7a730
>>>> > --- /dev/null
>>>> > +++ b/www/h2o/Makefile
>>>> > @@ -0,0 +1,35 @@
>>>> > +# $OpenBSD $
>>>> > +
>>>> > +COMMENT = Web server library
>>>>
>>>> lowercase first char. could do with being more descriptive. it's not
>>>> just a library.
>>>>
>>>> > +DISTNAME = v${V}
>>>> > +PKGNAME = h2o-${V}
>>>> > +V = 2.1.0
>>>> ..
>>>> > +MASTER_SITES = https://github.com/h2o/h2o/archive/
>>>> ..
>>>> > +WRKDIST = ${WRKDIR}/${PKGNAME}
>>>>
>>>> replace all the above with
>>>>
>>>> GH_ACCOUNT= h2o
>>>> GH_PROJECT= h2o
>>>> GH_TAGNAME= v2.1.0
>>>>
>>>> and regenerate distinfo
>>>>
>>>> > +
>>>> > +SHARED_LIBS = h2o-evloop 0.0
>>>> > +
>>>> > +CATEGORIES = www
>>>> > +
>>>> > +HOMEPAGE = http://h2o.examp1e.net
>>>>
>>>> immediately redirects to https://h2o.examp1e.net/, so better to use
>>>> that.
>>>>
>>>> > +
>>>> > +PERMIT_PACKAGE_CDROM = Yes
>>>> > +
>>>> > +MODULES = devel/cmake gcc4
>>>> > +MODGCC4_LANGS = c c++
>>>> > +MODGCC4_ARCHS = *
>>>> > +
>>>> > +CONFIGURE_ARGS = -DWITH_BUNDLED_SSL=OFF \
>>>> > + -DBUILD_SHARED_LIBS=ON \
>>>> > + -DWITH_MRUBY=OFF \
>>>> > + -DCMAKE_INSTALL_SYSCONFDIR=/etc/h2o
>>>> > +
>>>> > +NO_TEST = No
>>>> > +
>>>> > +post-install:
>>>> > + @mkdir /etc/h2o
>>>> > + ${INSTALL_DATA} ${FILESDIR}/h2o.conf /etc/h2o
>>>>
>>>> during packaging, install the files to ${PREFIX}/share/examples/h2o.
>>>>
>>>> in plist, do this
>>>>
>>>> share/examples/h2o/
>>>> @sample ${SYSCONFDIR}/h2o/
>>>> share/examples/h2o/h2o.conf
>>>> @sample ${SYSCONFDIR}/h2o/h2o.conf
>>>>
>>>> > diff --git a/www/h2o/files/h2o.conf b/www/h2o/files/h2o.conf
>>>> > new file mode 100644
>>>> > index 0000000..f57cd33
>>>> > --- /dev/null
>>>> > +++ b/www/h2o/files/h2o.conf
>>>> > @@ -0,0 +1,7 @@
>>>> > +listen: 8080
>>>> > +hosts:
>>>> > + "127.0.0.1:8080":
>>>> > + paths:
>>>> > + /:
>>>> > + file.dir: /var/www/htdocs
>>>> > + access-log: /var/log/h2o-access.log
>>>>
>>>> probably better to use something in /var/www/logs/ -
>>>> maybe just use the existing /var/www/logs/access.log?
>>>>
>>>> > diff --git a/www/h2o/pkg/DESCR b/www/h2o/pkg/DESCR
>>>> > new file mode 100644
>>>> > index 0000000..2b22290
>>>> > --- /dev/null
>>>> > +++ b/www/h2o/pkg/DESCR
>>>> > @@ -0,0 +1 @@
>>>> > +H2o is an optimized HTTP server with support for HTTP/1.x and HTTP/2
>>>>
>>>> could do with a bit more description here.
>>>> could use "optimized HTTP server with support for HTTP/1.x and HTTP/2"
>>>> as COMMENT..
>>>>
>>>> > diff --git a/www/h2o/pkg/PLIST b/www/h2o/pkg/PLIST
>>>> > new file mode 100644
>>>> > index 0000000..984f0d5
>>>> > --- /dev/null
>>>> > +++ b/www/h2o/pkg/PLIST
>>>> > @@ -0,0 +1,115 @@
>>>> > +@comment $OpenBSD$
>>>> > +@bin bin/h2o
>>>> > +@mode 700
>>>> > +@owner www
>>>> > +@group www
>>>> > +include/h2o/
>>>> > +include/h2o.h
>>>> > +include/h2o/cache.h
>>>> <..>
>>>>
>>>> these @mode/@owner/@group are wrong. www should never be able to write
>>>> to
>>>> these sorts of file.
>>>>
>>>> > +include/h2o/cache_digests.h
>>>> > +include/h2o/configurator.h
>>>> > +include/h2o/file.h
>>>> > +include/h2o/filecache.h
>>>> > +include/h2o/hostinfo.h
>>>> > +include/h2o/http1.h
>>>> > +include/h2o/http1client.h
>>>> > +include/h2o/http2.h
>>>> > +include/h2o/http2_casper.h
>>>> > +include/h2o/http2_internal.h
>>>> > +include/h2o/http2_scheduler.h
>>>> > +include/h2o/linklist.h
>>>> > +include/h2o/memcached.h
>>>> > +include/h2o/memory.h
>>>> > +include/h2o/mruby_.h
>>>> > +include/h2o/multithread.h
>>>> > +include/h2o/openssl_backport.h
>>>> > +include/h2o/rand.h
>>>> > +include/h2o/serverutil.h
>>>> > +include/h2o/socket/
>>>> > +include/h2o/socket.h
>>>> > +include/h2o/socket/evloop.h
>>>> > +include/h2o/socket/uv-binding.h
>>>> > +include/h2o/socketpool.h
>>>> > +include/h2o/string_.h
>>>> > +include/h2o/time_.h
>>>> > +include/h2o/timeout.h
>>>> > +include/h2o/token.h
>>>> > +include/h2o/tunnel.h
>>>> > +include/h2o/url.h
>>>> > +include/h2o/version.h
>>>> > +include/h2o/websocket.h
>>>> > +@lib lib/libh2o-evloop.so.${LIBh2o-evloop_VERSION}
>>>> > +lib/pkgconfig/libh2o-evloop.pc
>>>> > +share/doc/h2o/
>>>> > +share/doc/h2o/assets/
>>>> > +share/doc/h2o/assets/8mbps100msec-nginx195-h2o150.png
>>>> > +share/doc/h2o/assets/firstpaintbench.png
>>>> > +share/doc/h2o/assets/remotebench.png
>>>> > +share/doc/h2o/assets/searchstyle.css
>>>> > +share/doc/h2o/assets/staticfile612-nginx1910-h2o170.png
>>>> > +share/doc/h2o/assets/style.css
>>>> > +share/doc/h2o/benchmarks.html
>>>> > +share/doc/h2o/configure/
>>>> > +share/doc/h2o/configure.html
>>>> > +share/doc/h2o/configure/access_control.html
>>>> > +share/doc/h2o/configure/access_log_directives.html
>>>> > +share/doc/h2o/configure/base_directives.html
>>>> > +share/doc/h2o/configure/basic_auth.html
>>>> > +share/doc/h2o/configure/cgi.html
>>>> > +share/doc/h2o/configure/command_options.html
>>>> > +share/doc/h2o/configure/compress_directives.html
>>>> > +share/doc/h2o/configure/dos_detection.html
>>>> > +share/doc/h2o/configure/errordoc_directives.html
>>>> > +share/doc/h2o/configure/expires_directives.html
>>>> > +share/doc/h2o/configure/fastcgi_directives.html
>>>> > +share/doc/h2o/configure/file_directives.html
>>>> > +share/doc/h2o/configure/headers_directives.html
>>>> > +share/doc/h2o/configure/http1_directives.html
>>>> > +share/doc/h2o/configure/http2_directives.html
>>>> > +share/doc/h2o/configure/mruby.html
>>>> > +share/doc/h2o/configure/mruby_directives.html
>>>> > +share/doc/h2o/configure/proxy_directives.html
>>>> > +share/doc/h2o/configure/quick_start.html
>>>> > +share/doc/h2o/configure/redirect_directives.html
>>>> > +share/doc/h2o/configure/reproxy_directives.html
>>>> > +share/doc/h2o/configure/status_directives.html
>>>> > +share/doc/h2o/configure/syntax_and_structure.html
>>>> > +share/doc/h2o/configure/throttle_response_directives.html
>>>> > +share/doc/h2o/examples/
>>>> > +share/doc/h2o/examples/doc_root/
>>>> > +share/doc/h2o/examples/doc_root.alternate/
>>>> > +share/doc/h2o/examples/doc_root.alternate/index.txt
>>>> > +share/doc/h2o/examples/doc_root/index.html
>>>> > +share/doc/h2o/examples/h2o/
>>>> > +share/doc/h2o/examples/h2o/alternate.crt
>>>> > +share/doc/h2o/examples/h2o/alternate.key
>>>> > +share/doc/h2o/examples/h2o/h2o.conf
>>>> > +share/doc/h2o/examples/h2o/server.crt
>>>> > +share/doc/h2o/examples/h2o/server.key
>>>> > +share/doc/h2o/examples/h2o_mruby/
>>>> > +share/doc/h2o/examples/h2o_mruby/h2o.conf
>>>> > +share/doc/h2o/examples/h2o_mruby/hello.rb
>>>> > +share/doc/h2o/examples/libh2o/
>>>> > +share/doc/h2o/examples/libh2o/http1client.c
>>>> > +share/doc/h2o/examples/libh2o/latency-optimization.c
>>>> > +share/doc/h2o/examples/libh2o/simple.c
>>>> > +share/doc/h2o/examples/libh2o/socket-client.c
>>>> > +share/doc/h2o/examples/libh2o/websocket.c
>>>> > +share/doc/h2o/faq.html
>>>> > +share/doc/h2o/index.html
>>>> > +share/doc/h2o/install.html
>>>> > +share/doc/h2o/search/
>>>> > +share/doc/h2o/search/jquery-1.9.1.min.js
>>>> > +share/doc/h2o/search/oktavia-english-search.js
>>>> > +share/doc/h2o/search/oktavia-jquery-ui.js
>>>> > +share/doc/h2o/search/searchindex.js
>>>> > +share/h2o/
>>>> > +share/h2o/annotate-backtrace-symbols
>>>> > +share/h2o/ca-bundle.crt
>>>> > +share/h2o/fastcgi-cgi
>>>> > +share/h2o/fetch-ocsp-response
>>>> > +share/h2o/kill-on-close
>>>> > +share/h2o/setuidgid
>>>> > +share/h2o/start_server
>>>> > +share/h2o/status/
>>>> > +share/h2o/status/index.html
>>>>
>>>>
>>>>
>>>
>>
>
Re: UPDATE: devel/pcre
*ping*
On Sat May 13, 2017 at 09:59:20AM +0200, Rafael Sadowski wrote:
> On Sat May 13, 2017 at 12:40:18AM +0200, Rafael Sadowski wrote:
> > Hi ports@,
> >
> > simple update to the last stable version. No symbol changes in shared
> > libs.
> >
> > Comments? Ok?
> >
> > Best regards,
> >
> > Rafael
> >
>
> New morning , new diff.
> This time without hardcoded "-02" flags in configure. Also tested with
> clang(1).
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/devel/pcre/Makefile,v
> retrieving revision 1.63
> diff -u -p -u -p -r1.63 Makefile
> --- Makefile 10 Apr 2017 11:45:26 -0000 1.63
> +++ Makefile 13 May 2017 07:56:01 -0000
> @@ -2,8 +2,7 @@
>
> COMMENT= perl-compatible regular expression library
>
> -DISTNAME= pcre-8.38
> -REVISION= 0
> +DISTNAME= pcre-8.40
>
> SHARED_LIBS += pcre 3.0 # 0.1
> SHARED_LIBS += pcre16 0.0 # 0.0
> @@ -13,7 +12,7 @@ SHARED_LIBS += pcrecpp 3.3
> CATEGORIES= devel
> DPB_PROPERTIES= parallel
>
> -MASTER_SITES= http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ \
> +MASTER_SITES= https://ftp.pcre.org/pub/pcre/ \
> ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
>
> HOMEPAGE= http://www.pcre.org/
> Index: distinfo
> ===================================================================
> RCS file: /cvs/ports/devel/pcre/distinfo,v
> retrieving revision 1.26
> diff -u -p -u -p -r1.26 distinfo
> --- distinfo 25 Nov 2015 09:37:00 -0000 1.26
> +++ distinfo 13 May 2017 07:56:01 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (pcre-8.38.tar.gz) = mIPkGcM2xjsMtSArCVN8FAlm1YXk0NpmFH3FE9oT5ik=
> -SIZE (pcre-8.38.tar.gz) = 2053336
> +SHA256 (pcre-8.40.tar.gz) = HXXOkOo/ge4IDNwE5oycJan7mEhhoGGL57v2drGO2j4=
> +SIZE (pcre-8.40.tar.gz) = 2065161
> Index: patches/patch-configure
> ===================================================================
> RCS file: patches/patch-configure
> diff -N patches/patch-configure
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-configure 13 May 2017 07:56:01 -0000
> @@ -0,0 +1,77 @@
> +$OpenBSD$
> +
> +Index: configure
> +--- configure.orig
> ++++ configure
> +@@ -4163,17 +4163,9 @@ $as_echo "$ac_cv_prog_cc_g" >&6; }
> + if test "$ac_test_CFLAGS" = set; then
> + CFLAGS=$ac_save_CFLAGS
> + elif test $ac_cv_prog_cc_g = yes; then
> +- if test "$GCC" = yes; then
> +- CFLAGS="-g -O2"
> +- else
> + CFLAGS="-g"
> +- fi
> + else
> +- if test "$GCC" = yes; then
> +- CFLAGS="-O2"
> +- else
> + CFLAGS=
> +- fi
> + fi
> + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
> + $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
> +@@ -5078,17 +5070,9 @@ $as_echo "$ac_cv_prog_cc_g" >&6; }
> + if test "$ac_test_CFLAGS" = set; then
> + CFLAGS=$ac_save_CFLAGS
> + elif test $ac_cv_prog_cc_g = yes; then
> +- if test "$GCC" = yes; then
> +- CFLAGS="-g -O2"
> +- else
> + CFLAGS="-g"
> +- fi
> + else
> +- if test "$GCC" = yes; then
> +- CFLAGS="-O2"
> +- else
> + CFLAGS=
> +- fi
> + fi
> + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
> + $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
> +@@ -5612,17 +5596,9 @@ $as_echo "$ac_cv_prog_cxx_g" >&6; }
> + if test "$ac_test_CXXFLAGS" = set; then
> + CXXFLAGS=$ac_save_CXXFLAGS
> + elif test $ac_cv_prog_cxx_g = yes; then
> +- if test "$GXX" = yes; then
> +- CXXFLAGS="-g -O2"
> +- else
> + CXXFLAGS="-g"
> +- fi
> + else
> +- if test "$GXX" = yes; then
> +- CXXFLAGS="-O2"
> +- else
> + CXXFLAGS=
> +- fi
> + fi
> + ac_ext=c
> + ac_cpp='$CPP $CPPFLAGS'
> +@@ -5764,7 +5740,7 @@ if test "x$remember_set_CFLAGS" = "x"
> + then
> + if test "$CFLAGS" = "-g -O2"
> + then
> +- CFLAGS="-O2"
> ++ CFLAGS=""
> + elif test "$CFLAGS" = "-g"
> + then
> + CFLAGS=""
> +@@ -5775,7 +5751,7 @@ if test "x$remember_set_CXXFLAGS" = "x"
> + then
> + if test "$CXXFLAGS" = "-g -O2"
> + then
> +- CXXFLAGS="-O2"
> ++ CXXFLAGS=""
> + elif test "$CXXFLAGS" = "-g"
> + then
> + CXXFLAGS=""
> Index: patches/patch-pcre_compile_c
> ===================================================================
> RCS file: patches/patch-pcre_compile_c
> diff -N patches/patch-pcre_compile_c
> --- patches/patch-pcre_compile_c 1 Apr 2016 18:15:11 -0000 1.8
> +++ /dev/null 1 Jan 1970 00:00:00 -0000
> @@ -1,59 +0,0 @@
> -$OpenBSD: patch-pcre_compile_c,v 1.8 2016/04/01 18:15:11 robert Exp $
> -
> -CVE-2016-3191
> -
> - Upstream commit: http://vcs.pcre.org/pcre?view=revision&revision=1631
> -
> ---- pcre_compile.c.orig Tue Mar 22 20:27:48 2016
> -+++ pcre_compile.c Tue Mar 22 20:39:59 2016
> -@@ -6,7 +6,7 @@
> - and semantics are as close as possible to those of the Perl 5 language.
> -
> - Written by Philip Hazel
> -- Copyright (c) 1997-2014 University of Cambridge
> -+ Copyright (c) 1997-2016 University of Cambridge
> -
> - -----------------------------------------------------------------------------
> - Redistribution and use in source and binary forms, with or without
> -@@ -560,6 +560,7 @@ static const char error_texts[] =
> - /* 85 */
> - "parentheses are too deeply nested (stack check)\0"
> - "digits missing in \\x{} or \\o{}\0"
> -+ "regular expression is too complicated\0"
> - ;
> -
> - /* Table to identify digits and hex digits. This is used when compiling
> -@@ -4591,7 +4592,8 @@ for (;; ptr++)
> - if (code > cd->start_workspace + cd->workspace_size -
> - WORK_SIZE_SAFETY_MARGIN) /* Check for overrun */
> - {
> -- *errorcodeptr = ERR52;
> -+ *errorcodeptr = (code >= cd->start_workspace + cd->workspace_size)?
> -+ ERR52 : ERR87;
> - goto FAILED;
> - }
> -
> -@@ -6604,8 +6606,21 @@ for (;; ptr++)
> - cd->had_accept = TRUE;
> - for (oc = cd->open_caps; oc != NULL; oc = oc->next)
> - {
> -- *code++ = OP_CLOSE;
> -- PUT2INC(code, 0, oc->number);
> -+ if (lengthptr != NULL)
> -+ {
> -+#ifdef COMPILE_PCRE8
> -+ *lengthptr += 1 + IMM2_SIZE;
> -+#elif defined COMPILE_PCRE16
> -+ *lengthptr += 2 + IMM2_SIZE;
> -+#elif defined COMPILE_PCRE32
> -+ *lengthptr += 4 + IMM2_SIZE;
> -+
On Sat May 13, 2017 at 09:59:20AM +0200, Rafael Sadowski wrote:
> On Sat May 13, 2017 at 12:40:18AM +0200, Rafael Sadowski wrote:
> > Hi ports@,
> >
> > simple update to the last stable version. No symbol changes in shared
> > libs.
> >
> > Comments? Ok?
> >
> > Best regards,
> >
> > Rafael
> >
>
> New morning , new diff.
> This time without hardcoded "-02" flags in configure. Also tested with
> clang(1).
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/devel/pcre/Makefile,v
> retrieving revision 1.63
> diff -u -p -u -p -r1.63 Makefile
> --- Makefile 10 Apr 2017 11:45:26 -0000 1.63
> +++ Makefile 13 May 2017 07:56:01 -0000
> @@ -2,8 +2,7 @@
>
> COMMENT= perl-compatible regular expression library
>
> -DISTNAME= pcre-8.38
> -REVISION= 0
> +DISTNAME= pcre-8.40
>
> SHARED_LIBS += pcre 3.0 # 0.1
> SHARED_LIBS += pcre16 0.0 # 0.0
> @@ -13,7 +12,7 @@ SHARED_LIBS += pcrecpp 3.3
> CATEGORIES= devel
> DPB_PROPERTIES= parallel
>
> -MASTER_SITES= http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ \
> +MASTER_SITES= https://ftp.pcre.org/pub/pcre/ \
> ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
>
> HOMEPAGE= http://www.pcre.org/
> Index: distinfo
> ===================================================================
> RCS file: /cvs/ports/devel/pcre/distinfo,v
> retrieving revision 1.26
> diff -u -p -u -p -r1.26 distinfo
> --- distinfo 25 Nov 2015 09:37:00 -0000 1.26
> +++ distinfo 13 May 2017 07:56:01 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (pcre-8.38.tar.gz) = mIPkGcM2xjsMtSArCVN8FAlm1YXk0NpmFH3FE9oT5ik=
> -SIZE (pcre-8.38.tar.gz) = 2053336
> +SHA256 (pcre-8.40.tar.gz) = HXXOkOo/ge4IDNwE5oycJan7mEhhoGGL57v2drGO2j4=
> +SIZE (pcre-8.40.tar.gz) = 2065161
> Index: patches/patch-configure
> ===================================================================
> RCS file: patches/patch-configure
> diff -N patches/patch-configure
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-configure 13 May 2017 07:56:01 -0000
> @@ -0,0 +1,77 @@
> +$OpenBSD$
> +
> +Index: configure
> +--- configure.orig
> ++++ configure
> +@@ -4163,17 +4163,9 @@ $as_echo "$ac_cv_prog_cc_g" >&6; }
> + if test "$ac_test_CFLAGS" = set; then
> + CFLAGS=$ac_save_CFLAGS
> + elif test $ac_cv_prog_cc_g = yes; then
> +- if test "$GCC" = yes; then
> +- CFLAGS="-g -O2"
> +- else
> + CFLAGS="-g"
> +- fi
> + else
> +- if test "$GCC" = yes; then
> +- CFLAGS="-O2"
> +- else
> + CFLAGS=
> +- fi
> + fi
> + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
> + $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
> +@@ -5078,17 +5070,9 @@ $as_echo "$ac_cv_prog_cc_g" >&6; }
> + if test "$ac_test_CFLAGS" = set; then
> + CFLAGS=$ac_save_CFLAGS
> + elif test $ac_cv_prog_cc_g = yes; then
> +- if test "$GCC" = yes; then
> +- CFLAGS="-g -O2"
> +- else
> + CFLAGS="-g"
> +- fi
> + else
> +- if test "$GCC" = yes; then
> +- CFLAGS="-O2"
> +- else
> + CFLAGS=
> +- fi
> + fi
> + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
> + $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
> +@@ -5612,17 +5596,9 @@ $as_echo "$ac_cv_prog_cxx_g" >&6; }
> + if test "$ac_test_CXXFLAGS" = set; then
> + CXXFLAGS=$ac_save_CXXFLAGS
> + elif test $ac_cv_prog_cxx_g = yes; then
> +- if test "$GXX" = yes; then
> +- CXXFLAGS="-g -O2"
> +- else
> + CXXFLAGS="-g"
> +- fi
> + else
> +- if test "$GXX" = yes; then
> +- CXXFLAGS="-O2"
> +- else
> + CXXFLAGS=
> +- fi
> + fi
> + ac_ext=c
> + ac_cpp='$CPP $CPPFLAGS'
> +@@ -5764,7 +5740,7 @@ if test "x$remember_set_CFLAGS" = "x"
> + then
> + if test "$CFLAGS" = "-g -O2"
> + then
> +- CFLAGS="-O2"
> ++ CFLAGS=""
> + elif test "$CFLAGS" = "-g"
> + then
> + CFLAGS=""
> +@@ -5775,7 +5751,7 @@ if test "x$remember_set_CXXFLAGS" = "x"
> + then
> + if test "$CXXFLAGS" = "-g -O2"
> + then
> +- CXXFLAGS="-O2"
> ++ CXXFLAGS=""
> + elif test "$CXXFLAGS" = "-g"
> + then
> + CXXFLAGS=""
> Index: patches/patch-pcre_compile_c
> ===================================================================
> RCS file: patches/patch-pcre_compile_c
> diff -N patches/patch-pcre_compile_c
> --- patches/patch-pcre_compile_c 1 Apr 2016 18:15:11 -0000 1.8
> +++ /dev/null 1 Jan 1970 00:00:00 -0000
> @@ -1,59 +0,0 @@
> -$OpenBSD: patch-pcre_compile_c,v 1.8 2016/04/01 18:15:11 robert Exp $
> -
> -CVE-2016-3191
> -
> - Upstream commit: http://vcs.pcre.org/pcre?view=revision&revision=1631
> -
> ---- pcre_compile.c.orig Tue Mar 22 20:27:48 2016
> -+++ pcre_compile.c Tue Mar 22 20:39:59 2016
> -@@ -6,7 +6,7 @@
> - and semantics are as close as possible to those of the Perl 5 language.
> -
> - Written by Philip Hazel
> -- Copyright (c) 1997-2014 University of Cambridge
> -+ Copyright (c) 1997-2016 University of Cambridge
> -
> - -----------------------------------------------------------------------------
> - Redistribution and use in source and binary forms, with or without
> -@@ -560,6 +560,7 @@ static const char error_texts[] =
> - /* 85 */
> - "parentheses are too deeply nested (stack check)\0"
> - "digits missing in \\x{} or \\o{}\0"
> -+ "regular expression is too complicated\0"
> - ;
> -
> - /* Table to identify digits and hex digits. This is used when compiling
> -@@ -4591,7 +4592,8 @@ for (;; ptr++)
> - if (code > cd->start_workspace + cd->workspace_size -
> - WORK_SIZE_SAFETY_MARGIN) /* Check for overrun */
> - {
> -- *errorcodeptr = ERR52;
> -+ *errorcodeptr = (code >= cd->start_workspace + cd->workspace_size)?
> -+ ERR52 : ERR87;
> - goto FAILED;
> - }
> -
> -@@ -6604,8 +6606,21 @@ for (;; ptr++)
> - cd->had_accept = TRUE;
> - for (oc = cd->open_caps; oc != NULL; oc = oc->next)
> - {
> -- *code++ = OP_CLOSE;
> -- PUT2INC(code, 0, oc->number);
> -+ if (lengthptr != NULL)
> -+ {
> -+#ifdef COMPILE_PCRE8
> -+ *lengthptr += 1 + IMM2_SIZE;
> -+#elif defined COMPILE_PCRE16
> -+ *lengthptr += 2 + IMM2_SIZE;
> -+#elif defined COMPILE_PCRE32
> -+ *lengthptr += 4 + IMM2_SIZE;
> -+
Subscribe to:
Posts (Atom)