• rpi4 as server?

    From Mike Scott@3:770/3 to All on Sat Nov 28 11:33:09 2020
    Hi all; a quick query about speeds.

    I currently use an old i386 machine as home server (everything from
    local NFS file-store, to bind, to email server). It's an acer aspire
    r3700, running at 1.8GHz, 2 proc/4 thread job. It runs freebsd headless,
    and I use vnc for day-to-day operations on it.

    I'm contemplating replacing with a rpi4, which I gather is now supported
    by freebsd, using a usb3 external hard drive. But is this likely to
    prove slower or problematic for any other reason?

    TIA for any thoughts.


    --
    Mike Scott
    Harlow, England

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Theo@3:770/3 to Mike Scott on Sat Nov 28 14:02:13 2020
    Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
    I'm contemplating replacing with a rpi4, which I gather is now supported
    by freebsd, using a usb3 external hard drive. But is this likely to
    prove slower or problematic for any other reason?

    My colleague who develops FreeBSD on the Pis recommends this image for the
    Pi3 and 4 - the 13.0-CURRENT release may not support the Pi 4:

    https://download.freebsd.org/ftp/snapshots/arm64/aarch64/ISO-IMAGES/13.0/FreeBS D-13.0-CURRENT-arm64-aarch64-RPI3-20201119-f2ea0734875.img.xz

    It is recommended that you boot Raspberry Pi OS and do a firmware update
    before you boot FreeBSD - the above might not have the right firmware for especially 8GB boards.

    In general the plan sounds fine to me...

    Theo

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Richard Falken@1:123/115 to Mike Scott on Sat Nov 28 18:17:36 2020
    Re: rpi4 as server?
    By: Mike Scott to All on Sat Nov 28 2020 11:33 am

    Hi all; a quick query about speeds.

    I currently use an old i386 machine as home server (everything from
    local NFS file-store, to bind, to email server). It's an acer aspire
    r3700, running at 1.8GHz, 2 proc/4 thread job. It runs freebsd headless,
    and I use vnc for day-to-day operations on it.

    I'm contemplating replacing with a rpi4, which I gather is now supported
    by freebsd, using a usb3 external hard drive. But is this likely to
    prove slower or problematic for any other reason?

    TIA for any thoughts.


    --
    Mike Scott
    Harlow, England

    The PIs are not great at I/O. They will do for a personal server with a couple of users, but it is not ideal as a server platform.

    II don'tknow about the newer PIs, but at least the early ones used an USB bus for the ethernet connection, which meant network I/O was limited from the start.
    --
    gopher://gopher.richardfalken.com/1/richardfalken
    --- SBBSecho 3.11-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (1:123/115)
  • From Andy Burns@3:770/3 to Richard Falken on Sun Nov 29 02:51:49 2020
    Richard Falken wrote:

    The PIs are not great at I/O. They will do for a personal server with a
    couple
    of users, but it is not ideal as a server platform.

    II don'tknow about the newer PIs, but at least the early ones used an USB
    bus
    for the ethernet connection, which meant network I/O was limited from the start.

    The CM4 (with the I/O card) has a PCIe slot ...

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Derek.Moody@3:770/3 to URL:mailto:usenet.16@scottsonline.o on Sun Nov 29 02:28:59 2020
    In article <rptchl$ite$1@dont-email.me>, Mike Scott <URL:mailto:usenet.16@scottsonline.org.uk.invalid> wrote:
    Hi all; a quick query about speeds.

    I currently use an old i386 machine as home server (everything from
    local NFS file-store, to bind, to email server). It's an acer aspire
    r3700, running at 1.8GHz, 2 proc/4 thread job. It runs freebsd headless,
    and I use vnc for day-to-day operations on it.

    I'm contemplating replacing with a rpi4, which I gather is now supported
    by freebsd, using a usb3 external hard drive. But is this likely to
    prove slower or problematic for any other reason?

    I've been using a Pi4 for this and a little *more for over a year, before
    that a Pi3 ran as just a NAS and printer server for over two years.

    *more: Also printer server, local webserver and CGI (perl) lightweight
    testing host.

    If your external drive is SSD it will be faster than your current server and can be arranged to run silently using much less power.

    Caveat: I do not know the freebsd distro - I would expect it to be OK.
    I use Raspup, the Puppy Linux version for Pi.

    Your biggest problem will be deciding where to get your clock updates from;
    do you open the Pi to the internet or run a timeserver on another machine.

    Hth, Cheerio,

    --
    derek.moody@casterbridge.net

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From bob prohaska@3:770/3 to Mike Scott on Sun Nov 29 05:29:42 2020
    Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
    Hi all; a quick query about speeds.

    I currently use an old i386 machine as home server (everything from
    local NFS file-store, to bind, to email server). It's an acer aspire
    r3700, running at 1.8GHz, 2 proc/4 thread job. It runs freebsd headless,
    and I use vnc for day-to-day operations on it.

    I'm contemplating replacing with a rpi4, which I gather is now supported
    by freebsd, using a usb3 external hard drive. But is this likely to
    prove slower or problematic for any other reason?

    I think you'll be pleasantly surprised by FreeBSD on a Pi. It works relatively well, but be aware that Pi4 support is still only in -current. There's some "mucking about" to be done yet.

    Best to browse the freebsd-arm mailing list archive to see if it's progressed to the point of being useful to you.

    For my part, FreeBSD has made an admirably functional platform for bind, apache and sendmail. It's less useful as a workstation; I'm typing this on
    a Pi4 ssh'd into a Pi2. There are not yet precompiled applications in any
    great variety, but command-line programs build via the ports collection
    very reliably. Self-hosting can be done with a little fussing, Xorg built without too much trouble, but browsers are a major pain to compile.

    There are some random observations of mine at
    http://www.zefox.net/~fbsd/
    and a wealth of knowledge on the mailing list.

    Hope this helps,

    bob prohaska

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From A. Dumas@3:770/3 to Richard Falken on Sun Nov 29 08:15:05 2020
    Richard Falken <nospam.Richard.Falken@f1.n770.z5875.fidonet.org> wrote:
    The PIs are not great at I/O. They will do for a personal server with a
    couple
    of users, but it is not ideal as a server platform.

    II don'tknow about the newer PIs, but at least the early ones used an USB
    bus
    for the ethernet connection, which meant network I/O was limited from the start.

    Why post if you don't know. The Pi4 has a true 1 Gbps ethernet port and two
    usb 3.0 ports of 4.8 Gbps (what others now call usb 3.1 gen 1). This is possible because the new chip has PCIe (x1).

    Also, get Fidonet to fix their clocks.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Pancho@3:770/3 to Mike Scott on Sun Nov 29 10:20:13 2020
    On 28/11/2020 11:33, Mike Scott wrote:
    Hi all; a quick query about speeds.

    I currently use an old i386 machine as home server (everything from
    local NFS file-store, to bind, to email server). It's an acer aspire
    r3700, running at 1.8GHz, 2 proc/4 thread job. It runs freebsd headless,
    and I use vnc for day-to-day operations on it.

    I'm contemplating replacing with a rpi4, which I gather is now supported
    by freebsd, using a usb3 external hard drive. But is this likely to
    prove slower or problematic for any other reason?

    TIA for any thoughts.


    I use my rpi4 4GB as a Samba Server using USB3 disks, 2.5 HDD and SSD. I
    can't remember exact figures, but performance was close enough to
    gibabit ethernet for me to stop worrying. 2.5 HDD needs an additional
    USB power supply

    SSD USB to SATA cable.

    <https://www.amazon.co.uk/USB-SATA-Adapter-Cable-Drives-en-GB-SATA-USB-3-0-conv erter/dp/B01N2JIQR7/ref=sr_1_3?dchild=1&keywords=usb+to+sata&qid=1606644667&sr=


    2.5 USB to SATA cable.

    <https://www.amazon.co.uk/EkoBuy%C2%AE-Adapter-Optimized-Backward-Compatible-Bl ack/dp/B01EQ7PNZY/ref=sr_1_20?dchild=1&keywords=usb+to+sata&qid=1606644631&sr=8



    I also use the same rPi 4 to to provide a number of other services via
    docker. Things like Deluge, Gitea, Gollum, Motion Eye. It isn't really
    powerful enough for motion eye (motion detection), but fine for the others

    I seem to be running Unbound of my FreeBSD router (not a rpi), I'm not
    sure if it really is better than BIND or if this is just fashion. It
    does freeze occasionally, maybe once ever 3 or 4 months.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Jim Jackson@3:770/3 to All on Sun Nov 29 17:33:24 2020
    Your biggest problem will be deciding where to get your clock updates from; do you open the Pi to the internet or run a timeserver on another machine.

    Buy an RTC addon for those times when it reboots, and setup NTPD on it, sync'ing from a couple of reliable internet timeservers. Then run the Pi
    as your network time source.

    My home serving Pi is setup like that. Not that the RTC addon is used
    much, as my Pi only reboots once in half a dozen blue moons! I do sync
    the RTC from the system even day - so it isn't out by much if it does
    reboot, until it gets ntp sync. ntp maintained system time is far far
    more accurate than any RTC

    I used the AB electronics PiZero RTC

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From druck@3:770/3 to The Natural Philosopher on Mon Nov 30 19:46:53 2020
    On 28/11/2020 11:56, The Natural Philosopher wrote:
    On 28/11/2020 11:33, Mike Scott wrote:
    I currently use an old i386 machine as home server (everything from
    local NFS file-store, to bind, to email server). It's an acer aspire
    r3700, running at 1.8GHz, 2 proc/4 thread job. It runs freebsd
    headless, and I use vnc for day-to-day operations on it.

    I'm contemplating replacing with a rpi4, which I gather is now
    supported by freebsd, using a usb3 external hard drive. But is this
    likely to prove slower or problematic for any other reason?

    TIA for any thoughts.


    You really do not need a lot of power on a server that isn't running may applications. I suspect the bottleneck would be USB disk drive speed.

    It will still be quicker than the old PATA drives on a old 386 system.

    My Pi4 which I use as an NFS file server with a USB attached 2.5" hard
    drive and it does about 100MB/s locally and 50MB/s over the network.

    ---druck

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Mike Scott@3:770/3 to A. Dumas on Tue Dec 1 08:44:27 2020
    On 29/11/2020 08:15, A. Dumas wrote:
    Richard Falken <nospam.Richard.Falken@f1.n770.z5875.fidonet.org> wrote:
    The PIs are not great at I/O. They will do for a personal server with a couple
    of users, but it is not ideal as a server platform.

    II don'tknow about the newer PIs, but at least the early ones used an USB bus
    for the ethernet connection, which meant network I/O was limited from the
    start.

    Why post if you don't know. The Pi4 has a true 1 Gbps ethernet port and two usb 3.0 ports of 4.8 Gbps (what others now call usb 3.1 gen 1). This is possible because the new chip has PCIe (x1).

    Thanks all for the comments. I've played with a pi3 (and earlier), but
    it's clearly too slow even for my home network; I'm sort-of hoping a pi4
    would be up to the job. Just a little pricey to buy and try yet another
    unless there's a real chance it'd be a go-er.


    Also, get Fidonet to fix their clocks.



    --
    Mike Scott
    Harlow, England

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Mike Scott@3:770/3 to Derek.Moody on Tue Dec 1 08:54:14 2020
    On 29/11/2020 02:28, Derek.Moody wrote:
    .....
    If your external drive is SSD it will be faster than your current server and can be arranged to run silently using much less power.

    Caveat: I do not know the freebsd distro - I would expect it to be OK.
    I use Raspup, the Puppy Linux version for Pi.

    I've had fbsd running on the pi3, an unsupported 12.x. Actually, I'd
    seriously consider switching to a linux, except that I'm doing things
    using pf that don't seem readily possible with iptables (although maybe
    I've missed something).


    Your biggest problem will be deciding where to get your clock updates from; do you open the Pi to the internet or run a timeserver on another machine.

    The present pi3 has a rtc attached to help it on its way; the existing
    server has a (low-grade) gps dongle plus uses external ntp servers as
    backup. It provides time to our lan. Good to <20msec, which is good enough.


    Hth, Cheerio,



    --
    Mike Scott
    Harlow, England

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Mike Scott@3:770/3 to druck on Tue Dec 1 08:45:26 2020
    On 30/11/2020 19:46, druck wrote:
    On 28/11/2020 11:56, The Natural Philosopher wrote:


    My Pi4 which I use as an NFS file server with a USB attached 2.5" hard
    drive and it does about 100MB/s locally and 50MB/s over the network.

    Now that sounds promising.... thanks for some real figures.




    --
    Mike Scott
    Harlow, England

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From A. Dumas@3:770/3 to Mike Scott on Tue Dec 1 11:30:32 2020
    On 01-12-2020 09:44, Mike Scott wrote:
    On 29/11/2020 08:15, A. Dumas wrote:
    The Pi4 has a true 1 Gbps ethernet port and two
    usb 3.0 ports of 4.8 Gbps (what others now call usb 3.1 gen 1). This is
    possible because the new chip has PCIe (x1).

    Thanks all for the comments. I've played with a pi3 (and earlier), but
    it's clearly too slow even for my home network; I'm sort-of hoping a pi4 would be up to the job. Just a little pricey to buy and try yet another unless there's a real chance it'd be a go-er.

    To avoid disappointment, I think you should try & establish some
    performance criteria, as detailed and specific as possible, that you'd
    be happy with. Then investigate if they can be met (for example, by
    asking here or on the RPi forum). For instance:

    - must be freebsd
    - will be used wired on a gigabit switch
    - application is samba server
    - large file read throughput must be x MB/s

    I use my Pi4 4GB on ethernet, it boots from usb3 ssd, it's in a passive heatsink case (cpu temp below 40C for ambient of ~18C). It runs my
    development web server + database (apache2, php7, mariadb10) which it
    does fine. I run some backup scripts which I never notice interfering. I
    test bash scripts, no problem of course. Sometimes I fire up VNC from my desktop and use Mathematica on the Pi which is a bit slow but useable.
    Recently I set it up as a jupyter notebook server on the LAN which works
    well (but I end up using the local python install, anyway). Without
    overclock:

    $ time /usr/bin/factor 1234567890123456789012345678901 1234567890123456789012345678901: 7742394596501 159455563099482401

    real 0m2,086s
    user 0m2,075s
    sys 0m0,011s

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From A. Dumas@3:770/3 to A. Dumas on Tue Dec 1 11:36:59 2020
    On 01-12-2020 11:30, A. Dumas wrote:
    $ time /usr/bin/factor 1234567890123456789012345678901 1234567890123456789012345678901: 7742394596501 159455563099482401

    real    0m2,086s
    user    0m2,075s
    sys    0m0,011s

    My 7 year old iMac (3.2 GHz quad i5) is only about 8x as fast:

    $ time gfactor 1234567890123456789012345678901
    1234567890123456789012345678901: 7742394596501 159455563099482401

    real 0m0,257s
    user 0m0,248s
    sys 0m0,004s

    (installed via MacPorts, then 'sudo port install coreutils')

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to A. Dumas on Tue Dec 1 12:28:55 2020
    On Tue, 01 Dec 2020 11:36:59 +0100, A. Dumas wrote:

    On 01-12-2020 11:30, A. Dumas wrote:
    $ time /usr/bin/factor 1234567890123456789012345678901
    1234567890123456789012345678901: 7742394596501 159455563099482401

    real    0m2,086s user    0m2,075s sys    0m0,011s

    My 7 year old iMac (3.2 GHz quad i5) is only about 8x as fast:

    $ time gfactor 1234567890123456789012345678901 1234567890123456789012345678901: 7742394596501 159455563099482401

    real 0m0,257s user 0m0,248s sys 0m0,004s

    (installed via MacPorts, then 'sudo port install coreutils')

    Interesting: for exactly the same number to be factored I see:

    System Real User Sys CPU
    ======
    Lenovo T420 0.254s 0,252s 0.002s 1.9GHz Core i5
    Lenovo R61i 0.702s 0.693s 0.006s 1.6GHz Core Duo
    Whitebox PC 0.321s 0.314s 0.004s 1.0GHz AMC Dual Athlon
    RPI 2B 21.995s 11.496s 0.040s

    I'd been wondering whether an RP14B would be a good replacement for the
    old AMD whitebox, but it looks as if a some sort of mini-ITX system would
    be a better bet because I do all backups via rsync to a removable USB
    drive connected to the old AMD system, and to do what I need it to do, a replacement would need a minimum of 4 USB ports plus SATA and a VGA-
    capable display port.

    Thanks for posting those numbers, though - doing so gave me the kick
    needed to compare those speeds.


    --
    --
    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Martin Gregorie on Tue Dec 1 12:42:13 2020
    On 01/12/2020 12:28, Martin Gregorie wrote:
    On Tue, 01 Dec 2020 11:36:59 +0100, A. Dumas wrote:

    On 01-12-2020 11:30, A. Dumas wrote:
    $ time /usr/bin/factor 1234567890123456789012345678901
    1234567890123456789012345678901: 7742394596501 159455563099482401

    real    0m2,086s user    0m2,075s sys    0m0,011s

    My 7 year old iMac (3.2 GHz quad i5) is only about 8x as fast:

    $ time gfactor 1234567890123456789012345678901
    1234567890123456789012345678901: 7742394596501 159455563099482401

    real 0m0,257s user 0m0,248s sys 0m0,004s

    (installed via MacPorts, then 'sudo port install coreutils')

    Interesting: for exactly the same number to be factored I see:

    System Real User Sys CPU
    ======
    Lenovo T420 0.254s 0,252s 0.002s 1.9GHz Core i5
    Lenovo R61i 0.702s 0.693s 0.006s 1.6GHz Core Duo
    Whitebox PC 0.321s 0.314s 0.004s 1.0GHz AMC Dual Athlon
    RPI 2B 21.995s 11.496s 0.040s

    I'd been wondering whether an RP14B would be a good replacement for the
    old AMD whitebox, but it looks as if a some sort of mini-ITX system would
    be a better bet because I do all backups via rsync to a removable USB
    drive connected to the old AMD system, and to do what I need it to do, a replacement would need a minimum of 4 USB ports plus SATA and a VGA-
    capable display port.

    Thanks for posting those numbers, though - doing so gave me the kick
    needed to compare those speeds.



    I cant get near those


    Pi zero
    --------

    $time factor 1234567890123456789012345678901
    1234567890123456789012345678901: 7742394596501 159455563099482401

    real 0m9.186s
    user 0m9.156s
    sys 0m0.013s

    Shonky old pentium used as server
    ---------------------------------
    $time factor 1234567890123456789012345678901
    1234567890123456789012345678901: 7742394596501 159455563099482401

    real 0m0.452s
    user 0m0.440s
    sys 0m0.000s

    quad core desktop
    -----------------
    $time factor 1234567890123456789012345678901
    1234567890123456789012345678901: 7742394596501 159455563099482401

    real 0m0.224s
    user 0m0.220s
    sys 0m0.000s

    But on most CPU intensive tasks the desktop is 4x faster than the server.

    Compiling on the zero did however take about 20 times as long....

    --
    It’s easier to fool people than to convince them that they have been fooled. Mark Twain

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Chris Green@3:770/3 to Martin Gregorie on Tue Dec 1 12:47:17 2020
    Martin Gregorie <martin@mydomain.invalid> wrote:
    On Tue, 01 Dec 2020 11:36:59 +0100, A. Dumas wrote:

    On 01-12-2020 11:30, A. Dumas wrote:
    $ time /usr/bin/factor 1234567890123456789012345678901
    1234567890123456789012345678901: 7742394596501 159455563099482401

    real    0m2,086s user    0m2,075s sys    0m0,011s

    My 7 year old iMac (3.2 GHz quad i5) is only about 8x as fast:

    $ time gfactor 1234567890123456789012345678901 1234567890123456789012345678901: 7742394596501 159455563099482401

    real 0m0,257s user 0m0,248s sys 0m0,004s

    (installed via MacPorts, then 'sudo port install coreutils')

    Interesting: for exactly the same number to be factored I see:

    System Real User Sys CPU
    ======
    Lenovo T420 0.254s 0,252s 0.002s 1.9GHz Core i5
    Lenovo R61i 0.702s 0.693s 0.006s 1.6GHz Core Duo
    Whitebox PC 0.321s 0.314s 0.004s 1.0GHz AMC Dual Athlon
    RPI 2B 21.995s 11.496s 0.040s

    I'd been wondering whether an RP14B would be a good replacement for the
    old AMD whitebox, but it looks as if a some sort of mini-ITX system would
    be a better bet because I do all backups via rsync to a removable USB
    drive connected to the old AMD system, and to do what I need it to do, a replacement would need a minimum of 4 USB ports plus SATA and a VGA-
    capable display port.

    For what it's worth here are my figures for the factor test, though
    I doubt it has much relevance to throughput when running backups.

    Lenovo T470: 0.221s 0.219s 0.001s Core i7
    Desktop: 0.192s 0.191s 0.000s Core i5, Fujitsu Esprimo
    Pi 2B: 6.931s 6.924s 0.000s
    Pi 4: 2.124s 2.114s 0.010s

    It's interesting that my Core i5 desktop is actually a little faster
    than the Core i7 Lenovo laptop as the Lenovo is newer as well and, subjectively, often feels a little faster.

    Why my Pi 2B is so much faster than yours I don't know, it's a Pi 2B
    Revision 1.1.

    However the real 'wow, that's a lot faster' thing for all of them was
    to move from spinning disks to SSDs. (The t470 of course had one to
    start with).

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to Chris Green on Tue Dec 1 13:42:52 2020
    On Tue, 01 Dec 2020 12:47:17 +0000, Chris Green wrote:

    Why my Pi 2B is so much faster than yours I don't know, it's a Pi 2B
    Revision 1.1.

    Thats easy: mine is one of the early 512MB jobs.

    However the real 'wow, that's a lot faster' thing for all of them was to
    move from spinning disks to SSDs. (The t470 of course had one to start
    with).

    :-)

    I got the T420 as a replacement for the old R61i and was going to sling
    the latter when its disk (120GB) failed because its disk interface
    hardware refused point blank to handle any disk of over 256GB, and by
    that time you couldn't find any disks of less than 320GB capacity. But it seemed a shame to bin it, so I fitted a 128GB Sandisk SSD and was amazed
    by its performance for disk-related stuff. It still seems slow for
    compiles etc, though, compared with the T420.


    --
    --
    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From druck@3:770/3 to Theo on Tue Dec 1 13:59:01 2020
    On 01/12/2020 13:20, Theo wrote:
    Martin Gregorie <martin@mydomain.invalid> wrote:
    System Real User Sys CPU
    ======
    Lenovo T420 0.254s 0,252s 0.002s 1.9GHz Core i5
    Lenovo R61i 0.702s 0.693s 0.006s 1.6GHz Core Duo
    Whitebox PC 0.321s 0.314s 0.004s 1.0GHz AMC Dual Athlon
    RPI 2B 21.995s 11.496s 0.040s

    Bear in mind that you're probably running a 32 bit RPi OS (on the Pi 2 you will be), and the PCs are probably running 64 bit binaries. That'll make a large difference to the speed of the arithmetic for this test.

    That it does.

    RPi-4B 32bit 2.079s 2.075s 0.000s
    RPi-4B 64bit 0.633s 0.627s 0.001s

    By comparison

    Lenovo X1 0.172s 0.167s 0.004s 2.60GHz i7-9850H CPU x 6

    ---druck

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Theo@3:770/3 to Martin Gregorie on Tue Dec 1 13:20:52 2020
    Martin Gregorie <martin@mydomain.invalid> wrote:
    System Real User Sys CPU
    ======
    Lenovo T420 0.254s 0,252s 0.002s 1.9GHz Core i5
    Lenovo R61i 0.702s 0.693s 0.006s 1.6GHz Core Duo
    Whitebox PC 0.321s 0.314s 0.004s 1.0GHz AMC Dual Athlon
    RPI 2B 21.995s 11.496s 0.040s

    Bear in mind that you're probably running a 32 bit RPi OS (on the Pi 2 you
    will be), and the PCs are probably running 64 bit binaries. That'll make a large difference to the speed of the arithmetic for this test.

    Also to note that GNU Factor can be compiled to use libgmp, which has custom assembler implementations of key functions. It appears the one on Ubuntu
    18.04 isn't compiled that way, but that could make a large difference in performance if different OSes are compiled different ways (as well as the
    ARM v x86 comparison being different)

    I don't think it's a particularly good benchmark to compare across architectures. And of course it's only single threaded.

    I'd been wondering whether an RP14B would be a good replacement for the
    old AMD whitebox, but it looks as if a some sort of mini-ITX system would
    be a better bet because I do all backups via rsync to a removable USB
    drive connected to the old AMD system, and to do what I need it to do, a replacement would need a minimum of 4 USB ports plus SATA and a VGA-
    capable display port.

    That sounds like what you care about is I/O performance rather than CPU performance. Also bear in mind that mini ITXes are (mostly) a completely different power class from the RPi. Horses for courses.

    Theo

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to Theo on Tue Dec 1 13:52:06 2020
    On Tue, 01 Dec 2020 13:20:52 +0000, Theo wrote:

    Martin Gregorie <martin@mydomain.invalid> wrote:
    System Real User Sys CPU ======
    Lenovo T420 0.254s 0,252s 0.002s 1.9GHz Core i5 Lenovo R61i
    0.702s 0.693s 0.006s 1.6GHz Core Duo Whitebox PC 0.321s 0.314s
    0.004s 1.0GHz AMC Dual Athlon RPI 2B 21.995s 11.496s 0.040s

    Bear in mind that you're probably running a 32 bit RPi OS (on the Pi 2
    you will be), and the PCs are probably running 64 bit binaries. That'll
    make a large difference to the speed of the arithmetic for this test.

    Also to note that GNU Factor can be compiled to use libgmp, which has
    custom assembler implementations of key functions. It appears the one
    on Ubuntu 18.04 isn't compiled that way, but that could make a large difference in performance if different OSes are compiled different ways
    (as well as the ARM v x86 comparison being different)

    I don't think it's a particularly good benchmark to compare across architectures. And of course it's only single threaded.

    I'd been wondering whether an RP14B would be a good replacement for the
    old AMD whitebox, but it looks as if a some sort of mini-ITX system
    would be a better bet because I do all backups via rsync to a removable
    USB drive connected to the old AMD system, and to do what I need it to
    do, a replacement would need a minimum of 4 USB ports plus SATA and a
    VGA- capable display port.

    That sounds like what you care about is I/O performance rather than CPU performance. Also bear in mind that mini ITXes are (mostly) a
    completely different power class from the RPi. Horses for courses.

    Indeed the AMD box doesn't do a lot: it runs my local website (apache)
    plus my getmail/spamassassin/postfix/dovecot mail handling chain plus a
    couple of Java/PostgreSQL applications that do their heavy lifting at
    night along with an rsnapshot disk backup. The only time it gets a decent workout is once a week when every system that is backed up gets rsynced
    to a USB drive attached to the AMD box immediately before a software
    update. So, as you thought, I care more about its i/o throughput than its
    CPU performance.




    --
    --
    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to The Natural Philosopher on Tue Dec 1 14:06:20 2020
    On Tue, 01 Dec 2020 12:42:13 +0000, The Natural Philosopher wrote:


    Compiling on the zero did however take about 20 times as long....

    Its much the same here, except that the T420 laptop is 3-4 times faster
    than the AMD Dual Athlon for decent sized Java and C compiler runs while
    the RPi is about the same speed as an OS/9 system I used to have, that
    ran on an 8MHz 68020.

    The other thing I really notice is when I'm writing or debugging C or
    Java, the T420's first compilation run of the day typically takes 3-4
    seconds and all subsequent runs are under a second. This seems to be due
    to memory caching: the first run pulls compilers/linkers/JVM/make or ant
    into RAM along with most of the source files and they stay resident until
    doing something else with large memory requirements kicks them out.


    --
    --
    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From A. Dumas@3:770/3 to Theo on Tue Dec 1 17:12:47 2020
    On 01-12-2020 14:20, Theo wrote:
    I don't think it's a particularly good benchmark to compare across architectures. And of course it's only single threaded.

    Also, like you said, both Martin and OP care more about I/O than CPU
    arithmetic I think. Definitely a very flawed test, but it was quick. It
    was just one example of a possible performance criterium.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From A. Dumas@3:770/3 to druck on Tue Dec 1 17:16:21 2020
    On 01-12-2020 14:59, druck wrote:
    RPi-4B 32bit    2.079s  2.075s  0.000s
    RPi-4B 64bit    0.633s  0.627s  0.001s

    Nice. Here's another number to try which should take about 10x as long:
    $ time factor 101060998680964776859557640281323

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to A. Dumas on Tue Dec 1 16:55:24 2020
    A. Dumas wrote:

    Here's another number to try which should take about 10x as long:
    $ time factor 101060998680964776859557640281323

    0m1.953s (7 year old Xeon E3-1245 v3)

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Deloptes@3:770/3 to The Natural Philosopher on Tue Dec 1 19:01:02 2020
    The Natural Philosopher wrote:

    $time factor 1234567890123456789012345678901
    1234567890123456789012345678901: 7742394596501 159455563099482401

    real    0m0.224s
    user    0m0.220s
    sys     0m0.000s

    But on most CPU intensive  tasks the desktop is 4x faster than the server.

    Compiling on the zero did however take about 20 times as long....

    there is a lot of IO involved when compiling as well.

    I was wondering if someone considered the 32 vs.64bit.
    Here some results on the CPUs that I have. #3 is RPI4B with 32bit. #4 is
    Geode 32bit.

    The test might be discriminating the 32bit by the number size to be
    calculated


    $ grep "model name" /proc/cpuinfo
    model name : Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
    $ time /usr/bin/factor 1234567890123456789012345678901 1234567890123456789012345678901: 7742394596501 159455563099482401

    real 0m0.241s
    user 0m0.237s
    sys 0m0.001s

    # grep "model name" /proc/cpuinfo
    model name : AMD FX(tm)-4100 Quad-Core Processor

    # time /usr/bin/factor 1234567890123456789012345678901 1234567890123456789012345678901: 7742394596501 159455563099482401

    real 0m0.332s
    user 0m0.320s
    sys 0m0.000s

    # grep "model name" /proc/cpuinfo
    model name : ARMv7 Processor rev 3 (v7l)
    # time factor 1234567890123456789012345678901
    1234567890123456789012345678901: 7742394596501 159455563099482401

    real 0m6.358s
    user 0m6.321s
    sys 0m0.002s

    # grep "model name" /proc/cpuinfo
    model name : Geode(TM) Integrated Processor by National Semi
    # time /usr/bin/factor 1234567890123456789012345678901 1234567890123456789012345678901: 7742394596501 159455563099482401

    real 0m37.042s
    user 0m35.503s
    sys 0m1.408s

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Pancho@3:770/3 to druck on Tue Dec 1 19:45:22 2020
    On 30/11/2020 19:46, druck wrote:
    On 28/11/2020 11:56, The Natural Philosopher wrote:
    On 28/11/2020 11:33, Mike Scott wrote:
    I currently use an old i386 machine as home server (everything from
    local NFS file-store, to bind, to email server). It's an acer aspire
    r3700, running at 1.8GHz, 2 proc/4 thread job. It runs freebsd
    headless, and I use vnc for day-to-day operations on it.

    I'm contemplating replacing with a rpi4, which I gather is now
    supported by freebsd, using a usb3 external hard drive. But is this
    likely to prove slower or problematic for any other reason?

    TIA for any thoughts.


    You really do not need a lot of power on a server that isn't running
    may applications. I suspect the bottleneck would be USB disk drive speed.

    It will still be quicker than the old PATA drives on a old 386 system.

    My Pi4 which I use as an NFS file server with a USB attached 2.5" hard
    drive and it does about 100MB/s locally and 50MB/s over the network.


    Mi rPi4 Samba file server using two USB attached drives gives:

    SSD I get 345 MB/s local read, 110MB/s over the network read&write.

    I get slightly slower than you for a very old laptop 2.5" HDD. 90 MB/s
    local, 45MB/s network.

    Local was measured using hdparm.

    I'm curious as to why the 2.5 HDD is only half speed over the network?

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From druck@3:770/3 to A. Dumas on Wed Dec 2 10:17:16 2020
    On 01/12/2020 16:16, A. Dumas wrote:
    On 01-12-2020 14:59, druck wrote:
    RPi-4B 32bit    2.079s  2.075s  0.000s
    RPi-4B 64bit    0.633s  0.627s  0.001s

    Nice. Here's another number to try which should take about 10x as long:
    $ time factor 101060998680964776859557640281323

    RPi-4B 32bit 28.093s 28.080s 0.004s Single core max 1.5GHz
    RPi-4B 64bit 7.717s 7.713s 0.000s Single core max 1.5GHz
    Thinkpad X1 1.848s 1.842s 0.004s i7 Single core max 4.2GHz

    ---druck

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Vincent Coen@2:250/1 to Pancho on Wed Dec 2 16:36:04 2020
    Hello Pancho!

    Tuesday December 01 2020 19:45, you wrote to druck:

    It will still be quicker than the old PATA drives on a old 386
    system.

    My Pi4 which I use as an NFS file server with a USB attached 2.5"
    hard drive and it does about 100MB/s locally and 50MB/s over the
    network.


    Mi rPi4 Samba file server using two USB attached drives gives:

    SSD I get 345 MB/s local read, 110MB/s over the network read&write.

    I get slightly slower than you for a very old laptop 2.5" HDD. 90 MB/s local, 45MB/s network.

    Local was measured using hdparm.

    I'm curious as to why the 2.5 HDD is only half speed over the network?


    This is not so difficult to work out starting with the results you got so:

    345 MB/s = 3450 Mb/s b = bits.
    110 Mb/s = 1100 Mb/s.

    What is the speeds of a USB port ?

    USB 3 same as 3.1 (gen 1) defaults to 480 Mb/s but can go to 5 Gb
    USB 3.1 gen 2 is speeds up to 10Gb.

    USB 3.2 has :

    Gen 1x1 (previously known as USB 3.1 and USB 3.0) = 5Gb

    Gen 1x2 = 10Gb

    Gen 2x1 (previously known as 3.1 gen 2) = 10Gb

    Gen 2x2 20Gb.

    These speeds are the USB standard and does not mean that the mobo manu fully supports these speeds not that the specific hardware that is linked to them does the same as other I/O gets in the way.

    Read speeds are always better than twice as fast as Write speeds as more work is needed at least for SSD units as it has to find a clean sector.

    Hence another reason foir using fstrim nightly. fstrim is part of linux-utils.

    It should be installed as standard if the install system sees's one but that does depend on the distro authors.

    Note that the Pi4B spec shows that 2 USB 3.0 and 2 USB 2.0 ports are fitted so not that fastest available but for the brand nothing new as they are hardly working any where near the edge of technology other than having a Gigabit Ethernet port which could be used say with a fast NAS.


    Vincent

    --- Mageia Linux v7.1 X64/Mbse v1.0.7.17/GoldED+/LNX 1.1.5-b20180707
    * Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1)
  • From Scott Alfter@3:770/3 to martin@mydomain.invalid on Wed Dec 2 16:05:38 2020
    In article <rq5h8s$3n5$1@dont-email.me>,
    Martin Gregorie <martin@mydomain.invalid> wrote:
    I got the T420 as a replacement for the old R61i and was going to sling
    the latter when its disk (120GB) failed because its disk interface
    hardware refused point blank to handle any disk of over 256GB, and by
    that time you couldn't find any disks of less than 320GB capacity. But it >seemed a shame to bin it, so I fitted a 128GB Sandisk SSD and was amazed
    by its performance for disk-related stuff. It still seems slow for
    compiles etc, though, compared with the T420.

    An M.2 to 2.5" SATA (or PATA, if it's old enough to use that) adapter is one route to getting smaller drives for older computers. I recently dropped a 240GB M.2 stick into a G4 Mac mini (probably slower than a Raspberry Pi 3,
    to keep on topic) this way. Boot time into Mac OS X is measurably quicker,
    and the extra space is now hosting a Gentoo Linux install. Total cost for
    the M.2 stick and the PATA adapter was about $40.

    _/_
    / v \ Scott Alfter (remove the obvious to send mail)
    (IIGS( https://alfter.us/ Top-posting!
    \_^_/ >What's the most annoying thing on Usenet?

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From A. Dumas@3:770/3 to druck on Thu Dec 3 10:50:10 2020
    On 02-12-2020 11:17, druck wrote:
    On 01/12/2020 16:16, A. Dumas wrote:
    $ time factor 101060998680964776859557640281323

    RPi-4B 32bit    28.093s  28.080s  0.004s  Single core max 1.5GHz
    RPi-4B 64bit    7.717s   7.713s   0.000s  Single core max 1.5GHz

    Wow, what a difference. I got ~exactly the same for RaspiOS 32-bit but
    my Ubuntu 20.10 Desktop 64-bit seems consistently a little slower at
    around 7.885s. Not doing anything else so I can't imagine it's
    background tasks. Perhaps slightly different libraries or compiler
    settings for factor? (checking) Well, the slower one on Ubuntu seems to
    be newer at least, at version 8.32 vs. 8.30, ha!

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to A. Dumas on Thu Dec 3 11:47:07 2020
    On 03/12/2020 09:50, A. Dumas wrote:
    my Ubuntu 20.10 Desktop 64-bit seems consistently a little slower at
    around 7.885s. Not doing anything else so I can't imagine it's
    background tasks. Perhaps slightly different libraries or compiler
    settings for factor?
    Don't disregard the fact that the clock rate may be slightly different.

    I have no idea what a pi uses as a master clock oscillator, or whether
    it is a variable thing.

    Ah.

    "Although 1.5GHz is its maximum speed, Raspberry Pi typically idles at
    600MHz and switches to the maximum speed when needed. Overclocking is
    the process of setting a higher maximum speed for computer components.
    We can adjust the settings in config.txt to overclock both the CPU and
    GPU (graphics processing unit).

    We’ve experimented with speeds up to 2.147GHz for the CPU and 750MHz for
    the GPU (up from its 500MHz default). These are the kinds of speeds
    found on high-end desktop computers.

    Your mileage will vary and, if Raspberry Pi gets too hot, it will slow
    right down. Experimenting with overclocking will crash Raspbian, and
    there is a high chance your Raspberry Pi will refuse to start at some
    point. If programs start crashing, or Raspbian refuses to start, you
    will need to dial back on the speed. But overclocking is fun and
    potentially a way to get more from Raspberry Pi."

    So it seems that it is all variable


    --
    "The most difficult subjects can be explained to the most slow witted
    man if he has not formed any idea of them already; but the simplest
    thing cannot be made clear to the most intelligent man if he is firmly persuaded that he knows already, without a shadow of doubt, what is laid
    before him."

    - Leo Tolstoy

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Mike Scott@3:770/3 to Mike Scott on Fri Dec 4 08:08:46 2020
    On 28/11/2020 11:33, Mike Scott wrote:
    Hi all; a quick query about speeds.
    ....
    I'm contemplating replacing with a rpi4, which I gather is now supported
    by freebsd, using a usb3 external hard drive. But is this likely to
    prove slower or problematic for any other reason?

    TIA for any thoughts.

    Many thanks to all who've replied.

    After two brief power cuts in as many hours yesterday, which played
    havoc with the existing machine(*), this looks like a project for the
    new year, along with a ups - so any suggestions for a good ups for a
    24/7 pi server please? A quick look round suggests I could pay nearly as
    much as the pi would cost, so any ideas for something cheap(-ish) and
    reliable would be welcome.

    Thanks.



    (*) Weird things happened: it hung twice while trying to reboot, then
    rebooted on the 3rd try: but fsck moaned about sundry files, even though
    the ufs file system is journalled.


    --
    Mike Scott
    Harlow, England

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Mike Scott on Fri Dec 4 09:46:35 2020
    On 04/12/2020 08:08, Mike Scott wrote:
    any suggestions for a good ups for a 24/7 pi server please?

    You could do worse than a continuously charged 11V lithium pack or 12v
    car battery and a 5V switched regulator.

    How many amps does a Pi draw?
    How long do you want it to stay up?


    --
    Socialism is the philosophy of failure, the creed of ignorance and the
    gospel of envy.

    Its inherent virtue is the equal sharing of misery.

    Winston Churchill

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From NY@3:770/3 to The Natural Philosopher on Fri Dec 4 10:03:43 2020
    "The Natural Philosopher" <tnp@invalid.invalid> wrote in message news:rqd0hr$r21$2@dont-email.me...
    On 04/12/2020 08:08, Mike Scott wrote:
    any suggestions for a good ups for a 24/7 pi server please?

    You could do worse than a continuously charged 11V lithium pack or 12v car battery and a 5V switched regulator.

    How many amps does a Pi draw?
    How long do you want it to stay up?

    I happen to have a large battery that is charged from a 5 V USB charger
    (Micro USB input) and supplies 5 V (on a USB-A output). I thought I could
    use this as a UPS - particularly to keep a Pi going for brief < 5 second
    power cuts that were plaguing our village (overhanging trees touching the
    high voltage feed to a substation).

    But sadly this battery cuts off its output as soon as either an input cable
    is plugged in or 5V is supplied at that input (I forget which), and this
    rather scuppers that plan. :-(

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From druck@3:770/3 to A. Dumas on Fri Dec 4 10:26:21 2020
    On 03/12/2020 09:50, A. Dumas wrote:
    On 02-12-2020 11:17, druck wrote:
    On 01/12/2020 16:16, A. Dumas wrote:
    $ time factor 101060998680964776859557640281323

    RPi-4B 32bit    28.093s  28.080s  0.004s  Single core max 1.5GHz
    RPi-4B 64bit    7.717s   7.713s   0.000s  Single core max 1.5GHz

    Wow, what a difference. I got ~exactly the same for RaspiOS 32-bit but
    my Ubuntu 20.10 Desktop 64-bit seems consistently a little slower at
    around 7.885s. Not doing anything else so I can't imagine it's
    background tasks. Perhaps slightly different libraries or compiler
    settings for factor? (checking) Well, the slower one on Ubuntu seems to
    be newer at least, at version 8.32 vs. 8.30, ha!

    I ran it several times and took the lowest time.

    That ensures everything is cached in memory and the CPU has switched to
    the highest frequency, and filters out to some degree short lived
    processes which may be running in the background.

    Normally you see the times decrease during the first few runs, then
    level out. If you have insufficient cooling you might see times go back
    up as the CPU thermally throttles.

    ---druck

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Ahem A Rivet's Shot@3:770/3 to Mike Scott on Fri Dec 4 10:36:47 2020
    On Fri, 4 Dec 2020 08:08:46 +0000
    Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:

    After two brief power cuts in as many hours yesterday, which played
    havoc with the existing machine(*), this looks like a project for the
    new year, along with a ups - so any suggestions for a good ups for a
    24/7 pi server please? A quick look round suggests I could pay nearly as
    much as the pi would cost, so any ideas for something cheap(-ish) and reliable would be welcome.

    Some "powerbanks" can provide power while charging (all of mine
    can) and there are some USB-C ones that support USB-PD at various levels
    (18W is common, 30W and even 60W are available) but I don't know if any of those will supply power while charging (ask before buying).

    Do post back in here if you find a good one.

    --
    Steve O'Hara-Smith | Directable Mirror Arrays C:\>WIN | A better way to focus the sun
    The computer obeys and wins. | licences available see
    You lose and Bill collects. | http://www.sohara.org/

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to All on Fri Dec 4 11:30:23 2020
    On 04/12/2020 10:03, NY wrote:
    "The Natural Philosopher" <tnp@invalid.invalid> wrote in message news:rqd0hr$r21$2@dont-email.me...
    On 04/12/2020 08:08, Mike Scott wrote:
    any suggestions for a good ups for a 24/7 pi server please?

    You could do worse than a continuously charged 11V lithium pack or 12v
    car battery  and a 5V switched regulator.

    How many amps does a Pi draw?
    How long do you want it to stay up?

    I happen to have a large battery that is charged from a 5 V USB charger (Micro USB input) and supplies 5 V (on a USB-A output). I thought I
    could use this as a UPS - particularly to keep a Pi going for brief < 5 second power cuts that were plaguing our village (overhanging trees
    touching the high voltage feed to a substation).

    But sadly this battery cuts off its output as soon as either an input
    cable is plugged in or 5V is supplied at that input (I forget which),
    and this rather scuppers that plan. :-(

    There are ways around this sort of thing, in hardware.
    Personally I would probably build my own UPS.

    A decent 12v battery, a 5v switched regulator and a constant voltage
    trickle charger.

    Batteries and trickle chargers are standard automotive kit. a 5V
    switching regulator is something that is most easily sourced as an RC
    model spare, where they are used to step down flight battery power to
    servo and receiver voltages e.g.

    https://hobbyking.com/en_us/5v-5a-ubec-2-5s-lipoly-7-2-21v.html

    Connect the trickle charger to the mains, the battery to the trickle
    charger and the SBEC to the battery and the Pi to the SBEC....

    --
    If I had all the money I've spent on drink...
    ..I'd spend it on drink.

    Sir Henry (at Rawlinson's End)

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Adam Funk@3:770/3 to Jim Jackson on Mon Dec 7 10:13:36 2020
    On 2020-11-29, Jim Jackson wrote:

    Your biggest problem will be deciding where to get your clock updates from; >> do you open the Pi to the internet or run a timeserver on another machine.

    Buy an RTC addon for those times when it reboots, and setup NTPD on it, sync'ing from a couple of reliable internet timeservers. Then run the Pi
    as your network time source.

    My home serving Pi is setup like that. Not that the RTC addon is used
    much, as my Pi only reboots once in half a dozen blue moons! I do sync
    the RTC from the system even day - so it isn't out by much if it does
    reboot, until it gets ntp sync. ntp maintained system time is far far
    more accurate than any RTC

    I used the AB electronics PiZero RTC

    Just out of curiosity, what significant benefits do you get from the
    RTC? I have NTP running on mine, and the only anomaly I notice is
    this sort of thing in the `last` output:

    reboot system boot 5.4.79-v7l+ Thu Jan 1 01:00 still running

    although `uptime` is correct and I can't find any '1970' or 'Jan' in
    any of the greppable log files.


    --
    so ladies, fish, and gentlemen,
    here's my angled dream

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Chris Green@3:770/3 to Adam Funk on Mon Dec 7 10:33:02 2020
    Adam Funk <a24061@ducksburg.com> wrote:
    On 2020-11-29, Jim Jackson wrote:

    Your biggest problem will be deciding where to get your clock updates
    from;
    do you open the Pi to the internet or run a timeserver on another
    machine.

    Buy an RTC addon for those times when it reboots, and setup NTPD on it, sync'ing from a couple of reliable internet timeservers. Then run the Pi
    as your network time source.

    My home serving Pi is setup like that. Not that the RTC addon is used
    much, as my Pi only reboots once in half a dozen blue moons! I do sync
    the RTC from the system even day - so it isn't out by much if it does reboot, until it gets ntp sync. ntp maintained system time is far far
    more accurate than any RTC

    I used the AB electronics PiZero RTC

    Just out of curiosity, what significant benefits do you get from the
    RTC? I have NTP running on mine, and the only anomaly I notice is
    this sort of thing in the `last` output:

    reboot system boot 5.4.79-v7l+ Thu Jan 1 01:00 still running

    although `uptime` is correct and I can't find any '1970' or 'Jan' in
    any of the greppable log files.

    1st January 1970 is the "start of time" in the Unix world, that's why
    the next "millenium bug" is somewhere about 68 years from 1970 when a
    signed 32-bit count of seconds runs out.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Adam Funk@3:770/3 to Chris Green on Mon Dec 7 14:50:01 2020
    On 2020-12-07, Chris Green wrote:

    Adam Funk <a24061@ducksburg.com> wrote:
    On 2020-11-29, Jim Jackson wrote:

    Your biggest problem will be deciding where to get your clock updates from;
    do you open the Pi to the internet or run a timeserver on another machine.

    Buy an RTC addon for those times when it reboots, and setup NTPD on it,
    sync'ing from a couple of reliable internet timeservers. Then run the Pi >> > as your network time source.

    My home serving Pi is setup like that. Not that the RTC addon is used
    much, as my Pi only reboots once in half a dozen blue moons! I do sync
    the RTC from the system even day - so it isn't out by much if it does
    reboot, until it gets ntp sync. ntp maintained system time is far far
    more accurate than any RTC

    I used the AB electronics PiZero RTC

    Just out of curiosity, what significant benefits do you get from the
    RTC? I have NTP running on mine, and the only anomaly I notice is
    this sort of thing in the `last` output:

    reboot system boot 5.4.79-v7l+ Thu Jan 1 01:00 still running

    although `uptime` is correct and I can't find any '1970' or 'Jan' in
    any of the greppable log files.

    1st January 1970 is the "start of time" in the Unix world, that's why
    the next "millenium bug" is somewhere about 68 years from 1970 when a
    signed 32-bit count of seconds runs out.

    I understand why that's the magic reset date (which is why I was
    grepping for "Jan" as well as "1970") --- I was just wondering about
    what kind of situation needs the external clock so the time is
    accurate *before* NTP starts working.


    --
    I heard that Hans Christian Andersen lifted the title for "The Little
    Mermaid" off a Red Lobster Menu. ---Bucky Katt

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Ahem A Rivet's Shot@3:770/3 to Adam Funk on Mon Dec 7 15:55:32 2020
    On Mon, 07 Dec 2020 14:50:01 +0000
    Adam Funk <a24061@ducksburg.com> wrote:

    I was just wondering about
    what kind of situation needs the external clock so the time is
    accurate *before* NTP starts working.

    It rather depends on how long might elapse before reaching a time server, if there's any danger of that being a long time then a RTC is very helpful, if you're sure of a time server immediately after boot then it's pretty much useless.

    --
    Steve O'Hara-Smith | Directable Mirror Arrays C:\>WIN | A better way to focus the sun
    The computer obeys and wins. | licences available see
    You lose and Bill collects. | http://www.sohara.org/

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to Ahem A Rivet's Shot on Mon Dec 7 17:06:58 2020
    On Mon, 07 Dec 2020 15:55:32 +0000, Ahem A Rivet's Shot wrote:

    On Mon, 07 Dec 2020 14:50:01 +0000 Adam Funk <a24061@ducksburg.com>
    wrote:

    I was just wondering about what kind of situation needs the external
    clock so the time is accurate *before* NTP starts working.

    It rather depends on how long might elapse before reaching a time server, if there's any danger of that being a long time then a RTC is
    very helpful, if you're sure of a time server immediately after boot
    then it's pretty much useless.

    Don't forget that an old GPS unit, provided it has serial NMEA0183 output
    which many of them had, can be used by ntpd as a primary time reference.
    These can be connected to an RPI via a USB-serial adapter. There is a
    reference driver for ntpd that allows it to accept an NMEA0183 primary
    time stream.


    --
    --
    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Tauno Voipio@3:770/3 to Adam Funk on Mon Dec 7 20:05:01 2020
    On 7.12.20 16.50, Adam Funk wrote:
    On 2020-12-07, Chris Green wrote:

    Adam Funk <a24061@ducksburg.com> wrote:
    On 2020-11-29, Jim Jackson wrote:

    Your biggest problem will be deciding where to get your clock updates from;
    do you open the Pi to the internet or run a timeserver on another machine.

    Buy an RTC addon for those times when it reboots, and setup NTPD on it, >>>> sync'ing from a couple of reliable internet timeservers. Then run the Pi >>>> as your network time source.

    My home serving Pi is setup like that. Not that the RTC addon is used
    much, as my Pi only reboots once in half a dozen blue moons! I do sync >>>> the RTC from the system even day - so it isn't out by much if it does
    reboot, until it gets ntp sync. ntp maintained system time is far far
    more accurate than any RTC

    I used the AB electronics PiZero RTC

    Just out of curiosity, what significant benefits do you get from the
    RTC? I have NTP running on mine, and the only anomaly I notice is
    this sort of thing in the `last` output:

    reboot system boot 5.4.79-v7l+ Thu Jan 1 01:00 still running

    although `uptime` is correct and I can't find any '1970' or 'Jan' in
    any of the greppable log files.

    1st January 1970 is the "start of time" in the Unix world, that's why
    the next "millenium bug" is somewhere about 68 years from 1970 when a
    signed 32-bit count of seconds runs out.

    I understand why that's the magic reset date (which is why I was
    grepping for "Jan" as well as "1970") --- I was just wondering about
    what kind of situation needs the external clock so the time is
    accurate *before* NTP starts working.


    The classic ntpd does not like to sync with a time that is
    far off from the local time. I used ntpdate to set the local
    time before starting ntpd up.

    --

    -TV

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Jim Jackson@3:770/3 to Adam Funk on Mon Dec 7 22:23:33 2020
    On 2020-12-07, Adam Funk <a24061@ducksburg.com> wrote:
    On 2020-11-29, Jim Jackson wrote:

    I used the AB electronics PiZero RTC

    Just out of curiosity, what significant benefits do you get from the
    RTC? I have NTP running on mine, and the only anomaly I notice is
    this sort of thing in the `last` output:

    reboot system boot 5.4.79-v7l+ Thu Jan 1 01:00 still running

    although `uptime` is correct and I can't find any '1970' or 'Jan' in
    any of the greppable log files.

    My home server is a syslog server for other stuff - like the VDSL router
    and Wireless access points - so I like it to have a reasonably good time
    as soon into boot as possible, even if it has only booted a handfull of
    times in the last couple of years. Also if the house power goes, then
    when it comes back, the server will come back well before the router
    gets DSL sync and an internet connection - and it's time will be good
    until internet connectivity is resumed.

    Several years ago we had several incidents where power would go (all our street) for 30 secs or so and then return. It turned out there was
    something dodgy under a road - and an especially heavy lorry in the
    wrong part of the road would cause problems. The road was up for quite a
    while as they fixed it.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Jim Jackson@3:770/3 to All on Mon Dec 7 22:25:58 2020

    The classic ntpd does not like to sync with a time that is
    far off from the local time. I used ntpdate to set the local
    time before starting ntpd up.


    Yeah I used to do that, but ntpd now has the -g option to allow it do an initial time jump, so ntpdate is no longer needed.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Adam Funk@3:770/3 to Jim Jackson on Tue Dec 8 08:34:46 2020
    On 2020-12-07, Jim Jackson wrote:


    The classic ntpd does not like to sync with a time that is
    far off from the local time. I used ntpdate to set the local
    time before starting ntpd up.


    Yeah I used to do that, but ntpd now has the -g option to allow it do an initial time jump, so ntpdate is no longer needed.

    That seems to be the default config on Raspbian; I just found the /etc/default/ntp file (which I've never edited) with just this line in
    it:

    NTPD_OPTS='-g'

    Thanks for pointing that out.


    --
    I love you like sin, but I won't be your pigeon

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Adam Funk@3:770/3 to Jim Jackson on Tue Dec 8 08:32:12 2020
    On 2020-12-07, Jim Jackson wrote:

    On 2020-12-07, Adam Funk <a24061@ducksburg.com> wrote:
    On 2020-11-29, Jim Jackson wrote:

    I used the AB electronics PiZero RTC

    Just out of curiosity, what significant benefits do you get from the
    RTC? I have NTP running on mine, and the only anomaly I notice is
    this sort of thing in the `last` output:

    reboot system boot 5.4.79-v7l+ Thu Jan 1 01:00 still running

    although `uptime` is correct and I can't find any '1970' or 'Jan' in
    any of the greppable log files.

    My home server is a syslog server for other stuff - like the VDSL router
    and Wireless access points - so I like it to have a reasonably good time
    as soon into boot as possible, even if it has only booted a handfull of
    times in the last couple of years. Also if the house power goes, then
    when it comes back, the server will come back well before the router
    gets DSL sync and an internet connection - and it's time will be good
    until internet connectivity is resumed.

    Several years ago we had several incidents where power would go (all our street) for 30 secs or so and then return. It turned out there was
    something dodgy under a road - and an especially heavy lorry in the
    wrong part of the road would cause problems. The road was up for quite a while as they fixed it.

    That makes sense --- thanks.


    --
    We know he [Larry Walters] broke some part of the Federal Aviation
    Act, and as soon as we decide which part it is, some type of charge
    will be filed. If he had a pilot's license, we'd suspend that, but
    he doesn't. ---Neal Savoy

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From David Taylor@3:770/3 to Jim Jackson on Tue Dec 8 09:46:09 2020
    On 07/12/2020 22:23, Jim Jackson wrote:
    []
    My home server is a syslog server for other stuff - like the VDSL router
    and Wireless access points - so I like it to have a reasonably good time
    as soon into boot as possible, even if it has only booted a handfull of
    times in the last couple of years. Also if the house power goes, then
    when it comes back, the server will come back well before the router
    gets DSL sync and an internet connection - and it's time will be good
    until internet connectivity is resumed.
    []

    A board with GPS, PPS and real-time clock is available here:


    https://store.uputronics.com/index.php?route=product/product&path=60_64&product _id=81

    --
    Cheers,
    David
    Web: http://www.satsignal.eu

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Theo@3:770/3 to Martin Gregorie on Tue Dec 8 12:40:33 2020
    Martin Gregorie <martin@mydomain.invalid> wrote:
    On Mon, 07 Dec 2020 15:55:32 +0000, Ahem A Rivet's Shot wrote:
    It rather depends on how long might elapse before reaching a time server, if there's any danger of that being a long time then a RTC is
    very helpful, if you're sure of a time server immediately after boot
    then it's pretty much useless.

    Don't forget that an old GPS unit, provided it has serial NMEA0183 output which many of them had, can be used by ntpd as a primary time reference. These can be connected to an RPI via a USB-serial adapter. There is a reference driver for ntpd that allows it to accept an NMEA0183 primary
    time stream.

    How long with a GPS unit take to get a time fix from cold, out of interest?

    The OP's situation sounds like one where a RTC would be quicker than a cold GPS, although maybe there's a way to get a time out of GPS before it has
    seen enough satellites for a position fix.

    (and can you do A-GPS by configuring the lat/long of your stationary Pi?)

    Theo

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to Theo on Tue Dec 8 13:22:13 2020
    Theo wrote:

    How long with a GPS unit take to get a time fix from cold, out of interest?

    I think it'll know the time as soon as it receives a single frame (every
    30 seconds) that's the number of 1.5 second "ticks" into the current
    week, weeks start at midnight.

    But it might need to receive the full almanac (every 12.5 minutes) to
    know the date offset to UTC, because the week number rolls around every
    1024 weeks.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to Theo on Tue Dec 8 15:12:44 2020
    On Tue, 08 Dec 2020 12:40:33 +0000, Theo wrote:

    How long with a GPS unit take to get a time fix from cold, out of
    interest?

    That depends on the make, model, how good its view of the sky is and how
    long since it last had a fix. The older trekking units, e.g. Garmin GPS
    II, generally took 1-2 minutes to get a fix outdoors and didn't work
    indoors. The slightly more recent GPS-35, a puck with no controls or
    screen, was quite a lot faster and IIRC would get a fix if left on a south-facing window sill in the UK.

    How long since last the last time a GPS had a fix matters because each
    receiver has a copy of the ephemeris, which contains orbital parameters
    and time adjustments for all the satellites in the GPS constellation. If
    this is out of date, the receiver can't get a fix until it has downloaded
    a fresh ephemeris. GPS satellites broadcast their ID and time every
    second and a new ephemeris rather less frequently. To get a fix the
    receiver needs to know the ID and time at each satellite. It looks up
    orbital details for the satellites it can hear in the ephemeris and from
    this and the broadcast time at each satellite it knows where it was when
    that satellite sent its last time message. This lets it work out times of flight for the signals and, from that, its distance from the satellite.
    Then it combines information about all the satellites to work out exactly
    where it is and what the exact time is at its location.

    The OP's situation sounds like one where a RTC would be quicker than a
    cold GPS, although maybe there's a way to get a time out of GPS before
    it has seen enough satellites for a position fix.

    I'm certain thats true, particularly with an old GPS receiver.

    Another caveat: I have a pair of old Garmin GPS II+ units, used
    originally for model aircraft tracking and later for full-size glider navigation, bought in 2001 and 2004. They still work because they have
    always had good AA cells in them. That's important for early GPS units,
    which used battery-backed RAM to store waypoints and, most importantly,
    the GPS epoch counter. The old Garmins used a soldered-in battery (2032
    or similar) to keep the RAM active while you changed the AA cells, but if
    left for any time with AA cells removed, the coin cell will die and the
    RAM will be wiped and the epoch counter will be zeroed. However, none of
    these units have any ability to configure the epoch, so once that
    happens, the GPS receiver is bricked. My pair still work because having
    good batteries in them has kept the coin cell from being used except for
    a minute every 2 years or so when the AA cells get changed.

    More recent receivers use non-volatile memory: these should still be
    usable but I don't know which specific makes or models these would be.

    I also have a pair of PNAs (a Binatone and a Medion S3747) which run on
    Li-ion batteries and store vital data in non-volatile memory, both are
    used to run LK8000, a glider navigation and flight logging app. The Medion normally comes up from cold in about a minute. The Binatone was bought in around 2008 and the Medion in 2014.

    However, when I suggested using a GPS as time source I was thinking that
    in at least some cases it may be better to treat the GPS receiver as its
    prime time source, particularly if the RPi isn't more or less constantly
    online to an internet time source.

    (and can you do A-GPS by configuring the lat/long of your stationary
    Pi?)

    Probably not - seeing that the GPS still needs to have current ephemeris
    data, which it picks up when a satellite it can see broadcasts it.

    I'm only suggesting that using an old trekking or puck GPS is a good idea
    for somebody who already has one lurking, unused in a drawer.

    Otherwise the obvious way to do it is to buy one of the RPi GPS expansion cards. Most of them seem to use uBlox GPS receivers, which appear to be well-regarded devices.


    --
    --
    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From druck@3:770/3 to Adam Funk on Wed Dec 9 08:51:35 2020
    On 07/12/2020 10:13, Adam Funk wrote:
    Just out of curiosity, what significant benefits do you get from the
    RTC? I have NTP running on mine, and the only anomaly I notice is
    this sort of thing in the `last` output:

    reboot system boot 5.4.79-v7l+ Thu Jan 1 01:00 still running

    although `uptime` is correct and I can't find any '1970' or 'Jan' in
    any of the greppable log files.

    You shouldn't see any 1970's on reboot. Raspian saves the current value
    of the clock every 15 minutes or so. When you reboot it uses this saved
    time until it gets updated from ntp.

    You may notice the syslog doing this

    1720 Some stuff happening # the last log entry before rebooting
    1715 Rebooting # Reboot using last saved time
    ...
    1715 Getting RTC
    1722 More startup # The time has been updated
    ...
    1723 Finished rebooting

    The jumping of the time backwards and forwards can be a little
    confusing, but it is possible to work out what is happening.

    The advantage of a real time clock chip is this is avoided and the
    reboot time will be more accurate.

    I wouldn't use a GPS clock for reboot, as may take too long to give a
    reading, it is more suited to keeping accurate time once the machine is
    up and running - as long as it has a good view of the sky.

    ---drukc

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to Martin Gregorie on Wed Dec 9 09:03:23 2020
    Martin Gregorie wrote:

    Theo wrote:

    How long with a GPS unit take to get a time fix from cold, out of
    interest?

    That depends on the make, model, how good its view of the sky is and how
    long since it last had a fix.

    I think Theo was only asking about a time fix, not a location fix.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Tauno Voipio@3:770/3 to Andy Burns on Wed Dec 9 12:24:37 2020
    On 9.12.20 11.03, Andy Burns wrote:
    Martin Gregorie wrote:

    Theo wrote:

    How long with a GPS unit take to get a time fix from cold, out of
    interest?

    That depends on the make, model, how good its view of the sky is and how
    long since it last had a fix.

    I think Theo was only asking about a time fix, not a location fix.


    It does not matter - time and coordinates are members of the same
    equation group which has to be solved to get any of the members.

    The ephemerides data comes pretty slowly, it will take several minutes
    to get them if the receiver is out of date.

    A decent net connection and NTP will get the time much faster.

    --

    -TV

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to Andy Burns on Wed Dec 9 10:44:35 2020
    On Wed, 09 Dec 2020 09:03:23 +0000, Andy Burns wrote:

    Martin Gregorie wrote:

    Theo wrote:

    How long with a GPS unit take to get a time fix from cold, out of
    interest?

    That depends on the make, model, how good its view of the sky is and
    how long since it last had a fix.

    I think Theo was only asking about a time fix, not a location fix.

    Sure, but I don't think that affects a GPS receiver's startup process: it
    still needs the almanac data to determine the exact time: its location
    matters to it when correcting for signal travel time from satellite to
    receiver and, if any satellite clocks have been reset recently, what
    their UTC offset is now. If the receiver hasn't been run for a while it
    will need an updated almanac and, as Andy said, it may have to wait up to
    12.5 minutes for this to be retransmitted.

    If a GPS receiver is designed to be a time source, it will emit NMEA-0183
    ZDA messages which only contain UTC date/time information, but equally
    there's no reason why the time recipient shouldn't accept NMEA-0183
    message types RMC, GGA or GNS and discard everything except the time
    field because all these messages contain a UTC time stamp accurate to 10
    mS.


    --
    --
    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Adam Funk@3:770/3 to Martin Gregorie on Wed Dec 9 10:35:11 2020
    On 2020-12-07, Martin Gregorie wrote:

    On Mon, 07 Dec 2020 15:55:32 +0000, Ahem A Rivet's Shot wrote:

    On Mon, 07 Dec 2020 14:50:01 +0000 Adam Funk <a24061@ducksburg.com>
    wrote:

    I was just wondering about what kind of situation needs the external
    clock so the time is accurate *before* NTP starts working.

    It rather depends on how long might elapse before reaching a time
    server, if there's any danger of that being a long time then a RTC is
    very helpful, if you're sure of a time server immediately after boot
    then it's pretty much useless.

    Don't forget that an old GPS unit, provided it has serial NMEA0183 output which many of them had, can be used by ntpd as a primary time reference. These can be connected to an RPI via a USB-serial adapter. There is a reference driver for ntpd that allows it to accept an NMEA0183 primary
    time stream.

    (Not that I need something like this, but it's interesting.)

    I don't think an old GPS unit would be able to get a signal in my
    "network cupboard", which is a shelf in the back of a wardrobe under
    the stairs from the 1st to 2nd floors, & not on an outside wall.


    --
    Let me tell you what I think of bicycling. I think it has done more to emancipate women than anything else in the world. I stand and rejoice
    every time I see a woman ride by on a wheel. ---Susan B. Anthony

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to Adam Funk on Wed Dec 9 11:18:53 2020
    On Wed, 09 Dec 2020 10:35:11 +0000, Adam Funk wrote:

    On 2020-12-07, Martin Gregorie wrote:

    On Mon, 07 Dec 2020 15:55:32 +0000, Ahem A Rivet's Shot wrote:

    On Mon, 07 Dec 2020 14:50:01 +0000 Adam Funk <a24061@ducksburg.com>
    wrote:

    I was just wondering about what kind of situation needs the external
    clock so the time is accurate *before* NTP starts working.

    It rather depends on how long might elapse before reaching a time
    server, if there's any danger of that being a long time then a RTC is
    very helpful, if you're sure of a time server immediately after boot
    then it's pretty much useless.

    Don't forget that an old GPS unit, provided it has serial NMEA0183
    output which many of them had, can be used by ntpd as a primary time
    reference. These can be connected to an RPI via a USB-serial adapter.
    There is a reference driver for ntpd that allows it to accept an
    NMEA0183 primary time stream.

    (Not that I need something like this, but it's interesting.)

    I don't think an old GPS unit would be able to get a signal in my
    "network cupboard", which is a shelf in the back of a wardrobe under the stairs from the 1st to 2nd floors, & not on an outside wall.

    The older ones often don't work in a house, and sometimes not in a forest either, let alone under a tin roof. Modern receivers are much more
    sensitive. I've just fired two GPS receivers up to prove this point:

    - My old (1990) Garmin GPS2+ had no signal at all in the sill of a South- facing window and had problems outside it as well, due mainly to the sky
    view being restricted by both the house behind me and (bare) trees on the
    other three sides. It did eventually find two satellites, but never
    determined where it was.

    - My more recent (2014) Medion S3747 PNA got enough signal on the window
    sill to set its clock, but couldn't see enough satellites to determine
    its position. However, when it was taken outside to the same point as the
    GPS2+ it was able to determine its location and altitude after around 2 minutes.


    --
    --
    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Axel Berger@3:770/3 to Martin Gregorie on Wed Dec 9 12:53:49 2020
    Martin Gregorie wrote:
    get a signal in my "network cupboard",
    Modern receivers are much more sensitive.

    I agree, you can do a lot if you try. The question remains, is this
    really the best and most sensible solution? Things that are simple and
    easy often are, those that require a lot of effort often aren't.


    --
    /¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
    \ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
     X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
    / \ Mail | -- No unannounced, large, binary attachments, please! --

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Adam Funk@3:770/3 to Martin Gregorie on Wed Dec 9 11:49:11 2020
    On 2020-12-09, Martin Gregorie wrote:

    On Wed, 09 Dec 2020 10:35:11 +0000, Adam Funk wrote:

    On 2020-12-07, Martin Gregorie wrote:

    On Mon, 07 Dec 2020 15:55:32 +0000, Ahem A Rivet's Shot wrote:

    On Mon, 07 Dec 2020 14:50:01 +0000 Adam Funk <a24061@ducksburg.com>
    wrote:

    I was just wondering about what kind of situation needs the external >>>>> clock so the time is accurate *before* NTP starts working.

    It rather depends on how long might elapse before reaching a time
    server, if there's any danger of that being a long time then a RTC is
    very helpful, if you're sure of a time server immediately after boot
    then it's pretty much useless.

    Don't forget that an old GPS unit, provided it has serial NMEA0183
    output which many of them had, can be used by ntpd as a primary time
    reference. These can be connected to an RPI via a USB-serial adapter.
    There is a reference driver for ntpd that allows it to accept an
    NMEA0183 primary time stream.

    (Not that I need something like this, but it's interesting.)

    I don't think an old GPS unit would be able to get a signal in my
    "network cupboard", which is a shelf in the back of a wardrobe under the
    stairs from the 1st to 2nd floors, & not on an outside wall.

    The older ones often don't work in a house, and sometimes not in a forest either, let alone under a tin roof. Modern receivers are much more
    sensitive. I've just fired two GPS receivers up to prove this point:

    - My old (1990) Garmin GPS2+ had no signal at all in the sill of a South- facing window and had problems outside it as well, due mainly to the sky
    view being restricted by both the house behind me and (bare) trees on the other three sides. It did eventually find two satellites, but never determined where it was.

    - My more recent (2014) Medion S3747 PNA got enough signal on the window
    sill to set its clock, but couldn't see enough satellites to determine
    its position. However, when it was taken outside to the same point as the GPS2+ it was able to determine its location and altitude after around 2 minutes.

    Interesting. Of course I'm not surprised that the technology has
    improved!

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to Axel Berger on Wed Dec 9 12:15:04 2020
    On Wed, 09 Dec 2020 12:53:49 +0100, Axel Berger wrote:

    Martin Gregorie wrote:
    get a signal in my "network cupboard",
    Modern receivers are much more sensitive.

    I agree, you can do a lot if you try. The question remains, is this
    really the best and most sensible solution? Things that are simple and
    easy often are, those that require a lot of effort often aren't.

    Depends.

    If you need an accurate time on an RPi and it doesn't have a permanent, reliable connection to the internet but does have enough power to run a
    GPS receiver then using a GPS may well be the best choice. Or you could
    use one of the very low frequency time signals, e.g. MSF ('Rugby') or VVV,
    plug in a suitable receiver. If you use MSF then receivers are available
    from Galleon.

    Equally, if you have a spare GPS receiver and want to experiment, using
    that becomes a nice, cheap solution.

    OTOH, if there's a reasonably reliable internet connection where the Pi
    will be installed, use the NTP time service.


    --
    --
    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Chris Green@3:770/3 to Axel Berger on Wed Dec 9 12:22:54 2020
    Axel Berger <Spam@berger-odenthal.de> wrote:
    Martin Gregorie wrote:
    get a signal in my "network cupboard",
    Modern receivers are much more sensitive.

    I agree, you can do a lot if you try. The question remains, is this
    really the best and most sensible solution? Things that are simple and
    easy often are, those that require a lot of effort often aren't.

    It does seem a bit OTT to use a GPS only to get the time. :-)

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to Tauno Voipio on Wed Dec 9 13:14:35 2020
    Tauno Voipio wrote:

    Andy Burns wrote:

    I think Theo was only asking about a time fix, not a location fix.

    It does not matter - time and coordinates are members of the same
    equation group which has to be solved to get any of the members.

    I don't think so, every navigation message includes a timestamp (only
    the time of week, not which week within the 1024 week cycle).

    The ephemerides data comes pretty slowly, it will take several minutes
    to get them if the receiver is out of date.

    but you don't need the full almanac, or to know which space vehicle
    you're receiving from unless you want to know where you are.

    A decent net connection and NTP will get the time much faster.

    of course.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to Martin Gregorie on Wed Dec 9 13:26:32 2020
    Martin Gregorie wrote:

    I don't think that affects a GPS receiver's startup process: it
    still needs the almanac data to determine the exact time:

    But every satellite sends a NAV message every 30 seconds, receive just
    one of those and you know the TOW (time of week)

    <https://gssc.esa.int/navipedia/index.php/GPS_Navigation_Message>

    its location
    matters to it when correcting for signal travel time from satellite to receiver and, if any satellite clocks have been reset recently, what
    their UTC offset is now.

    I realise you need high time precision (a few tens of ns?) to calculate location based on distances from at least 4 satellites, but how
    imprecise is the single time stamp in each NAV message? sure you can't compensate for propagation delays etc between it and you, AIUI the
    message is timed to start on the :00 or:30 second mark by the
    satellite's atomic clock.

    If the receiver hasn't been run for a while it
    will need an updated almanac and, as Andy said, it may have to wait up to 12.5 minutes for this to be retransmitted.

    If a GPS receiver is designed to be a time source, it will emit NMEA-0183
    ZDA messages which only contain UTC date/time information, but equally there's no reason why the time recipient shouldn't accept NMEA-0183
    message types RMC, GGA or GNS and discard everything except the time
    field because all these messages contain a UTC time stamp accurate to 10
    mS.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Oscar@3:770/3 to usenet@andyburns.uk on Wed Dec 9 13:25:35 2020
    In article <i3c0tsF5ae6U1@mid.individual.net>,
    Andy Burns <usenet@andyburns.uk> wrote:
    It does not matter - time and coordinates are members of the same
    equation group which has to be solved to get any of the members.
    I don't think so, every navigation message includes a timestamp

    But if you don't know where you are, you still don't know how old this timestamp is. You only know what the time was when the message was sent.

    If you receive this message on Alpha Centauri, your clock is still 4,5
    years slow. Fortunately the odds are you won't accidentally end up there without knowing, so the inaccuracy might be within your limits.
    --
    [J|O|R] <- .signature.gz

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to Andy Burns on Wed Dec 9 13:42:00 2020
    On Wed, 09 Dec 2020 13:26:32 +0000, Andy Burns wrote:

    Martin Gregorie wrote:

    I don't think that affects a GPS receiver's startup process: it still
    needs the almanac data to determine the exact time:

    But every satellite sends a NAV message every 30 seconds, receive just
    one of those and you know the TOW (time of week)

    I'm far from certain that I've ever seen anything like that trickling out
    of the serial port of a Garmin GPS2 or GPS35 and its certainly not listed
    here:

    https://w3.cs.jmu.edu/bernstdh/Web/common/help/nmea-sentences.php

    or here:

    https://opencpn.org/wiki/dokuwiki/doku.php? id=opencpn:opencpn_user_manual:advanced_features:nmea_sentences&do=siteexport_a ddpage

    so my guess is that its used internally by the receiver and never output
    as an NMEA message. As I said, the only time and date message listed is
    ZDA, which contains UTC, day, month, year and local time zone


    --
    --
    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to Martin Gregorie on Wed Dec 9 13:56:24 2020
    Martin Gregorie wrote:

    Andy Burns wrote:

    But every satellite sends a NAV message every 30 seconds, receive just
    one of those and you know the TOW (time of week)

    I'm far from certain that I've ever seen anything like that trickling out
    of the serial port of a Garmin[...]

    No, I don't say it's spat out as NMEA sentences, it might be available
    in some of the chip-level GPS devices e.g. ublox seems to make TOW data available.

    so my guess is that its used internally by the receiver and never output
    as an NMEA message. As I said, the only time and date message listed is
    ZDA, which contains UTC, day, month, year and local time zone

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to Oscar on Wed Dec 9 13:41:11 2020
    Oscar wrote:

    Andy Burns wrote:

    every navigation message includes a timestamp

    But if you don't know where you are, you still don't know how old this timestamp is. You only know what the time was when the message was sent.

    Assuming there are no rPi on other planets yet, it's safe to assume
    you're approximately 66ms away from the GPS satellites :-)

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to Andy Burns on Wed Dec 9 14:31:03 2020
    Andy Burns wrote:

    it might be available in some of the chip-level GPS devices e.g. ublox

    Seems the u-blox zed-f9t module claims

    26s cold start (1 or 2s for restart)
    5ns accuracy
    only requires a single satellite in view

    whether it can meet all these individual specs at once, it doesn't say...

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Dennis Lee Bieber@3:770/3 to All on Wed Dec 9 13:46:28 2020
    On Wed, 9 Dec 2020 12:22:54 +0000, Chris Green <cl@isbd.net> declaimed the following:


    It does seem a bit OTT to use a GPS only to get the time. :-)

    https://timemachinescorp.com/product/gps-time-server-tm1000a/


    --
    Wulfraed Dennis Lee Bieber AF6VN
    wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From David Taylor@3:770/3 to Dennis Lee Bieber on Thu Dec 10 08:48:54 2020
    On 09/12/2020 18:46, Dennis Lee Bieber wrote:
    On Wed, 9 Dec 2020 12:22:54 +0000, Chris Green <cl@isbd.net> declaimed the following:


    It does seem a bit OTT to use a GPS only to get the time. :-)

    https://timemachinescorp.com/product/gps-time-server-tm1000a/

    and: http://www.leobodnar.com/shop/index.php?main_page=product_info&products_id=272

    --
    Cheers,
    David
    Web: http://www.satsignal.eu

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Mike Scott@3:770/3 to Martin Gregorie on Thu Dec 10 16:00:03 2020
    On 07/12/2020 17:06, Martin Gregorie wrote:
    ...

    Don't forget that an old GPS unit, provided it has serial NMEA0183 output which many of them had, can be used by ntpd as a primary time reference. These can be connected to an RPI via a USB-serial adapter. There is a reference driver for ntpd that allows it to accept an NMEA0183 primary
    time stream.


    (OP)
    I use that on my existing server - a cheapy £5 wonder gps dongle. No PPS output, just jittery nmea :-{

    I did some tests a while ago checking the offsets between my local
    ntp/gps and network servers over many days. There was a systematic,
    IIRC diurnal, drift cycle. 10's of msec, no more, but unexplained.

    There's also an unexplained step change after booting where the relative offsets of local gps and net servers shift by maybe 10 or so msec.



    --
    Mike Scott
    Harlow, England

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Joe@3:770/3 to Mike Scott on Fri Dec 11 19:47:06 2020
    On Tue, 1 Dec 2020 08:54:14 +0000
    Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:

    On 29/11/2020 02:28, Derek.Moody wrote:
    .....
    If your external drive is SSD it will be faster than your current
    server and can be arranged to run silently using much less power.

    Caveat: I do not know the freebsd distro - I would expect it to be
    OK. I use Raspup, the Puppy Linux version for Pi.

    I've had fbsd running on the pi3, an unsupported 12.x. Actually, I'd seriously consider switching to a linux, except that I'm doing things
    using pf that don't seem readily possible with iptables (although
    maybe I've missed something).

    Iptables is in the process of being replaced by nftables. I have a Pi
    with an nftables firewall, but so far I've only ported over my previous
    server iptables rules, I haven't explored further.

    --
    Joe

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Tauno Voipio@3:770/3 to Joe on Sat Dec 12 11:48:19 2020
    On 11.12.20 21.47, Joe wrote:
    On Tue, 1 Dec 2020 08:54:14 +0000
    Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:

    On 29/11/2020 02:28, Derek.Moody wrote:
    .....
    If your external drive is SSD it will be faster than your current
    server and can be arranged to run silently using much less power.

    Caveat: I do not know the freebsd distro - I would expect it to be
    OK. I use Raspup, the Puppy Linux version for Pi.

    I've had fbsd running on the pi3, an unsupported 12.x. Actually, I'd
    seriously consider switching to a linux, except that I'm doing things
    using pf that don't seem readily possible with iptables (although
    maybe I've missed something).

    Iptables is in the process of being replaced by nftables. I have a Pi
    with an nftables firewall, but so far I've only ported over my previous server iptables rules, I haven't explored further.


    I added a MAC filter (previously ebtables) and it works fine
    on a pi3B.

    --

    -TV

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From alister@3:770/3 to Mike Scott on Sat Dec 12 11:39:02 2020
    On Sat, 28 Nov 2020 11:33:09 +0000, Mike Scott wrote:

    Hi all; a quick query about speeds.

    I currently use an old i386 machine as home server (everything from
    local NFS file-store, to bind, to email server). It's an acer aspire
    r3700, running at 1.8GHz, 2 proc/4 thread job. It runs freebsd headless,
    and I use vnc for day-to-day operations on it.

    I'm contemplating replacing with a rpi4, which I gather is now supported
    by freebsd, using a usb3 external hard drive. But is this likely to
    prove slower or problematic for any other reason?

    TIA for any thoughts.

    Late to the party but my thoughts would be

    Network on I386 is probably 100mb/s at best so will be the main bottle
    neck in your current set-up (actually network speeds are nearly always
    the bottle neck on a network server.)
    the pi has a 1000gb interface, IIRC it still cannot achieve full
    performance but it can achieve considerably more than 100mb/s.

    therfore performance will be better than your current set-up even if it
    is not as good as a dedicated NAS

    in a domestic environment how critical is this anyway?

    as always it boils down to fast, reliable, cheap - choose any 2.





    --
    TAILFINS!! ... click ...

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From alister@3:770/3 to Mike Scott on Sat Dec 12 11:44:36 2020
    On Fri, 04 Dec 2020 08:08:46 +0000, Mike Scott wrote:

    On 28/11/2020 11:33, Mike Scott wrote:
    Hi all; a quick query about speeds.
    ....
    I'm contemplating replacing with a rpi4, which I gather is now
    supported by freebsd, using a usb3 external hard drive. But is this
    likely to prove slower or problematic for any other reason?

    TIA for any thoughts.

    Many thanks to all who've replied.

    After two brief power cuts in as many hours yesterday, which played
    havoc with the existing machine(*), this looks like a project for the
    new year, along with a ups - so any suggestions for a good ups for a
    24/7 pi server please? A quick look round suggests I could pay nearly as
    much as the pi would cost, so any ideas for something cheap(-ish) and reliable would be welcome.

    Thanks.



    (*) Weird things happened: it hung twice while trying to reboot, then rebooted on the 3rd try: but fsck moaned about sundry files, even though
    the ufs file system is journalled.

    have you looked at the PiJuice hat?
    4-6 hrs operation in default but can take larger batteries if req.
    also has an RTC on board so that fixes another of your problems.

    https://uk.pi-supply.com/products/pijuice-standard




    --
    Culture is the habit of being pleased with the best and knowing why.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Jim Jackson@3:770/3 to alister on Sat Dec 12 21:03:29 2020
    On 2020-12-12, alister <alister.ware@ntlworld.com> wrote:
    On Sat, 28 Nov 2020 11:33:09 +0000, Mike Scott wrote:

    Hi all; a quick query about speeds.

    I currently use an old i386 machine as home server (everything from
    local NFS file-store, to bind, to email server). It's an acer aspire
    r3700, running at 1.8GHz, 2 proc/4 thread job. It runs freebsd headless,
    and I use vnc for day-to-day operations on it.

    I'm contemplating replacing with a rpi4, which I gather is now supported
    by freebsd, using a usb3 external hard drive. But is this likely to
    prove slower or problematic for any other reason?

    TIA for any thoughts.

    Late to the party but my thoughts would be

    Network on I386 is probably 100mb/s at best so will be the main bottle
    neck in your current set-up (actually network speeds are nearly always
    the bottle neck on a network server.)
    the pi has a 1000gb interface,
    ^^^^^^ I wish !!! That should be 1Gb

    IIRC it still cannot achieve full
    performance but it can achieve considerably more than 100mb/s.

    You are out of date - Pi4 can do full gigabit and fill the pipe. Unlike previous Pi's it has native ethernet and seperate USB3 and 2.
    This is old news now.

    therfore performance will be better than your current set-up even if it
    is not as good as a dedicated NAS

    in a domestic environment how critical is this anyway?

    as always it boils down to fast, reliable, cheap - choose any 2.

    or 3 if using a pi4 :-)

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Pancho@3:770/3 to Jim Jackson on Sun Dec 13 10:31:37 2020
    On 12/12/2020 21:03, Jim Jackson wrote:
    On 2020-12-12, alister <alister.ware@ntlworld.com> wrote:
    On Sat, 28 Nov 2020 11:33:09 +0000, Mike Scott wrote:

    Hi all; a quick query about speeds.

    I currently use an old i386 machine as home server (everything from
    local NFS file-store, to bind, to email server). It's an acer aspire
    r3700, running at 1.8GHz, 2 proc/4 thread job. It runs freebsd headless, >>> and I use vnc for day-to-day operations on it.

    I'm contemplating replacing with a rpi4, which I gather is now supported >>> by freebsd, using a usb3 external hard drive. But is this likely to
    prove slower or problematic for any other reason?

    TIA for any thoughts.

    Late to the party but my thoughts would be

    Network on I386 is probably 100mb/s at best so will be the main bottle
    neck in your current set-up (actually network speeds are nearly always
    the bottle neck on a network server.)
    the pi has a 1000gb interface,
    ^^^^^^ I wish !!! That should be 1Gb

    IIRC it still cannot achieve full
    performance but it can achieve considerably more than 100mb/s.

    You are out of date - Pi4 can do full gigabit and fill the pipe. Unlike previous Pi's it has native ethernet and seperate USB3 and 2.
    This is old news now.


    Quite, earlier in the thread I post that I was getting 110 MB/s from a
    network disk on a rpi4 4GB, 860 Samsung EVO, using Samba. That is near
    as damn it full Gigabit.

    I just checked using CrystalDiskMark:

    ----------------------------------------------------------------------- CrystalDiskMark 6.0.2 x64 (C) 2007-2018 hiyohiyo
    Crystal Dew World : https://crystalmark.info/ -----------------------------------------------------------------------
    * MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]
    * KB = 1000 bytes, KiB = 1024 bytes

    Sequential Read (Q= 32,T= 1) : 118.248 MB/s
    Sequential Write (Q= 32,T= 1) : 114.832 MB/s
    Random Read 4KiB (Q= 8,T= 8) : 51.672 MB/s [ 12615.2 IOPS]
    Random Write 4KiB (Q= 8,T= 8) : 33.194 MB/s [ 8104.0 IOPS]
    Random Read 4KiB (Q= 32,T= 1) : 46.954 MB/s [ 11463.4 IOPS]
    Random Write 4KiB (Q= 32,T= 1) : 34.565 MB/s [ 8438.7 IOPS]
    Random Read 4KiB (Q= 1,T= 1) : 6.425 MB/s [ 1568.6 IOPS]
    Random Write 4KiB (Q= 1,T= 1) : 6.543 MB/s [ 1597.4 IOPS]

    Test : 1024 MiB [Y: 7.5% (34.4/457.4 GiB)] (x5) [Interval=5 sec]
    Date : 2020/12/13 10:20:14
    OS : Windows 10 Professional [10.0 Build 19041] (x64)


    therfore performance will be better than your current set-up even if it
    is not as good as a dedicated NAS

    in a domestic environment how critical is this anyway?

    as always it boils down to fast, reliable, cheap - choose any 2.

    or 3 if using a pi4 :-)


    Initially I had problems with my USB/PSU, but I replaced it with a
    mobile phone one and the rpi4 is now rock solid, all 3 as you say.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From NY@3:770/3 to Pancho on Sun Dec 13 19:33:27 2020
    "Pancho" <Pancho.Dontmaileme@outlook.com> wrote in message news:rr4qi8$jag$1@dont-email.me...
    Quite, earlier in the thread I post that I was getting 110 MB/s from a network disk on a rpi4 4GB, 860 Samsung EVO, using Samba. That is near as damn it full Gigabit.

    Using a SAMBA share of a spinning USB HDD (ie not the SD card) on a Pi 3 or
    Pi 4, and copying a 1 GB video file to/from a Windows 7 PC over gigabit Ethernet, I get:

    - 130 Mbps on Pi 3
    - just under 1000 Mbps on Pi 4

    Reading from Pi to Win saturates at a constant speed, writing from Win to Pi
    is more variable.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From alister@3:770/3 to Jim Jackson on Sun Dec 13 20:49:49 2020
    On Sat, 12 Dec 2020 21:03:29 +0000, Jim Jackson wrote:

    On 2020-12-12, alister <alister.ware@ntlworld.com> wrote:
    On Sat, 28 Nov 2020 11:33:09 +0000, Mike Scott wrote:

    Hi all; a quick query about speeds.

    I currently use an old i386 machine as home server (everything from
    local NFS file-store, to bind, to email server). It's an acer aspire
    r3700, running at 1.8GHz, 2 proc/4 thread job. It runs freebsd
    headless,
    and I use vnc for day-to-day operations on it.

    I'm contemplating replacing with a rpi4, which I gather is now
    supported by freebsd, using a usb3 external hard drive. But is this
    likely to prove slower or problematic for any other reason?

    TIA for any thoughts.

    Late to the party but my thoughts would be

    Network on I386 is probably 100mb/s at best so will be the main bottle
    neck in your current set-up (actually network speeds are nearly always
    the bottle neck on a network server.)
    the pi has a 1000gb interface,
    ^^^^^^ I wish !!! That should be 1Gb

    IIRC it still cannot achieve full performance but it can achieve
    considerably more than 100mb/s.

    You are out of date - Pi4 can do full gigabit and fill the pipe. Unlike previous Pi's it has native ethernet and seperate USB3 and 2.
    This is old news now.

    therfore performance will be better than your current set-up even if it
    is not as good as a dedicated NAS

    in a domestic environment how critical is this anyway?

    as always it boils down to fast, reliable, cheap - choose any 2.

    or 3 if using a pi4 :-)

    Ok I stand corrected on network performace.
    but that just simply confirms my main point that the data network is the
    major bottle neck not the server platform, so Pi performance is not
    critical & it will be easily up to the task in this setup.




    --
    Hacker's Guide To Cooking:
    2 pkg. cream cheese (the mushy white stuff in silver wrappings that
    doesn't
    really come from Philadelphia after all; anyway, about 16 oz.)
    1 tsp. vanilla extract (which is more alcohol than vanilla and pretty
    strong so this part you *GOTTA* measure)
    1/4 cup sugar (but honey works fine too)
    8 oz. Cool Whip (the fluffy stuff devoid of nutritional value that you
    can squirt all over your friends and lick off...)
    "Blend all together until creamy with no lumps." This is where you get to
    join(1) all the raw data in a big buffer and then filter it
    through
    merge(1m) with the -thick option, I mean, it starts out ultra
    lumpy
    and icky looking and you have to work hard to mix it. Try an
    electric
    beater if you have a cat(1) that can climb wall(1s) to lick it off
    the ceiling(3m).
    "Pour into a graham cracker crust..." Aha, the BUGS section at last. You
    just happened to have a GCC sitting around under /etc/food,
    right?
    If not, don't panic(8), merely crumble a rand(3m) handful of
    innocent
    GCs into a suitable tempfile and mix in some melted butter.
    "...and refrigerate for an hour." Leave the recipe's stdout in a
    fridge
    for 3.6E6 milliseconds while you work on cleaning up stderr, and
    by time out your cheesecake will be ready for stdin.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to alister on Mon Dec 14 03:38:59 2020
    On 13/12/2020 20:49, alister wrote:
    Ok I stand corrected on network performace.
    but that just simply confirms my main point that the data network is the major bottle neck not the server platform, so Pi performance is not
    critical & it will be easily up to the task in this setup.


    With servers it is almost always the IO speed that dominates - disk IO
    or network IO - there is the square root of sweet fanny adam's amount of computing power done in serving files.

    Only when you start to run things like e.g. centralised database apps
    does CPU performance get to be an issue, and only with a large amount of
    users does RAM get to be significant.


    --
    There’s a mighty big difference between good, sound reasons and reasons
    that sound good.

    Burton Hillis (William Vaughn, American columnist)

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Ahem A Rivet's Shot@3:770/3 to The Natural Philosopher on Mon Dec 14 08:30:44 2020
    On Mon, 14 Dec 2020 03:38:59 +0000
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    With servers it is almost always the IO speed that dominates - disk IO
    or network IO - there is the square root of sweet fanny adam's amount of computing power done in serving files.

    Very true, unless of course you go for encrypted storage or the
    extreme compression techniques that are becoming popular for near-line archives.

    --
    Steve O'Hara-Smith | Directable Mirror Arrays C:\>WIN | A better way to focus the sun
    The computer obeys and wins. | licences available see
    You lose and Bill collects. | http://www.sohara.org/

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)