{"id":1504,"date":"2025-04-07T18:14:14","date_gmt":"2025-04-07T18:14:14","guid":{"rendered":"https:\/\/pdp2011.sytse.net\/wordpress\/?p=1504"},"modified":"2025-04-07T18:16:24","modified_gmt":"2025-04-07T18:16:24","slug":"one-year-of-uptime","status":"publish","type":"post","link":"https:\/\/pdp2011.sytse.net\/wordpress\/one-year-of-uptime\/","title":{"rendered":"One year of uptime"},"content":{"rendered":"\n<p>A week or so ago I noticed that the 2.11BSD system that controls the lighting in my home had an uptime of almost a full year. <\/p>\n\n\n\n<p>Ever since I added the DEUNA to PDP2011 end of 2012, I&#8217;ve had at least one 2.11BSD system running, and a couple of times I almost reached an uptime of a year &#8211; but every time just before the magical date something happened. Most often the power failed &#8211; from accidentally flipping the switch while cleaning, to an explosion in the transformer down the street that left 10.000 homes without power (no, that one wasn&#8217;t my fault). And the latest, just over a year ago when I was going to charge some batteries in my garage and the extension cord caused the RCD to trip. No wonder &#8211; it is the cord I use for gardening, and there are lots of suspicious looking patches of gaffer tape on it&#8230; hey, why fix something that works most of the time. Anyway this time around I was a bit more careful, and no last minute surprises from the power company either. <\/p>\n\n\n\n<p>Here it is.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;sytse@i5 ~]$ telnet de0\nTrying 10.1.0.4...\nConnected to de0.\nEscape character is '^]'.\n\n\n2.11 BSD UNIX (de0.sytse.net)\n\nlogin: root\nerase, kill ^U, intr ^C\n# uptime\n  8:04pm  up 367 days,  7:18,  2 users,  load averages: 0.40, 0.24, 0.02\n\n# sysctl kern.boottime\nkern.boottime = Fri Apr  5 12:46:44 2024\n\n# head -1 VERSION\nCurrent Patch Level: 447\n\n# uname -a\nBSD de0.sytse.net 2.11 2.11 BSD UNIX #6: Mon Mar 11 00:14:01 CET 2019     root@de0.sytse.net:\/usr\/src\/sys\/PDP2011  pdp11\n\n# ps ax\n   PID TTY TIME COMMAND\n     0 ?   3:02 swapper\n     1 ?   0:06  (init)\n    44 ?  15:35 syslogd \n    54 ? 162:33 update \n    58 ?   2:47 acctd \n    66 ?   0:03 \/usr\/sbin\/inetd \n    70 ?   0:18 rwhod \n    74 ?   0:00 \/usr\/sbin\/lpd \n    91 ?   3:16 \/usr\/sbin\/sendmail -bd -q1h \n    98 ?   9:31 ntpd \n  8390 ?   6:31 cron \n   102 co  0:01 -sh \n   103 l1  0:00 - std.9600 ttyl1 (getty)\n 17367 p0  0:00 telnetd \n 17368 p0  0:01 -sh \n 17374 p0  0:00 ps ax \n\n# df\nFilesystem  1K-blocks     Used    Avail Capacity  Mounted on\n\/dev\/xp0a        7816     3426     4390    44%    \/\n\/dev\/xp0g      151625    88639    62986    58%    \/usr\n\n# netstat -in\nName  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  Coll\nde0   1500  10.1        10.1.0.4         8691809     0  1603254     0     0\nlo0   1536  127         127.0.0.1             14     0       14     0     0\n\n# netstat -s\nip:\n        6858158 total packets received\n        0 bad header checksums\n        0 with size smaller than minimum\n        0 with data size &lt; data length\n        0 with header length &lt; data size\n        0 with data length &lt; header length\n        0 fragments received\n        0 fragments dropped (dup or out of space)\n        0 fragments dropped after timeout\n        4665 packets forwarded\n        0 packets not forwardable\n        0 redirects sent\nicmp:\n        0 calls to icmp_error\n        0 errors not generated 'cuz old message was icmp\n        Output histogram:\n                echo reply: 6\n        0 messages with bad code fields\n        0 messages &lt; minimum length\n        0 bad checksums\n        0 messages with bad length\n        Input histogram:\n                echo reply: 6\n                destination unreachable: 1\n                echo: 6\n        6 message responses generated\ntcp:\n        399904 packets sent\n                339516 data packets (309499436 bytes)\n                6 data packets (4104 bytes) retransmitted\n                31279 ack-only packets (3878 delayed)\n                0 URG only packets\n                1 window probe packets\n                1563 window update packets\n                27539 control packets\n        248423 packets received\n                203445 acks (for 309512554 bytes)\n                2026 duplicate acks\n                0 acks for unsent data\n                50790 packets (9462678 bytes) received in-sequence\n                68 completely duplicate packets (534 bytes)\n                1 packets with some dup. data (1 bytes duped)\n                109 out-of-order packets (0 bytes)\n                0 packets (0 bytes) of data after window\n                0 window probes\n                0 window update packets\n                0 packets received after close\n                0 discarded for bad checksums\n                0 discarded for bad header offset fields\n                0 discarded because packet too short\n        13552 connection requests\n        115 connection accepts\n        13667 connections established (including accepts)\n        13676 connections closed (including 0 drops)\n        10 embryonic connections dropped\n        127813 segment updated rtt (of 141693 attempts)\n        325 retransmit timeouts\n                0 connections dropped by rexmit timeout\n        0 persist timeouts\n        2 keepalive timeouts\n                2 keepalive probes sent\n                0 connections dropped by keepalive\nudp:\n        0 incomplete headers\n        0 bad data length fields\n        0 bad checksums\n        6077017 no ports\n        6077017 (arrived as bcast) no ports\n<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A week or so ago I noticed that the 2.11BSD system that controls the lighting in my home had an uptime of almost a full year. Ever since I added the DEUNA to PDP2011 end of 2012, I&#8217;ve had at least one 2.11BSD system running, and a couple of times I almost reached an uptime [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1504","post","type-post","status-publish","format-standard","hentry","category-pdp11","missing-thumbnail"],"_links":{"self":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/posts\/1504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/comments?post=1504"}],"version-history":[{"count":2,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/posts\/1504\/revisions"}],"predecessor-version":[{"id":1506,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/posts\/1504\/revisions\/1506"}],"wp:attachment":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/media?parent=1504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/categories?post=1504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/tags?post=1504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}