Friday, September 29, 2023
Tiling for Geo Map Referencing in QGIS
Friday, June 9, 2023
Mini vision quest upstream
I intended to test getting elevations as well as latitude/longitude with a slightly better
than my Coolpix along a stream/drainage channel. Ended up seeing a small vision of what the streambed looked like before we disturbed it.
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Placemark>
<name>BM Hampton</name>
<Point>
<coordinates>-76.59533879999999,39.4293622,0</coordinates>
</Point>
</Placemark>
</kml>
- JScholarship Home
- Library (Sheridan) General Collections
- Maps and Atlases
- Maryland State, County and Baltimore City Atlases
Monday, May 8, 2023
Beta Testing NetBSD 10; the Intermittent Result Set
After running sets of tests on the NetBSD 10.0 beta release, I had opened about 2 dozen problem reports of varying severity, and thought it time to take stock. Some have been closed, many have identified solutions, and a few are head scratchers.
Full test cycle on an ARM soc
This image is from 48 hours and shows CPU core temperature (Celsius) during the automated test cycle
Reviewing the test results (failures, in other words) reveals a few issues worth opening tickets, as did reading up on the test algorithms and reference pages. The aspect that intrigued me primarily were tests that did not pass or fail consistently. A typical case is running out of memory caused by creating sample data of variable dimensions. Side effects of this, for example:
[ 61059.604145] UVM: pid 12801 (h_libarchive), uid 0 killed: out of swap
Sometimes this is visible with vmstat commands:
0 0 7960 330868 0 0 0 0 0 0 0 8519 18 36 0 0 100 0 0 7960 330868 0 0 0 0 0 0 0 8521 18 38 0 0 100 Mon May 1 23:24:01 UTC 2023 procs memory page disk faults cpu r b avm fre flt re pi po fr sr l0 in sy cs us sy id 1 0 1968 337656 47 0 0 0 4 4 1 8503 184 67 0 1 99 1 0 10828 328948 7245 0 0 0 0 0 99 9117 5113 989 7 13 80 2 0 19112 320688 2576 0 0 0 0 0 42 9392 4107 1979 12 16 72 0 0 8568 331328 1534 0 0 0 0 0 89 8919 1788 949 1 5 95 0 0 7896 332000 201 0 0 0 0 0 0 8534 254 44 0 0 100 0 0 7896 332000 0 0 0 0 0 0 0 8527 18 36 0 0 100
Given those results are not indicative of system faults, looking at the other test case failures and sorting them by fixed/workarounds/etc, I have 3 that I don't know the root cause, and that's all of consequence. Two of them are wifi-relates and the third is a failure to compile profiling data into an an executable on a 32-bit Pi 02W.
One of the intermittent has corresponding out-of-memory messages (57291). While it's a low priority issue because the tests would pass with more storage space, there is probably a way to avoid runaway space requests and still have useful tests.
Tickets with unknown root cause:
- misc/57303 [serious/medium]: ATF unit test usr.sbin/tcpdump/t_tcpdump fails when wireless active on amd64
- toolchain/57321 [non-critical/medium]: ATF test case usr.bin/cc/t_hello:hello_profile fails on RPI02W/evbarm only
- bin/57366 [serious/medium]: Automated test usr.sbin/tcpdump/t_tcpdump:promiscuous fails on Rpi3 with wifi active
Tickets with known cause/workaround:
- kern/57185 [non-critical/medium]: Python build fails on 10_BETA due to no entropy on Atom CPU system
- misc/57286 [serious/medium]: Unit test fs/tmpfs/t_vnode_leak fails in ATF Tests suite
- misc/57291 [serious/medium]: Unit test for lib/libc/regex/t_exhaust fails in ATF Tests suite with signal 9
- lib/57314 [serious/medium]:
- ATF unit tests fail on 3 of 7 cases in program lib/libc/c063/t_utimensat on evbarm/Rpi 02W
- kern/57320 [serious/medium]: ATF test case kernel/t_magic_symlinks:machine_arch fails on RPI02W/evbarm only [?]
- lib/57331 [serious/medium]: Automated unit test lib/libc/net/t_servent:servent fails on amd64 only
- misc/57361 [non-critical/medium]: Automated test t_archive fails 2 test cases on an Rpi3
Tickets fixed:
- misc/57284 [serious/medium]: Unit test for envstat fails in ATF Tests suite on one machine
- kern/57319 [serious/medium]: ATF test case kernel/t_magic_symlinks fails as non-root instead of showing expected fail message
Tickets with intermittent pass/fail results:
- misc/57291 [serious/medium]: Unit test for lib/libc/regex/t_exhaust fails in ATF Tests suite with signal 9
- kern/57345 [serious/medium]: Automated test kernel/kqueue/t_empty fails intermittently on an amd64 machine
- toolchain/57351 [serious/medium]: Automated test usr.bin/c++/t_tsan_vptr_race:vptr_race fails intermittently on an amd64 machine
- kern/57371 [serious/medium]: Automated test fs/vfs/t_vnops:nfs_rename_reg_nodir fails intermittently on Rpi3 and Rpi4
- kern/57385 [serious/medium]: Automated test case for puffs file system fails intermittently on different architectures
Documentation tickets:
- misc/57318 [non-critical/low]: Minor typos in an automated test case - atf/tools/atf-run_test
- misc/57332 [non-critical/low]: Replace 'http' with 'https' on netbsd.org links found in man pages
- misc/57343 [non-critical/low]: Typo in automated test rumpkern/t_vm.c ('this' should say 'thus')
- misc/57344 [non-critical/low]: WIki page for evbarm port missing rpi4 mention
- misc/57347 [non-critical/low]: Several man pages have obsolete file location references under /usr/share/doc
- misc/57397 [non-critical/low]: Minor comment typos in t_vnops.c test program
Tuesday, April 4, 2023
Upsizing a Pi Zero (2W) to a Pi 3 Footprint
Recently I learned, and was intrigued, by two products from WaveShare, both enabling a small footprint Raspberry Pi Zero (2W in my case) to fill a Raspberry Pi 3 case by including a suite of adapters, plugs, and sockets. With the uninspiring brand name, "Raspberry Pi Zero [] to 3B Adapter."
Raspberry Pi Zero To 3B Adapter, Alternative Solution for Raspberry Pi 3 Model B/B+
Raspberry Pi Zero 2W To 3B Adapter, Alternative Solution for Raspberry Pi 3 Model B/B+
Good/Bad/Ugly...
The "A" Board
NetBSD compatibility
The "B" Board
Wifi on a pi3 with NetBSD?
- RPI3 and RPI0W builtin WiFi - bwfm(4)
- "Note that the built-in WiFi in the RPI3 is not yet supported."
NetBSD compatibility
Errors/messages:
Wrap-Up
Images
Monday, March 20, 2023
32/64-Bit and NetBSD 10 BETA
I've had "Pentium" type machine for decades, starting with using NetBSD 0.9 on a 386 or 486 in 1997?, and now, trying out various processors and systems for beta testing 10.0.
Initially, one "hand-me-down" box seemed like an older, 32-bit processor, based on how MS-Windows viewed the details, complaining the OS version could not be updated beyond Windows 9 32 bit, or so. Thus my first pass with NetBSD was to install the i386 release, testing it for several weeks before the light dawned that this weak looking machine had more to offer if set up right. Motherboard has a 2014 date stamp and my research shows this board was designed for laptops then slipped into a largish case because marketing/.
Processor/kernel
[ 1.000000] NetBSD 10.0_BETA (GENERIC) #0: Mon Jan 23 16:02:49 UTC 2023
[ 1.000000] mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC
Two for the price of one
First win: the AMD64 beta ISO fits on a standard CD image footprint. Yay.
Next, big win: the machine has both VGA and DVI outputs, which may sound archaic with HDMI and higher resolutions available (more on the higher end AMD system later), but it turns out this little board contains 2 independent video outputs. With a couple adapters, I've got dual-HDMI screens and X Windows stretching in them.
Minor fault: the onboard ethernet adapter only runs at 100BT. On closer examination, there is an onboard mini-PCIE connector that could conceivably allow a Gigabit board in its place. Given the risk of breaking the installed board (which NetBSD works fine with), or installing a replacement board that might not work, I decided to go with an outboard USB ethernet dongle (more on that hardware also later).
Memory
Without changing the system (I guess there be BIOS mysteries here), going x86 kicked up the visible memory seen by NetBSD.
Video
Network
Built-in:
Built-out:
Performance
Byte Bench
H Bench (or its close rival lmbench)
NetBSD Unit Tests
- tc, sbin/envstat/t_envstat, zerotemp, failed, Test case was expecting a failure but none were raised
- tp, sbin/envstat/t_envstat, failed
- tp include/t_paths failed
- tp kernel/kqueue/t_empty failed
- tp lib/libarchive/t_libarchive failed
- tp lib/libc/kevent_nullmnt/t_nullmnt failed
- tp lib/librumphijack/t_tcpip failed
- tp net/net/t_bind failed
- tp net/net/t_unix failed
- tp net/altq/t_cbq failed
- tp crypto/opencrypto/t_opencrypto failed
- tp lib/libc/net/t_servent failed
- tp net/if_wg/t_basic failed
- tp usr.bin/cc/t_tsan_data_race failed
- tp usr.bin/make/t_make failed
- tp usr.sbin/tcpdump/t_tcpdump failed
- tp fs/tmpfs/t_vnode_leak failed
Think Penguin
The Other 686
Sunday, March 12, 2023
Zabbix migrations, in place / out of place
I've had Zabbix running on PostgreSQL for over a year now it seems, and during that time Zabbix has released a couple major updates, and I've tried to build the newest servers and agents I could on a variety of BSD and Linux flavors. My go-to platform, NetBSD, doesn't have the latest and greatest of every app out there, so I moved on to FreeBSD as the primary Zabbix home base, er at home.
I've had 2 levels of the Zabbix server on NetBSD, once on i386 and once on Arm but for this post I'll ignore those branches and focus on 2 FreeBSD directions for data and applications with the history ramifications.
When I started Zabbix 5 server was the best I could manage; as I tried other variations I had 6.2 up and running eventually. I figure out that exporting and importing history/trends from one Zabbix box to another is simple but time consuming as valuable data feeds increase.
Platform 1: Upgrade database in place; conform to schema changes
In early 2022, I started monitoring with Zabbix en masse, as they say.
-rw-r--r-- 1 root wheel 20385599 Aug 8 2022 postgresql-11.17.tar.bz2
-rw-r--r-- 1 root wheel 22132996 Aug 8 2022 postgresql-14.5.tar.bz2
Starting version (2022):
- Jan 30 21:58:37 freebsd1 pkg-static[69272]: postgresql11-server-11.14 installed
Upgrade phases (2023):
- Feb 20 15:46:38 freebsd1 pkg[11293]: postgresql11-server-11.17 deinstalled
- Feb 20 16:59:17 freebsd1 pkg-static[65464]: postgresql11-server-11.17 installed
- Feb 20 17:14:14 freebsd1 pkg[69391]: postgresql11-server-11.17 deinstalled
- Feb 20 17:15:10 freebsd1 pkg-static[69814]: postgresql14-server-14.5 installed
DB type "POSTGRESQL" is not supported by current setup. Possible values MYSQL. |
PHP
Data changes
302137397 Jan 17 03:15 backup_zabbix_history_uint.sql
101438770 Jan 17 03:16 backup_zabbix_trends_uint.sql
Platform 2: New database, import hosts and templates, manually import history.
PHP
Data migration
- Shutdown Zabbix application server
- Run a database export
- Set up target system at least the same database version
- Create database and schema as needed
- Run database import
- Shutdown original database
- Alter Zabbix server configuration
- Viola (ha)
-rw-r--r-- 1 freebsd freebsd 24510838 Jan 31 2022 zabbix-5.4.10.tar.gz
-rw-r--r-- 1 freebsd freebsd 41038757 Dec 5 08:44 zabbix-6.2.6.tar.gz
Deltas
Ephemera
Wednesday, February 8, 2023
NetBSD 10 Beta installs and testing from i386 to ARM
i386
Entropy
Packages
Benchmarks
hbench
test suite
ARM
Clean install on a Pi Zero 2W
-rw-r--r-- 1 root wheel 37548220 Jan 16 10:22 base.tar.xz
-rw-r--r-- 1 root wheel 54971904 Jan 16 10:26 comp.tar.xz
-rw-r--r-- 1 root wheel 447912 Dec 20 00:56 dtb.tar.xz
-rw-r--r-- 1 root wheel 495604 Dec 23 00:04 etc.tar.xz
-rw-r--r-- 1 root wheel 2614024 Jan 16 10:20 games.tar.xz
-rw-r--r-- 1 root wheel 1103864 Jan 14 22:43 gpufw.tar.xz
-rw-r--r-- 1 root wheel 7566312 Jan 16 10:21 man.tar.xz
-rw-r--r-- 1 root wheel 4135072 Jan 16 10:20 misc.tar.xz
-rw-r--r-- 1 root wheel 6185508 Jan 16 10:20 modules.tar.xz
-rw-r--r-- 1 root wheel 7852529 Jan 14 22:37 netbsd-GENERIC64.gz
-rw-r--r-- 1 root wheel 2694436 Jan 16 10:20 rescue.tar.xz
-rw-r--r-- 1 root wheel 10290016 Jan 16 10:20 tests.tar.xz
-rw-r--r-- 1 root wheel 1900648 Jan 16 10:20 text.tar.xz
-rw-r--r-- 1 root wheel 6021116 Dec 31 21:03 xbase.tar.xz
-rw-r--r-- 1 root wheel 6026656 Jan 14 22:44 xcomp.tar.xz
-rw-r--r-- 1 root wheel 27840 Jan 4 15:11 xetc.tar.xz
-rw-r--r-- 1 root wheel 28997008 Jan 16 10:21 xfont.tar.xz
-rw-r--r-- 1 root wheel 21325496 Jan 16 10:21 xserver.tar.xz
Packages
cleaning database from https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/aarch64/9.0/All entries...
reading local summary...
processing local summary...
processing remote summary (https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/aarch64/10.0/All)...