Re: [mh] Misterhouse on Raspberry Pi?

Spencer Ryan <[email protected]>
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <CALWY-YqrTEVOhUysQ0UVu_OTDY29hcn-VV-QiSdrYcTqQPpWkQ@mail.gmail.com>
You can go down the rabbit hole, or you can do two super simple things.

1. Don't buy cheap SD cards, personally Sandisk only.
2. 32G or larger, it lets the card spread writes out
3. I changed MH to save object states every hour instead of every 5 minutes

in "mh": you can see i commented out the new minute % 5 and changed it to
$new_hour"
    # Save object states every 5 minutes, in case mh is aborted without a
proper shutdown
    #   &object_states_save if $New_Minute and !($Minute % 5);
$Time_Increment
    &object_states_save
      if $New_Hour
      and !( $Time_Start_time or $Time_Stop_time );    # Skip if in
accelerated mode


Between those things your card should last pretty much forever.

Yeah you can redirect /tmp & whatnot to a ramfs but with modern SD cards
the juice probably isn't worth the squeeze.

On Mon, Jan 25, 2021 at 5:20 PM Brian M <[email protected]>
wrote:

> I've been really appreciating folks posting their experiences running
> solely on the microSD.  I don't run my vital RPis that way, because I
> didn't know what to expect, so this is good information.
>
> Tom, did you do anything to reduce write traffic to the microSD? Setting
> "noatime" in /etc/fstab eliminates a lot of writes, because everytime a
> file is *read*, the access time is updated(written). I've heard of people
> making /var/log a tmpfs file system (if they don't need their logs),
> optionally sweeping them to the SD card on an hourly basis. Removing swap
> and installing zram instead would help (but beware the current 8G bug in
> zram if you have an 8G RPi 4). Did you do any of these things, or others?
>
>                           -Brian M.
>
> On 1/25/21 12:28 PM, Tom MacLean wrote:
>
> I was going to chime in that I just run MH on the microSD without issues,
> but I just had a failure (on a 4 year old SD), my second such failure. Same
> as last time: the system boots fine, MH runs without issue, but none of my
> file changes persist after reboot. It’s just writing to the SDs buffer, not
> to the flash.
>
> 4 years isn’t too bad though.
>
> Sent from my iPhone
>
> On Jan 23, 2021, at 10:32 AM, Giles Godart-Brown <[email protected]>
> <[email protected]> wrote:
>
> 
>
> I've just had a go at tidying up the Wiki for Raspberry Pi (
> https://github.com/hollie/misterhouse/wiki/Raspberry-Pi), moving many of
> the optional bits onto separate pages so it doesn't look so daunting and
> adding things I've found during my many installs.
>
> Giles
> On 23/01/2021 12:55, Richard F wrote:
>
> When I started using an SSD over a decade ago or so (when burning out
> SSD's was a big concern, as lifetimes weren't initially specified/trusted),
> I reduced mh data saves by a factor of 5 (in the mh file itself in /bin),
> like so, which has served me well:
>
> &object_states_save if &new_minute(5) and !($Time_Start_time or
> $Time_Stop_time);
> #    &object_states_save if $New_Minute and !($Time_Start_time or
> $Time_Stop_time); # Skip if in accelerated mode
>
> My current Samsung SSD has 81000 hrs on it - over 9yrs - and still 78% of
> its life left according the smartd.
>
> I'd also be interested in a Pi guide as that may be the eventual mh
> destination.  I'm a big fan of the Picoreplayer which has a great feature
> of running totally from RAM once booted, so you can switch it off without
> worries.  Though mh needs to write status, I could forsee a picore or
> similar mini distro that includes mh, and saves its config/recovers (if
> lost) to network storage or cloud.
>
>
> On 21/01/2021 7:54 pm, Gianni Veloce wrote:
>
> hi guys
> as my old Ubuntu laptop running MH is almost broken i am looking to move
> to Raspberry Pi.
> is there any detailed guide how to setup MH on Rpi?
> and are any hints to avoid the abuse of the SD card with writes from the
> OS and MH?
> Would installation on a USB drive help in this?
> TIA
> GV
>
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
> ________________________________________________________
> To unsubscribe from this list, go to:
> https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>
> ________________________________________________________
> To unsubscribe from this list, go to:
> https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.