Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

There can be no twisted thought without a twisted molecule. -- R. W. Gerard


computers / comp.sys.raspberry-pi / Re: move /var/log to a RAMDISK

SubjectAuthor
* move /var/log to a RAMDISKThe Natural Philosopher
+* Re: move /var/log to a RAMDISKDavid W. Hodgins
|+* Re: move /var/log to a RAMDISKThe Natural Philosopher
||`* Re: move /var/log to a RAMDISKDavid W. Hodgins
|| `* Re: move /var/log to a RAMDISKdruck
||  +* Re: move /var/log to a RAMDISKThe Natural Philosopher
||  |+- Re: move /var/log to a RAMDISKAhem A Rivet's Shot
||  |`* Re: move /var/log to a RAMDISKdruck
||  | `* Re: move /var/log to a RAMDISKThe Natural Philosopher
||  |  `* Re: move /var/log to a RAMDISKdruck
||  |   `- Re: move /var/log to a RAMDISKThe Natural Philosopher
||  +* Re: move /var/log to a RAMDISKJohn-Paul Stewart
||  |`- Re: move /var/log to a RAMDISKThe Natural Philosopher
||  `- Re: move /var/log to a RAMDISKBob Latham
|+* Re: move /var/log to a RAMDISKTheo
||`* Re: move /var/log to a RAMDISKThe Natural Philosopher
|| +* Re: move /var/log to a RAMDISKRich
|| |`* Re: move /var/log to a RAMDISKThe Natural Philosopher
|| | `- Re: move /var/log to a RAMDISKRichard Kettlewell
|| +- Re: move /var/log to a RAMDISKAhem A Rivet's Shot
|| +- Re: move /var/log to a RAMDISKJohn-Paul Stewart
|| `* Re: move /var/log to a RAMDISKDavid W. Hodgins
||  `- Re: move /var/log to a RAMDISKThe Natural Philosopher
|`* Re: move /var/log to a RAMDISK23k.302
| `* Re: move /var/log to a RAMDISKThe Natural Philosopher
|  `* Re: move /var/log to a RAMDISK23k.304
|   `* Re: move /var/log to a RAMDISKThe Natural Philosopher
|    +- Re: move /var/log to a RAMDISK23k.304
|    `* Re: move /var/log to a RAMDISKJan Panteltje
|     +* Re: move /var/log to a RAMDISKThe Natural Philosopher
|     |+- Re: move /var/log to a RAMDISK23k.304
|     |`* Re: move /var/log to a RAMDISK23k.304
|     | `* Re: move /var/log to a RAMDISKThe Natural Philosopher
|     |  `* Re: move /var/log to a RAMDISK23k.304
|     |   +* Re: move /var/log to a RAMDISKThe Natural Philosopher
|     |   |`* Re: move /var/log to a RAMDISK23k.304
|     |   | `* Re: move /var/log to a RAMDISKThe Natural Philosopher
|     |   |  +* Re: move /var/log to a RAMDISKJan Panteltje
|     |   |  |`* Re: move /var/log to a RAMDISKThe Natural Philosopher
|     |   |  | `* Re: move /var/log to a RAMDISKAhem A Rivet's Shot
|     |   |  |  `* Re: move /var/log to a RAMDISK23k.304
|     |   |  |   `- Re: move /var/log to a RAMDISKAhem A Rivet's Shot
|     |   |  `* Re: move /var/log to a RAMDISK23k.304
|     |   |   +* Re: move /var/log to a RAMDISKThe Natural Philosopher
|     |   |   |`- Re: move /var/log to a RAMDISK23k.304
|     |   |   `- Re: move /var/log to a RAMDISKRobert Riches
|     |   `- Re: move /var/log to a RAMDISKAhem A Rivet's Shot
|     `* Re: move /var/log to a RAMDISK23k.304
|      +- Re: move /var/log to a RAMDISKJan Panteltje
|      `* Re: move /var/log to a RAMDISKThe Natural Philosopher
|       +- Re: move /var/log to a RAMDISKThe Natural Philosopher
|       +- Re: move /var/log to a RAMDISKAhem A Rivet's Shot
|       `* Re: move /var/log to a RAMDISK23k.304
|        +* Re: move /var/log to a RAMDISKThe Natural Philosopher
|        |`* Re: move /var/log to a RAMDISK23k.304
|        | `* Re: move /var/log to a RAMDISKThe Natural Philosopher
|        |  +- Re: move /var/log to a RAMDISK23k.304
|        |  `* Re: move /var/log to a RAMDISK23k.304
|        |   +* Re: move /var/log to a RAMDISKThe Natural Philosopher
|        |   |+* Re: move /var/log to a RAMDISKRich
|        |   ||`* Re: move /var/log to a RAMDISK23k.304
|        |   || `* Re: move /var/log to a RAMDISKRich
|        |   ||  `- Re: move /var/log to a RAMDISKThe Natural Philosopher
|        |   |+* Re: move /var/log to a RAMDISK23k.304
|        |   ||`- Re: move /var/log to a RAMDISKRich
|        |   |`* Re: move /var/log to a RAMDISKAhem A Rivet's Shot
|        |   | +* Re: move /var/log to a RAMDISKThe Natural Philosopher
|        |   | |`* Re: move /var/log to a RAMDISKAhem A Rivet's Shot
|        |   | | `* Re: move /var/log to a RAMDISKThe Natural Philosopher
|        |   | |  +- Re: move /var/log to a RAMDISKAhem A Rivet's Shot
|        |   | |  `- Re: move /var/log to a RAMDISKRich
|        |   | `- Re: move /var/log to a RAMDISKRich
|        |   `- Re: move /var/log to a RAMDISKTauno Voipio
|        `* Re: move /var/log to a RAMDISKJan Panteltje
|         `* Re: move /var/log to a RAMDISK23k.304
|          `* Re: move /var/log to a RAMDISKDennis Lee Bieber
|           `- Re: move /var/log to a RAMDISK23k.304
+* Re: move /var/log to a RAMDISKRobert Heller
|+* Re: move /var/log to a RAMDISKThe Natural Philosopher
||+* Re: move /var/log to a RAMDISKRobert Heller
|||+* Re: move /var/log to a RAMDISKComputer Nerd Kev
||||`* Re: move /var/log to a RAMDISKDavid W. Hodgins
|||| `* Re: move /var/log to a RAMDISKThe Natural Philosopher
||||  `* Re: move /var/log to a RAMDISKComputer Nerd Kev
||||   +* Re: move /var/log to a RAMDISKCarlos E.R.
||||   |`* Re: move /var/log to a RAMDISKDavid W. Hodgins
||||   | `- Re: move /var/log to a RAMDISKThe Natural Philosopher
||||   `* Re: move /var/log to a RAMDISKThe Natural Philosopher
||||    `* Re: move /var/log to a RAMDISKRich
||||     `* Re: move /var/log to a RAMDISKRobert Heller
||||      `* Re: move /var/log to a RAMDISKThe Natural Philosopher
||||       `* Re: move /var/log to a RAMDISKRobert Heller
||||        `* Re: move /var/log to a RAMDISKThe Natural Philosopher
||||         `* Re: move /var/log to a RAMDISKDave
||||          +* Re: move /var/log to a RAMDISKAhem A Rivet's Shot
||||          |`- Re: move /var/log to a RAMDISKThe Natural Philosopher
||||          +- Re: move /var/log to a RAMDISKDennis Lee Bieber
||||          `- Re: move /var/log to a RAMDISKThe Natural Philosopher
|||+- Re: move /var/log to a RAMDISKAhem A Rivet's Shot
|||`- Re: move /var/log to a RAMDISKThe Natural Philosopher
||`- Re: move /var/log to a RAMDISKDavid W. Hodgins
|`* Re: move /var/log to a RAMDISKPancho
+- Re: move /var/log to a RAMDISKDavid Taylor
`* Re: move /var/log to a RAMDISKmm0fmf

Pages:123456789
Re: move /var/log to a RAMDISK

<ua7tra$384lq$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6668&group=comp.sys.raspberry-pi#6668

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Mon, 31 Jul 2023 10:11:06 +0100
Organization: A little, after lunch
Lines: 49
Message-ID: <ua7tra$384lq$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<op.18uwwysca3w0dxdave@hodgins.homeip.net>
<I9j*tSymz@news.chiark.greenend.org.uk> <ua5t32$2v7cu$1@dont-email.me>
<ua5vcd$2ve9t$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 31 Jul 2023 09:11:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="50f3be7459467def83cb6e971d9bafad";
logging-data="3412666"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18d3/TW7bL6U1jT2Nb5gdx++UUT/3AvZ1k="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:USWBk3L7qgBrejsppc3YIjxm4WI=
Content-Language: en-GB
In-Reply-To: <ua5vcd$2ve9t$1@dont-email.me>
 by: The Natural Philosop - Mon, 31 Jul 2023 09:11 UTC

On 30/07/2023 16:25, Rich wrote:
> In comp.os.linux.misc The Natural Philosopher <tnp@invalid.invalid> wrote:
>> On 30/07/2023 10:24, Theo wrote:
>>> The directory structure may be created by the package manager on
>>> install, but the files are created on the fly. In other words I
>>> might have /var/log/foo/error.log - foo is a directory that needs to
>>> exist, but if I delete error.log it'll be created next time there's
>>> something to go in there. This is commonly used by 'logrotate',
>>> which moves old files and compresses them, allowing new files to be
>>> created for future log entries.
>>>
>>> So all you really need to do is reproduce the directory structure:
>>>
>>> find /var/log -type d -exec mkdir -p "/tmp/{}" \;
>>>
>>> which reproduces /var/log/foo/bar/ to /tmp/var/log/foo/bar/
>>>
>>> Theo
>>
>> Now that is interesting, and if I leave the old /var/log there, and
>> mount a ramdisk over it, provided that the ramdisk is *immediately*
>> populated and directories created, then all should work?
>
> You /may/ need to trigger the logging deamon to redo the files. With
> traditional syslog that would be send the log deamon's a sighub. With
> systemd I have no idea how to do this as none of my linux systems
> contain systemd.
>
A cursory glance at systemd reveals a huge potential flaw in it, or at
least that is my understanding.

There is no order of execution of systemd scripts. They all get executed
in parallel. Instead there are dependencies, which I THINK are
encapsulated in the scripts as 'depends upon', not 'is depended on by'.
So a standalone systemd script wont do the job. Instead one would
probably have to find the mount script and add a patch to that.

>> I guess I have to learn how to add a script to systemd :-(
>
> True. Hopefully there is a way.

--
"Strange as it seems, no amount of learning can cure stupidity, and
higher education positively fortifies it."

- Stephen Vizinczey

Re: move /var/log to a RAMDISK

<ua7u72$384lq$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6669&group=comp.sys.raspberry-pi#6669

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Mon, 31 Jul 2023 10:17:22 +0100
Organization: A little, after lunch
Lines: 44
Message-ID: <ua7u72$384lq$2@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<op.18uwwysca3w0dxdave@hodgins.homeip.net>
<I9j*tSymz@news.chiark.greenend.org.uk> <ua5t32$2v7cu$1@dont-email.me>
<op.18wlxnlea3w0dxdave@hodgins.homeip.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 31 Jul 2023 09:17:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="50f3be7459467def83cb6e971d9bafad";
logging-data="3412666"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PwhxN/o1irq0Ysw3Y48BkZYD5N0JvUjc="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:CJe8tgpY77c/fyi86wLBc+iHNCY=
In-Reply-To: <op.18wlxnlea3w0dxdave@hodgins.homeip.net>
Content-Language: en-GB
 by: The Natural Philosop - Mon, 31 Jul 2023 09:17 UTC

On 30/07/2023 17:40, David W. Hodgins wrote:
> On Sun, 30 Jul 2023 10:45:54 -0400, The Natural Philosopher
> <tnp@invalid.invalid> wrote:
>> Now that is interesting, and if I leave the old /var/log there,
>> and mount a ramdisk over it, provided that the ramdisk is
>> *immediately* populated and directories created, then all should
>> work?
>>
>> I guess I have to learn how to add a script to systemd :-(
>
> I would add an entry to fstab to handle the mount ... mylog /var/log
> tmpfs defaults,user,size=1G 1 1
>
Pi Zero only has 512M RAM!

> Copy the directory structure from /var/log somewhere else such as
> /my/log.
>
> copy /usr/lib/systemd/system/systemd-remount-fs.service to
> /etc/systemd/system/, (create the dir if it doesn't exist already),
> then modify the /etc service to add a second ExecStart to run a
> script that copies the directory structure from /my log to /var/log.
>

Ah. That is interesting. Patching the mount service *itself*. That
sounds like a plan, unless any updates wipe out the config...but who
bothers to update an embedded system that Just Works?

> Run "dracut -f" and reboot.
>
Can you explain why that would be necessary?

> If you later install something that creates a directory in /var/log,
> just create a directory with that name, owner, group, and
> permissions in /my/log.
>
> Make a backup on a second sd card first though, just in case! :-)
>
> Regards, Dave Hodgins

--
No Apple devices were knowingly used in the preparation of this post.

Re: move /var/log to a RAMDISK

<ua7uj8$386mt$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6670&group=comp.sys.raspberry-pi#6670

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Mon, 31 Jul 2023 10:23:52 +0100
Organization: A little, after lunch
Lines: 39
Message-ID: <ua7uj8$386mt$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<o5adnUGa5uLcw1j5nZ2dnZfqn_ednZ2d@giganews.com>
<ua3q2k$2mksr$1@dont-email.me>
<ev-cnSZfJ8u45Vj5nZ2dnZfqnPSdnZ2d@giganews.com> <64c5ad35@news.ausics.net>
<op.18vk8skaa3w0dxdave@hodgins.homeip.net> <ua50i0$2t42v$1@dont-email.me>
<64c6183e@news.ausics.net> <ucuipjxuj9.ln2@Telcontar.valinor>
<op.18wyj1ila3w0dxdave@hodgins.homeip.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 31 Jul 2023 09:23:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="50f3be7459467def83cb6e971d9bafad";
logging-data="3414749"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19uJjEYeA2I4XWTQBFJKMdG5WZJQiRyXco="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:QoMB+3O3K0B+Meqs1xeDfWDcJas=
In-Reply-To: <op.18wyj1ila3w0dxdave@hodgins.homeip.net>
Content-Language: en-GB
 by: The Natural Philosop - Mon, 31 Jul 2023 09:23 UTC

On 30/07/2023 22:13, David W. Hodgins wrote:
> On Sun, 30 Jul 2023 16:39:26 -0400, Carlos E.R.
> <robin_listas@es.invalid> wrote:
>> A systemd system might not have syslog, but journal, and non
>> permanent (not on disk). It may use temporary files, though.
>
> With systemd, systemd-journald collects messages during early boot,
> in ram. The in ram copy is flushed to persistent storage shortly
> after the / filesystem is remounted rw over the ro / filesystem from
> the initrd.
>
Ahaha. First thing that systemd does that actually makes sense.

> That's why I recommend adding an extra ExecStart to
> systemd-remount-fs.service to set up the directory structure in a
> tmpfs mount of /var/log right after the / filesystem is ready to
> accept writes. That way it's done before the journal or, if present,
> rsyslogd starts writing to /var/log.
>
Yes.
The advantage of that is that no info is lost writing to the on-disk
/var/log - the boot stuff will all be flushed to the ramdisk once it is
available.

Well it will be several weeks before I am ready to do any practical
experimentation. I try to ask first, implement later. Soi as not to
waste time on finding out what others already know, by experiment

> Regards, Dave Hodgins

Many thinks. I think your solutions is the one to use. It surgically
splices in the minimum of configuration required to do the job. It OUGHT
to be an optional part of Raspios really...

--
Any fool can believe in principles - and most of them do!

Re: move /var/log to a RAMDISK

<ua7v3m$386mt$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6671&group=comp.sys.raspberry-pi#6671

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Mon, 31 Jul 2023 10:32:37 +0100
Organization: A little, after lunch
Lines: 70
Message-ID: <ua7v3m$386mt$2@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<op.18uwwysca3w0dxdave@hodgins.homeip.net>
<sLKcnQERn8HAiVr5nZ2dnZfqnPudnZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 31 Jul 2023 09:32:38 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="50f3be7459467def83cb6e971d9bafad";
logging-data="3414749"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UTZ3EvTsai135X+sYL7abvhjptXDbBWE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:YJSWDyG8Q+PTqKGQN9Ug7+LLzD8=
In-Reply-To: <sLKcnQERn8HAiVr5nZ2dnZfqnPudnZ2d@earthlink.com>
Content-Language: en-GB
 by: The Natural Philosop - Mon, 31 Jul 2023 09:32 UTC

On 31/07/2023 02:54, 23k.302 wrote:
> On 7/29/23 2:42 PM, David W. Hodgins wrote:
>> On 7/30/23 10:45, The Natural Philosopher wrote:
>>> On 30/07/2023 10:24, Theo wrote:
>>>> So all you really need to do is reproduce the directory structure:
>>>>
>>>> find/var/log -type d -exec mkdir -p "/tmp/{}" \;
>>>>
>>>> which reproduces/var/log/foo/bar/  to/tmp/var/log/foo/bar/
>>>>
>>>> Theo
>>> Now that is interesting, and if I leave the old /var/log there, and
>>> mount a ramdisk over it, provided that the ramdisk is*immediately*
>>> populated and directories created, then all should work?
>> Any process that has a log file open before you mount the ramdisk won't
>> automatically start using it.  The process will still have the open file
>> handle to the original, disk-based file instead.  So you'll either need
>> to be sure to mount the ramdisk sufficiently early in the boot sequence
>> to ensure that no daemons have opened their logfiles yet, or you'll need
>> to signal those daemons reopen their logs.  Most do that in response to
>> SIGHUP.  Logrotate often uses that mechanism after rotating logs, so its
>> configuration can help you figure out what needs to be done after
>> mounting the ramdisk if programs are still logging to disk.
>
>
>   Hmm ... MIGHT be able to make that work with minimal
>   pain using systemd. It has 'depends on','run after' and
>   such params. He could init the ramdisk REALLY early in a
>   quasi-structured/quasi-safe environment.
>
>   Not everyone likes systemd - but it DOES have its uses.
>
>   Another trick is to just make the ramdisk whenever and
>   then make /var/log into a symlink/mountpoint. Yes, there'd
>   be some early stuff still in the real /var/log, but maybe
>   that's not important for him.
>
>   However I'd rec ramdisks for where they're more useful.
>   I have an app that does a lot of image manipulation
>   before the results are shown via PHP/Apache on a Pi.
>   I don't want any of that to be reading/writing to the
>   SD card - too slow AND burns it out - but I did want
>   access to be "normal", like with any 'real' drive. A
>   small ramdisk was by far the best/easiest solution.

I use them in this and my other pi-zero context as fundamentally simple
interprocess communicators. So in my Hifi Project, a daemon reads the
icecast info off radio streams and writes it to a file in a temporary
file system.

The web server then has access to that to let me know what misc is being
played, via ajax calls from the web servers radio interface.

As long as only one process is writing them, this is a very simple and
effective way to transfer data from one daemon to another.

In the current project which involves driving 4 mains relays using a
daemon that collects various bits of information in order to decide when
to switch them on, it is used to store the relay state, so again ajax
calls from the web server can determine not what *should be on, but what
is *actually* on.

I am sure the semaphores messages and pipes might have done the job, but
simply recreating a file ion a ramdisk every few seconds works fine.

--
"Nature does not give up the winter because people dislike the cold."

― Confucius

Re: move /var/log to a RAMDISK

<wwv351472cr.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6674&group=comp.sys.raspberry-pi#6674

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.nntp4.net!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: inva...@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Mon, 31 Jul 2023 12:21:56 +0100
Organization: terraraq NNTP server
Message-ID: <wwv351472cr.fsf@LkoBDZeT.terraraq.uk>
References: <ua3ijl$2m0am$1@dont-email.me>
<op.18uwwysca3w0dxdave@hodgins.homeip.net>
<I9j*tSymz@news.chiark.greenend.org.uk> <ua5t32$2v7cu$1@dont-email.me>
<ua5vcd$2ve9t$1@dont-email.me> <ua7tra$384lq$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="11618"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:K389RUx0thIFQzZ45P5sUZHD6P8=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Mon, 31 Jul 2023 11:21 UTC

The Natural Philosopher <tnp@invalid.invalid> writes:
> There is no order of execution of systemd scripts. They all get
> executed in parallel. Instead there are dependencies, which I THINK
> are encapsulated in the scripts as 'depends upon', not 'is depended on
> by'. So a standalone systemd script wont do the job. Instead one
> would probably have to find the mount script and add a patch to that.

AFAICS all the dependency options have reverses, see the table in
systemd.unit(5).

There are both functional dependencies (e.g. Wants/WantedBy) and
ordering dependencies (e.g. After/Before). If you want to serialize
startup you’ll need both.

--
https://www.greenend.org.uk/rjk/

Re: move /var/log to a RAMDISK

<ua8co8$39j06$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6675&group=comp.sys.raspberry-pi#6675

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ric...@example.invalid (Rich)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Mon, 31 Jul 2023 13:25:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ua8co8$39j06$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me> <o5adnUGa5uLcw1j5nZ2dnZfqn_ednZ2d@giganews.com> <ua3q2k$2mksr$1@dont-email.me> <ev-cnSZfJ8u45Vj5nZ2dnZfqnPSdnZ2d@giganews.com> <64c5ad35@news.ausics.net> <op.18vk8skaa3w0dxdave@hodgins.homeip.net> <ua50i0$2t42v$1@dont-email.me> <64c6183e@news.ausics.net> <ua7t2i$382l6$1@dont-email.me>
Injection-Date: Mon, 31 Jul 2023 13:25:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="59618a08d632e253613123ac5c388e1d";
logging-data="3460102"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19r9/VhuqeDSPNEOj7aSFmx"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19 (x86_64))
Cancel-Lock: sha1:Gf8eBoGNNvW9q0iWrJyNyP2wRwk=
 by: Rich - Mon, 31 Jul 2023 13:25 UTC

In comp.os.linux.misc The Natural Philosopher <tnp@invalid.invalid> wrote:
> I think that SD cards (apart from a very few) have no sophisticated
> wear levelling *at all*.

Given their race to the bottom price wise, this is a reasonably safe
assumption.

> If they are *really* cheap they wont do anything at all and there
> will be a 1:1 correlation between physical and logical sectors, in
> which case it doesn't matter how big they are, they will wear out the
> directory and sector allocation sectors without ever using the
> majority of the card.
>
> I am not sure if e.g. linux can map out bad sectors in those areas.
> I suspect not.

If the hardware does not handle bad sector replacement then you'd need
to run a Linux filesystem that does do so on top. For an SD card,
that would likely best be one of the 'flash' filesystems.
https://en.wikipedia.org/wiki/Flash_file_system#Linux_flash_filesystems

As to which might be best for an SD card that might have minimal to no
on card wear leveling I can not say.

Re: move /var/log to a RAMDISK

<DwKdnfu7bau7Ulr5nZ2dnZfqnPSdnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6676&group=comp.sys.raspberry-pi#6676

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 31 Jul 2023 15:11:34 +0000
MIME-Version: 1.0
From: hel...@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.15)
Subject: Re: move /var/log to a RAMDISK
In-Reply-To: <ua8co8$39j06$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<o5adnUGa5uLcw1j5nZ2dnZfqn_ednZ2d@giganews.com>
<ua3q2k$2mksr$1@dont-email.me>
<ev-cnSZfJ8u45Vj5nZ2dnZfqnPSdnZ2d@giganews.com>
<64c5ad35@news.ausics.net> <op.18vk8skaa3w0dxdave@hodgins.homeip.net>
<ua50i0$2t42v$1@dont-email.me> <64c6183e@news.ausics.net>
<ua7t2i$382l6$1@dont-email.me> <ua8co8$39j06$1@dont-email.me>
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <DwKdnfu7bau7Ulr5nZ2dnZfqnPSdnZ2d@giganews.com>
Date: Mon, 31 Jul 2023 15:11:34 +0000
Lines: 42
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-C5WxMvw9vUD6rokKeoZCqShyc5wSbJsDuruDOF0X7JEGnbKspYMaj2/O6c9WqcAHFojgx8GLecCvTZg!emWMAijK1pQRWtac20LiJTwWSNki9Xmz8FAMKr6OlEzg/YvF/P3mPZph06/S9TM0OAzVX8yED5Es!mYE=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Robert Heller - Mon, 31 Jul 2023 15:11 UTC

At Mon, 31 Jul 2023 13:25:28 -0000 (UTC) Rich <rich@example.invalid> wrote:

>
> In comp.os.linux.misc The Natural Philosopher <tnp@invalid.invalid> wrote:
> > I think that SD cards (apart from a very few) have no sophisticated
> > wear levelling *at all*.
>
> Given their race to the bottom price wise, this is a reasonably safe
> assumption.
>
> > If they are *really* cheap they wont do anything at all and there
> > will be a 1:1 correlation between physical and logical sectors, in
> > which case it doesn't matter how big they are, they will wear out the
> > directory and sector allocation sectors without ever using the
> > majority of the card.
> >
> > I am not sure if e.g. linux can map out bad sectors in those areas.
> > I suspect not.
>
> If the hardware does not handle bad sector replacement then you'd need
> to run a Linux filesystem that does do so on top. For an SD card,
> that would likely best be one of the 'flash' filesystems.
> https://en.wikipedia.org/wiki/Flash_file_system#Linux_flash_filesystems
>
> As to which might be best for an SD card that might have minimal to no
> on card wear leveling I can not say.

I've been using SanDisk Class 10 uSD cards in various PIs, with the machines
running continiously for years without errors. Some of these machines have
survived multiple power failures without problems. Several of these machines
I use as "build boxes". I have been using good old Ext4 as the FS.

>
>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Re: move /var/log to a RAMDISK

<ua90b4$3bpvg$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6677&group=comp.sys.raspberry-pi#6677

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Mon, 31 Jul 2023 19:59:48 +0100
Organization: A little, after lunch
Lines: 47
Message-ID: <ua90b4$3bpvg$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<o5adnUGa5uLcw1j5nZ2dnZfqn_ednZ2d@giganews.com>
<ua3q2k$2mksr$1@dont-email.me>
<ev-cnSZfJ8u45Vj5nZ2dnZfqnPSdnZ2d@giganews.com> <64c5ad35@news.ausics.net>
<op.18vk8skaa3w0dxdave@hodgins.homeip.net> <ua50i0$2t42v$1@dont-email.me>
<64c6183e@news.ausics.net> <ua7t2i$382l6$1@dont-email.me>
<ua8co8$39j06$1@dont-email.me>
<DwKdnfu7bau7Ulr5nZ2dnZfqnPSdnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 31 Jul 2023 18:59:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="50f3be7459467def83cb6e971d9bafad";
logging-data="3532784"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191U6Az4otby0XImJ/kH/rMxR+Fdx7MnfM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:5Yc5ZWABud/KoChOQpH+pdGpbyE=
In-Reply-To: <DwKdnfu7bau7Ulr5nZ2dnZfqnPSdnZ2d@giganews.com>
Content-Language: en-GB
 by: The Natural Philosop - Mon, 31 Jul 2023 18:59 UTC

On 31/07/2023 16:11, Robert Heller wrote:
> At Mon, 31 Jul 2023 13:25:28 -0000 (UTC) Rich <rich@example.invalid> wrote:
>
>>
>> In comp.os.linux.misc The Natural Philosopher <tnp@invalid.invalid> wrote:
>>> I think that SD cards (apart from a very few) have no sophisticated
>>> wear levelling *at all*.
>>
>> Given their race to the bottom price wise, this is a reasonably safe
>> assumption.
>>
>>> If they are *really* cheap they wont do anything at all and there
>>> will be a 1:1 correlation between physical and logical sectors, in
>>> which case it doesn't matter how big they are, they will wear out the
>>> directory and sector allocation sectors without ever using the
>>> majority of the card.
>>>
>>> I am not sure if e.g. linux can map out bad sectors in those areas.
>>> I suspect not.
>>
>> If the hardware does not handle bad sector replacement then you'd need
>> to run a Linux filesystem that does do so on top. For an SD card,
>> that would likely best be one of the 'flash' filesystems.
>> https://en.wikipedia.org/wiki/Flash_file_system#Linux_flash_filesystems
>>
>> As to which might be best for an SD card that might have minimal to no
>> on card wear leveling I can not say.
>
> I've been using SanDisk Class 10 uSD cards in various PIs, with the machines
> running continiously for years without errors. Some of these machines have
> survived multiple power failures without problems. Several of these machines
> I use as "build boxes". I have been using good old Ext4 as the FS.
>
Indeed. People DO have failures, but I can find no really clear data on
*why* they fail in a Pi situation

>>
>>
>>
>

--
Renewable energy: Expensive solutions that don't work to a problem that
doesn't exist instituted by self legalising protection rackets that
don't protect, masquerading as public servants who don't serve the public.

Re: move /var/log to a RAMDISK

<wticndxHH83ahFX5nZ2dnZfqn_udnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6679&group=comp.sys.raspberry-pi#6679

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.99.27.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 31 Jul 2023 20:27:51 +0000
MIME-Version: 1.0
From: hel...@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.15)
Subject: Re: move /var/log to a RAMDISK
In-Reply-To: <ua90b4$3bpvg$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>? <o5adnUGa5uLcw1j5nZ2dnZfqn_ednZ2d@giganews.com>? <ua3q2k$2mksr$1@dont-email.me>? <ev-cnSZfJ8u45Vj5nZ2dnZfqnPSdnZ2d@giganews.com> <64c5ad35@news.ausics.net>? <op.18vk8skaa3w0dxdave@hodgins.homeip.net> <ua50i0$2t42v$1@dont-email.me>? <64c6183e@news.ausics.net> <ua7t2i$382l6$1@dont-email.me>? <ua8co8$39j06$1@dont-email.me>? <DwKdnfu7bau7Ulr5nZ2dnZfqnPSdnZ2d@giganews.com> <ua90b4$3bpvg$1@dont-email.me>
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Content-Type: text/plain; charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <wticndxHH83ahFX5nZ2dnZfqn_udnZ2d@giganews.com>
Date: Mon, 31 Jul 2023 20:27:51 +0000
Lines: 54
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-14sq+4K9+v+Jt0+rbf4VlGYTjOIxP3nClKP4Oy8N3478JK6XbLXHv1P17jBZdw5Rln84h4T0D6tZRCC!P7ybDHro4EdoYe5X2Xxkg/8g8yb0h2dJtJVbfFjAtHBYsT596sdq+jzRabwArJCp1GicN4hD7WuI!xms=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Robert Heller - Mon, 31 Jul 2023 20:27 UTC

At Mon, 31 Jul 2023 19:59:48 +0100 The Natural Philosopher <tnp@invalid.invalid> wrote:

>
> On 31/07/2023 16:11, Robert Heller wrote:
> > At Mon, 31 Jul 2023 13:25:28 -0000 (UTC) Rich <rich@example.invalid> wrote:
> >
> >>
> >> In comp.os.linux.misc The Natural Philosopher <tnp@invalid.invalid> wrote:
> >>> I think that SD cards (apart from a very few) have no sophisticated
> >>> wear levelling *at all*.
> >>
> >> Given their race to the bottom price wise, this is a reasonably safe
> >> assumption.
> >>
> >>> If they are *really* cheap they wont do anything at all and there
> >>> will be a 1:1 correlation between physical and logical sectors, in
> >>> which case it doesn't matter how big they are, they will wear out the
> >>> directory and sector allocation sectors without ever using the
> >>> majority of the card.
> >>>
> >>> I am not sure if e.g. linux can map out bad sectors in those areas.
> >>> I suspect not.
> >>
> >> If the hardware does not handle bad sector replacement then you'd need
> >> to run a Linux filesystem that does do so on top. For an SD card,
> >> that would likely best be one of the 'flash' filesystems.
> >> https://en.wikipedia.org/wiki/Flash_file_system#Linux_flash_filesystems
> >>
> >> As to which might be best for an SD card that might have minimal to no
> >> on card wear leveling I can not say.
> >
> > I've been using SanDisk Class 10 uSD cards in various PIs, with the machines
> > running continiously for years without errors. Some of these machines have
> > survived multiple power failures without problems. Several of these machines
> > I use as "build boxes". I have been using good old Ext4 as the FS.
> >
> Indeed. People DO have failures, but I can find no really clear data on
> *why* they fail in a Pi situation

Ultra "cheap" no-name brand uSD cards?

>
> >>
> >>
> >>
> >
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Re: move /var/log to a RAMDISK

<ua960d$3chlq$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6680&group=comp.sys.raspberry-pi#6680

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Mon, 31 Jul 2023 21:36:27 +0100
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <ua960d$3chlq$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<op.18uwwysca3w0dxdave@hodgins.homeip.net> <ua3n91$2mbh0$2@dont-email.me>
<op.18u06wxua3w0dxdave@hodgins.homeip.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 31 Jul 2023 20:36:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5ee148b0ae45333a736a8fa99c78b94e";
logging-data="3557050"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zmTzSlCAL0rfg+ZfhrVen"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:YPvtGPp5/iU8WS8Tk+W3RANnPzQ=
In-Reply-To: <op.18u06wxua3w0dxdave@hodgins.homeip.net>
X-Antivirus-Status: Clean
X-Antivirus: Avast (VPS 230728-12, 28/7/2023), Outbound message
Content-Language: en-GB
 by: druck - Mon, 31 Jul 2023 20:36 UTC

On 29/07/2023 21:14, David W. Hodgins wrote:
> On Sat, 29 Jul 2023 14:54:25 -0400, The Natural Philosopher
> <tnp@invalid.invalid> wrote:
>
>> On 29/07/2023 19:42, David W. Hodgins wrote:
>>> On Sat, 29 Jul 2023 13:34:45 -0400, The Natural Philosopher
>>> <tnp@invalid.invalid> wrote:
>>>> Embedded Raspberry Pi Zero W. Minimal logs generated but I
>>>> only use logs for debugging and why wear the SD card?
>>>
>>>> My question is simple. If I make a 50MByte or so RAMDISK and
>>>> mount it on /var/log, will the logging daemons recreate all the
>>>> files and directories they need at boot time?

> It can be done using scripts that hook into systemd, but is not easy,
> and may require changes to scripts with any package install that
> uses /var/log, and also risks losing parts of the logs in the case of
> an unclean shutdown, which is typically when you are going to want
> the logs.

On Bullseye and later the largest amount of logging activity to disc is
bloody systemd's journald, which by default will grow /var/log/journal/*
to 2GB, taking up valuable space on SD cards and severely reducing their
write life.

Two things you can do; first as fucking Peottering always knows best,
there is no way of turning off journald and just using the god given
rsyslog, but you can stop journald logging to disc and just keep it in
RAM instead by adding the following to /etc/systemd/journald.conf

Storage=volatile
RuntimeMaxUse=32M
RuntimeMaxFileSize=32M
ForwardToConsole=no
ForwardToWall=no

Secondly stop systemd spamming /var/log/syslog with all sorts of crap
you have no interest in. Create a file called
/etc/rsyslog.d/drop.systemd.conf containing

# Drop messages from f***ing systemd
:programname,startswith,"systemd" stop

If you do that, you'll be left with far less logging activity to disk,
so you may not have to bother moving it to RAM. If you still want no
logging at all to disc, you can disable rsyslog entirely and just use
journald restricted RAM. But that way madness lies.

---druck

Re: move /var/log to a RAMDISK

<uaab27$3jlmt$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6682&group=comp.sys.raspberry-pi#6682

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: non...@invalid.com (mm0fmf)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Tue, 1 Aug 2023 08:08:54 +0100
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <uaab27$3jlmt$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 1 Aug 2023 07:08:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b64ad1981b4ac6a4781a9fa189930059";
logging-data="3790557"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ODP1DyITEXhdFU2F1Ht/M"
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.12.1
Cancel-Lock: sha1:oLUiJTbOJX5calhGF2qceW30n1w=
In-Reply-To: <ua3ijl$2m0am$1@dont-email.me>
Content-Language: en-GB
 by: mm0fmf - Tue, 1 Aug 2023 07:08 UTC

On 29/07/2023 18:34, The Natural Philosopher wrote:
> Embedded Raspberry Pi Zero W. Minimal logs generated but  I only use
> logs for debugging and why wear the  SD card?
>
> My question is simple. If I make a 50MByte or so RAMDISK and mount it on
> /var/log, will the logging daemons recreate all the files and
> directories they need at boot time?
>
>

Works fine for me. Pi W running Raspbian (Debian 11 version)

Cron job reboots it every morning so I don't worry about ramdisk filling up.

$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 7.0G 2.1G 4.7G 31% /
devtmpfs 183M 0 183M 0% /dev
tmpfs 215M 0 215M 0% /dev/shm
tmpfs 86M 2.7M 84M 4% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 100M 8.0K 100M 1% /tmp
tmpfs 100M 176K 100M 1% /var/log
tmpfs 30M 0 30M 0% /var/spool/mqueue
tmpfs 30M 0 30M 0% /var/tmp
/dev/mmcblk0p1 253M 51M 202M 20% /boot
tmpfs 43M 0 43M 0% /run/user/1001

Logging works and everything needed seems to be created on boot.

$ ls /var/log -la
total 180
drwxr-xr-x 3 root root 260 Aug 1 05:33 .
drwxr-xr-x 11 root root 4096 Jan 11 2021 ..
-rw-r----- 1 root adm 23843 Aug 1 08:06 auth.log
-rw-rw---- 1 root utmp 3072 Aug 1 08:03 btmp
-rw-r----- 1 root adm 21318 Aug 1 08:00 daemon.log
-rw-r----- 1 root adm 1032 Aug 1 05:33 debug
-rw------- 1 root root 2559 Aug 1 08:03 fail2ban.log
-rw-r----- 1 root adm 26940 Aug 1 05:33 kern.log
-rw-rw-r-- 1 root utmp 292584 Aug 1 08:00 lastlog
-rw-r----- 1 root adm 26239 Aug 1 05:33 messages
drwx------ 2 root root 40 Aug 1 05:33 private
-rw-r----- 1 root adm 50106 Aug 1 08:00 syslog
-rw-rw-r-- 1 root utmp 1920 Aug 1 08:00 wtmp

It's been running like this on the same SDCARD for 2+ years.

Re: move /var/log to a RAMDISK

<uaahf4$3k94d$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6683&group=comp.sys.raspberry-pi#6683

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Tue, 1 Aug 2023 09:58:12 +0100
Organization: A little, after lunch
Lines: 32
Message-ID: <uaahf4$3k94d$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<o5adnUGa5uLcw1j5nZ2dnZfqn_ednZ2d@giganews.com>
<ua3q2k$2mksr$1@dont-email.me>
<ev-cnSZfJ8u45Vj5nZ2dnZfqnPSdnZ2d@giganews.com> <64c5ad35@news.ausics.net>
<op.18vk8skaa3w0dxdave@hodgins.homeip.net> <ua50i0$2t42v$1@dont-email.me>
<64c6183e@news.ausics.net> <ua7t2i$382l6$1@dont-email.me>
<ua8co8$39j06$1@dont-email.me>
<DwKdnfu7bau7Ulr5nZ2dnZfqnPSdnZ2d@giganews.com>
<ua90b4$3bpvg$1@dont-email.me>
<wticndxHH83ahFX5nZ2dnZfqn_udnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 1 Aug 2023 08:58:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b1cc5311ee44168733beeb498879d900";
logging-data="3810445"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19uqPqh+OUs1d1nmHbQQyzk8NcH16my+eo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:rnTJHhjZjBq6yEfq2NkwBF6Pc8g=
Content-Language: en-GB
In-Reply-To: <wticndxHH83ahFX5nZ2dnZfqn_udnZ2d@giganews.com>
 by: The Natural Philosop - Tue, 1 Aug 2023 08:58 UTC

On 31/07/2023 21:27, Robert Heller wrote:
> At Mon, 31 Jul 2023 19:59:48 +0100 The Natural Philosopher <tnp@invalid.invalid> wrote:
>
>> Indeed. People DO have failures, but I can find no really clear data on
>> *why* they fail in a Pi situation
>
> Ultra "cheap" no-name brand uSD cards?
>
Possibly, again, no direct evidence, sadly.

Its another of those details that Pi users probably need to know, but no
one else cares about.,

There are SD cards for data transfer - video capture - and sd cards for
multiple use like cameras.

no one sells one for a lot of micro writes...

--
“it should be clear by now to everyone that activist environmentalism
(or environmental activism) is becoming a general ideology about humans,
about their freedom, about the relationship between the individual and
the state, and about the manipulation of people under the guise of a
'noble' idea. It is not an honest pursuit of 'sustainable development,'
a matter of elementary environmental protection, or a search for
rational mechanisms designed to achieve a healthy environment. Yet
things do occur that make you shake your head and remind yourself that
you live neither in Joseph Stalin’s Communist era, nor in the Orwellian
utopia of 1984.”

Vaclav Klaus

Re: move /var/log to a RAMDISK

<uaala2$3kme7$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6684&group=comp.sys.raspberry-pi#6684

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Tue, 1 Aug 2023 11:03:45 +0100
Organization: A little, after lunch
Lines: 96
Message-ID: <uaala2$3kme7$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<op.18uwwysca3w0dxdave@hodgins.homeip.net> <ua3n91$2mbh0$2@dont-email.me>
<op.18u06wxua3w0dxdave@hodgins.homeip.net> <ua960d$3chlq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 1 Aug 2023 10:03:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b1cc5311ee44168733beeb498879d900";
logging-data="3824071"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+aV0l3knRb63FHF/AvgEJ8VIy5Tmp8gU4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:Se2kMMolXwLlseY9MCrB+VGRz5c=
Content-Language: en-GB
In-Reply-To: <ua960d$3chlq$1@dont-email.me>
 by: The Natural Philosop - Tue, 1 Aug 2023 10:03 UTC

On 31/07/2023 21:36, druck wrote:
> On 29/07/2023 21:14, David W. Hodgins wrote:
>> On Sat, 29 Jul 2023 14:54:25 -0400, The Natural Philosopher
>> <tnp@invalid.invalid> wrote:
>>
>>> On 29/07/2023 19:42, David W. Hodgins wrote:
>>>> On Sat, 29 Jul 2023 13:34:45 -0400, The Natural Philosopher
>>>> <tnp@invalid.invalid> wrote:
>>>>> Embedded Raspberry Pi Zero W. Minimal logs generated but  I
>>>>> only use logs for debugging and why wear the  SD card?
>>>>
>>>>> My question is simple. If I make a 50MByte or so RAMDISK and
>>>>> mount it on /var/log, will the logging daemons recreate all the
>>>>> files and directories they need at boot time?
>
>> It can be done using scripts that hook into systemd, but is not easy,
>>  and may require changes to scripts with any package install that
>> uses /var/log, and also risks losing parts of the logs in the case of
>> an unclean shutdown, which is typically when you are going to want
>> the logs.
>
> On Bullseye and later the largest amount of logging activity to disc is
> bloody systemd's journald, which by default will grow /var/log/journal/*
> to 2GB, taking up valuable space on SD cards and severely reducing their
> write life.
>
> Two things you can do; first as fucking Peottering always knows best,

I am already liking your world view. As I said 'designed to make life
easier for a minicomputer system admin'
Not really what we want in a Pi.

> there is no way of turning off journald and just using the god given
> rsyslog, but you can stop journald logging to disc and just keep it in
> RAM instead by adding the following to /etc/systemd/journald.conf
>
> Storage=volatile
> RuntimeMaxUse=32M
> RuntimeMaxFileSize=32M
> ForwardToConsole=no
> ForwardToWall=no
>
Ah. I had already limited its size.
Where in RAM does it keep it, or is that only known the the Great
Poettering, who has provided some buggy tool to access it?

In normal use I would have access and hopefully not error logs from
apache, but only minimal. And perhaps the odd error message being mailed
out via exim.

Mostly the machine will be, apart from a daemon waking up every few
seconds and seeing what's what, essentially idle

> Secondly stop systemd spamming /var/log/syslog with all sorts of crap
> you have no interest in. Create a file called
> /etc/rsyslog.d/drop.systemd.conf containing
>
> # Drop messages from f***ing systemd
> :programname,startswith,"systemd" stop
>
is ryslog still running? Oh, yes it is.

I think stage one is to create and mount something like /var/ramlog and
see how much standard logging can be moved there by patching
rsyslog.conf and the logrotate files.

apache2 can be moved there too. That's defined in /etc/apache2/envvars

The only hardwired one I can see so far is exim4, but I can cope with that.
Certainly should be able to push a huge amount off the SD

> If you do that, you'll be left with far less logging activity to disk,
> so you may not have to bother moving it to RAM. If you still want no
> logging at all to disc, you can disable rsyslog entirely and just use
> journald restricted RAM. But that way madness lies.
>
Logging is phenomenally useful for debugging a *development* project,
but there is absolutely no need for persistence

So a ram disk plus limiting what goes on it, is handy.
....a few moments later...
successfuly got systemd journal to cease to exist on disk, and moved
nearly everything to a ram log.
As the man falling past the 13th floor yelled: 'so far. so good!'

--
Religion is regarded by the common people as true, by the wise as
foolish, and by the rulers as useful.

(Seneca the Younger, 65 AD)

Re: move /var/log to a RAMDISK

<20230801113714.e47051575532462aa940c646@eircom.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6685&group=comp.sys.raspberry-pi#6685

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Tue, 1 Aug 2023 11:37:14 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <20230801113714.e47051575532462aa940c646@eircom.net>
References: <ua3ijl$2m0am$1@dont-email.me>
<op.18uwwysca3w0dxdave@hodgins.homeip.net>
<ua3n91$2mbh0$2@dont-email.me>
<op.18u06wxua3w0dxdave@hodgins.homeip.net>
<ua960d$3chlq$1@dont-email.me>
<uaala2$3kme7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="7b3616a86cd366de6f1343994591e905";
logging-data="3834449"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+V4fRL2SSHYyPOPr/2k66dtJAH8ErxxPk="
Cancel-Lock: sha1:BOryTmec6UI/vvjMSc5tcuta7/I=
X-Clacks-Overhead: "GNU Terry Pratchett"
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1)
 by: Ahem A Rivet's - Tue, 1 Aug 2023 10:37 UTC

On Tue, 1 Aug 2023 11:03:45 +0100
The Natural Philosopher <tnp@invalid.invalid> wrote:

> I think stage one is to create and mount something like /var/ramlog and
> see how much standard logging can be moved there by patching
> rsyslog.conf and the logrotate files.

Why don't you just use overlayfs to overlay a ramdisk on /var ?

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/
Host: Beautiful Theory meet Inconvenient Fact
Obit: Beautiful Theory died today of factual inconsistency

Re: move /var/log to a RAMDISK

<uab14d$3ls2g$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6686&group=comp.sys.raspberry-pi#6686

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dav...@cyw.uklinux.net (Dave)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Tue, 1 Aug 2023 14:25:33 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <uab14d$3ls2g$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<o5adnUGa5uLcw1j5nZ2dnZfqn_ednZ2d@giganews.com>
<ua3q2k$2mksr$1@dont-email.me>
<ev-cnSZfJ8u45Vj5nZ2dnZfqnPSdnZ2d@giganews.com> <64c5ad35@news.ausics.net>
<op.18vk8skaa3w0dxdave@hodgins.homeip.net> <ua50i0$2t42v$1@dont-email.me>
<64c6183e@news.ausics.net> <ua7t2i$382l6$1@dont-email.me>
<ua8co8$39j06$1@dont-email.me>
<DwKdnfu7bau7Ulr5nZ2dnZfqnPSdnZ2d@giganews.com>
<ua90b4$3bpvg$1@dont-email.me>
<wticndxHH83ahFX5nZ2dnZfqn_udnZ2d@giganews.com>
<uaahf4$3k94d$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 1 Aug 2023 13:25:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="135051ef29df76b4e64d0a0e6e1549d5";
logging-data="3862608"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nw76yd/u2hNcSnSzcs0XY"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:o7UHz8kauYJAEm1V7m9/VQkbvy8=
In-Reply-To: <uaahf4$3k94d$1@dont-email.me>
Content-Language: en-GB
 by: Dave - Tue, 1 Aug 2023 13:25 UTC

On 01/08/2023 09:58, The Natural Philosopher wrote:
> Its another of those details that Pi users probably need to know, but no
> one else cares about.,
>
> There are SD cards for data transfer - video capture - and sd cards for
> multiple use like cameras.
>
> no one sells one for a lot of micro writes...

There are "Application Performance Class" cards now available which
focus on I/O operations per second instead of raw streaming read/write
speeds. They are identified as class A1 and A2. Sandisk seems to be the
main supplier.

One would hope that these cards would have wear levelling set up to
handle lots of small I/O operations but I suspect that's not part of the
spec...

Re: move /var/log to a RAMDISK

<20230801144623.cbb14912b3546c3afac3a0b4@eircom.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6687&group=comp.sys.raspberry-pi#6687

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Tue, 1 Aug 2023 14:46:23 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <20230801144623.cbb14912b3546c3afac3a0b4@eircom.net>
References: <ua3ijl$2m0am$1@dont-email.me>
<o5adnUGa5uLcw1j5nZ2dnZfqn_ednZ2d@giganews.com>
<ua3q2k$2mksr$1@dont-email.me>
<ev-cnSZfJ8u45Vj5nZ2dnZfqnPSdnZ2d@giganews.com>
<64c5ad35@news.ausics.net>
<op.18vk8skaa3w0dxdave@hodgins.homeip.net>
<ua50i0$2t42v$1@dont-email.me>
<64c6183e@news.ausics.net>
<ua7t2i$382l6$1@dont-email.me>
<ua8co8$39j06$1@dont-email.me>
<DwKdnfu7bau7Ulr5nZ2dnZfqnPSdnZ2d@giganews.com>
<ua90b4$3bpvg$1@dont-email.me>
<wticndxHH83ahFX5nZ2dnZfqn_udnZ2d@giganews.com>
<uaahf4$3k94d$1@dont-email.me>
<uab14d$3ls2g$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="7b3616a86cd366de6f1343994591e905";
logging-data="3869818"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CJ6x7G0FPwHCFU6uocglByk2Xc2V1W2o="
Cancel-Lock: sha1:8XCVUlhw+gjTgRwj73sYHYCVs0w=
X-Clacks-Overhead: "GNU Terry Pratchett"
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1)
 by: Ahem A Rivet's - Tue, 1 Aug 2023 13:46 UTC

On Tue, 1 Aug 2023 14:25:33 +0100
Dave <dave@cyw.uklinux.net> wrote:

> One would hope that these cards would have wear levelling set up to
> handle lots of small I/O operations but I suspect that's not part of the
> spec...

SD cards have had wear levelling for about a decade now, I doubt
there are many without it.

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/
Host: Beautiful Theory meet Inconvenient Fact
Obit: Beautiful Theory died today of factual inconsistency

Re: move /var/log to a RAMDISK

<kit49nFl56fU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6690&group=comp.sys.raspberry-pi#6690

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: jpstew...@personalprojects.net (John-Paul Stewart)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Tue, 1 Aug 2023 15:21:27 -0400
Lines: 32
Message-ID: <kit49nFl56fU1@mid.individual.net>
References: <ua3ijl$2m0am$1@dont-email.me>
<op.18uwwysca3w0dxdave@hodgins.homeip.net> <ua3n91$2mbh0$2@dont-email.me>
<op.18u06wxua3w0dxdave@hodgins.homeip.net> <ua960d$3chlq$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net J5fth0zVmzKtD4FLMnPu0w5uaZ2vZxvzYcO6TXrkrUvd5fr0A5
Cancel-Lock: sha1:b7m/0AnzkTbEpqWK2o6xjidT2kM= sha256:goP6Omqyk07bohgi46FoUWSB3IHM0QbUrUEO3VOXp3E=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Content-Language: en-CA
In-Reply-To: <ua960d$3chlq$1@dont-email.me>
 by: John-Paul Stewart - Tue, 1 Aug 2023 19:21 UTC

On 7/31/23 16:36, druck wrote:
>
> On Bullseye and later the largest amount of logging activity to disc is
> bloody systemd's journald, which by default will grow /var/log/journal/*
> to 2GB, taking up valuable space on SD cards and severely reducing their
> write life.
>
> Two things you can do; first as fucking Peottering always knows best,
> there is no way of turning off journald and just using the god given
> rsyslog, but you can stop journald logging to disc and just keep it in
> RAM instead by adding the following to /etc/systemd/journald.conf
>
> Storage=volatile
> RuntimeMaxUse=32M
> RuntimeMaxFileSize=32M
> ForwardToConsole=no
> ForwardToWall=no
>
> Secondly stop systemd spamming /var/log/syslog with all sorts of crap
> you have no interest in. Create a file called
> /etc/rsyslog.d/drop.systemd.conf containing
>
> # Drop messages from f***ing systemd
> :programname,startswith,"systemd" stop

Thanks for posting that!

I'm not the OP, but I still found that info immensely useful for a
totally different reason. And I'm probably not the only one who doesn't
want to waste a day sifting through the systemd and journalctl docs to
figure it out for myself.

Re: move /var/log to a RAMDISK

<d7nici5m4mmtqcfhasutp2utgd6ovm9bq7@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6691&group=comp.sys.raspberry-pi#6691

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!3.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 01 Aug 2023 19:35:27 +0000
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Tue, 01 Aug 2023 15:35:28 -0400
Organization: IISS Elusive Unicorn
Message-ID: <d7nici5m4mmtqcfhasutp2utgd6ovm9bq7@4ax.com>
References: <ua3q2k$2mksr$1@dont-email.me> <ev-cnSZfJ8u45Vj5nZ2dnZfqnPSdnZ2d@giganews.com> <64c5ad35@news.ausics.net> <op.18vk8skaa3w0dxdave@hodgins.homeip.net> <ua50i0$2t42v$1@dont-email.me> <64c6183e@news.ausics.net> <ua7t2i$382l6$1@dont-email.me> <ua8co8$39j06$1@dont-email.me> <DwKdnfu7bau7Ulr5nZ2dnZfqnPSdnZ2d@giganews.com> <ua90b4$3bpvg$1@dont-email.me> <wticndxHH83ahFX5nZ2dnZfqn_udnZ2d@giganews.com> <uaahf4$3k94d$1@dont-email.me> <uab14d$3ls2g$1@dont-email.me>
User-Agent: ForteAgent/8.00.32.1272
X-No-Archive: yes
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 30
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-wgWhWz20q5G0ocZtPPAB0QUUdn6rzY/1ln005TQ4A0tx5ACUzdkIqgV2c0TwE7+ySabxmomRoDjf5Ed!zFzJ6WzwB+qAH1tFZ76RshxWq7KGlMtT6gIhKj/Bq2IbZDvc/jpYu5mWY4RGzCrJZQxtM5WQ
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Dennis Lee Bieber - Tue, 1 Aug 2023 19:35 UTC

On Tue, 1 Aug 2023 14:25:33 +0100, Dave <dave@cyw.uklinux.net> declaimed
the following:

>There are "Application Performance Class" cards now available which
>focus on I/O operations per second instead of raw streaming read/write
>speeds. They are identified as class A1 and A2. Sandisk seems to be the
>main supplier.
>
>One would hope that these cards would have wear levelling set up to
>handle lots of small I/O operations but I suspect that's not part of the
>spec...

I'd expect the main feature to be: how many allocation units can be
kept open at one time.

Class 10 cards are rated for streaming to a newly formatted card -- and
with FAT file systems, they only need to keep two allocation units open.
The FAT and the streamed file, and cheaper cards only allow for that.
Opening a second file for I/O requires flushing the current allocation unit
to the actual flash rather than RAM-type buffer, finding a free allocation
unit (erasing it to all 1s), loading it (copying any data from the old
allocation unit if the file is being /reopened/ before marking that old one
free).

Class 2/4/6 were rated for still image operations on cards with
deletions. They often support 4-6 parallel open allocation units.

On a journal ling file system, having lots of open allocation units is
desirable.

Re: move /var/log to a RAMDISK

<uabq24$3oks4$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6692&group=comp.sys.raspberry-pi#6692

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Tue, 1 Aug 2023 21:30:59 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uabq24$3oks4$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<op.18uwwysca3w0dxdave@hodgins.homeip.net> <ua3n91$2mbh0$2@dont-email.me>
<op.18u06wxua3w0dxdave@hodgins.homeip.net> <ua960d$3chlq$1@dont-email.me>
<uaala2$3kme7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 1 Aug 2023 20:31:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="222fe53889a9dbf79b37270c31e01b12";
logging-data="3953540"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180ozFqxTV1TwZSQICMnD8l"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:fw2lth3fNw7+1pbI9hyKVNIZwiA=
Content-Language: en-GB
X-Antivirus: Avast (VPS 230728-12, 28/7/2023), Outbound message
In-Reply-To: <uaala2$3kme7$1@dont-email.me>
X-Antivirus-Status: Clean
 by: druck - Tue, 1 Aug 2023 20:30 UTC

On 01/08/2023 11:03, The Natural Philosopher wrote:
> Where in RAM does it keep it, or is that only known the the Great
> Poettering, who has provided some buggy tool to access it?

It's stored in /run/log/journal (/run is tmpfs in RAM)

Despite the configuration specifying a maximum journal size of 32M and
even 512MB Pi's having a 64MB /run, if you do a df /run and see it at
100% it's down to bloody journald, and you have to use Peottering,s
buggy tool to manually clear out the crap.

journal --vacuum-files=1

> successfuly got systemd journal to cease to exist on disk, and moved
> nearly everything to a ram log.
> As the man falling past the 13th floor yelled: 'so far. so good!'

If you aiming for uptimes of 80+ days or more, then bung that command in
a weekly or monthly cron job, as things can get a bit temperamental if
/run is full.

---druck

Re: move /var/log to a RAMDISK

<uabr1t$3oqpt$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6693&group=comp.sys.raspberry-pi#6693

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.J...@Proton.Me (Pancho)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Tue, 1 Aug 2023 21:47:57 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <uabr1t$3oqpt$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<o5adnUGa5uLcw1j5nZ2dnZfqn_ednZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 1 Aug 2023 20:47:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="09ce3a1b77a1ffe7a2b806e96890b5ae";
logging-data="3959613"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4SOWx2oRSc4Tx0BJJEgUPpJzClXOQkgI="
User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101
Thunderbird/102.13.1
Cancel-Lock: sha1:nIRW/xK3OIZ2rzxDeRtb0gTYdS0=
Content-Language: en-GB
In-Reply-To: <o5adnUGa5uLcw1j5nZ2dnZfqn_ednZ2d@giganews.com>
 by: Pancho - Tue, 1 Aug 2023 20:47 UTC

On 7/29/23 19:45, Robert Heller wrote:
> This is in fact the default behaviour for Armbian on my Banana Pi M64.
>

+1, :-) I was just thinking, I spent ages undoing this, in order to
find out why my system was crashing. But I'm running Armbian.

TNP, FFS, SD cards cost buttons. Pack of two 32GB for less than a
tenner. If you are worried about wear, clone a new one every year, or
whatever.

Re: move /var/log to a RAMDISK

<uabr2s$3oks4$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6694&group=comp.sys.raspberry-pi#6694

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Tue, 1 Aug 2023 21:48:27 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <uabr2s$3oks4$2@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me> <uaab27$3jlmt$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 1 Aug 2023 20:48:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="222fe53889a9dbf79b37270c31e01b12";
logging-data="3953540"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//XOA86Wa3MMXr5pmmNV/6"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:lt0Pz/zFK9BLZi8hzGrk4AUw91w=
X-Antivirus: Avast (VPS 230728-12, 28/7/2023), Outbound message
X-Antivirus-Status: Clean
In-Reply-To: <uaab27$3jlmt$1@dont-email.me>
Content-Language: en-GB
 by: druck - Tue, 1 Aug 2023 20:48 UTC

On 01/08/2023 08:08, mm0fmf wrote:
> Cron job reboots it every morning so I don't worry about ramdisk filling
> up.
>
> It's been running like this on the same SDCARD for 2+ years.

Lucky. I had an older Pi which I had set to reboot every day, and I had
lots of occasions when it didn't come back up by itself. Often just
needed power cycling, occasionally filesystem corruption needed fixing.
Turned out it was a dodgy WiFi dongle, and after replacing that I was
able to abandon the daily reboots, and the reliability was rock solid
after that.

My suggestion is to look at the logging levels of various processes, and
ensure everything has a suitable log rotate configuration, so the size
of your logging directory is kept pretty static over time without having
to reboot. Particularly as booting does lots of logging, and once that
is rotated out, the size may go down slightly.

I do nightly differential backups across my fleet of Pi's and the first
thing I look for in the monitoring graphs is the size of data
transferred, any significant increase is invariably due to some problem
causing a log to grow massively. A quick intervention has often avoided
considerable downtime.

---druck

Re: move /var/log to a RAMDISK

<uac2i9$3pm44$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6695&group=comp.sys.raspberry-pi#6695

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: non...@invalid.com (mm0fmf)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Tue, 1 Aug 2023 23:56:07 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uac2i9$3pm44$1@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me> <uaab27$3jlmt$1@dont-email.me>
<uabr2s$3oks4$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 1 Aug 2023 22:56:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="138c77b9867d77d4fb6452fefcde80c9";
logging-data="3987588"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EygUxQE//+nnStRBxlM/H"
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.12.1
Cancel-Lock: sha1:oipjtOHOlgcemvreFo/XHEAbO7o=
Content-Language: en-GB
In-Reply-To: <uabr2s$3oks4$2@dont-email.me>
 by: mm0fmf - Tue, 1 Aug 2023 22:56 UTC

On 01/08/2023 21:48, druck wrote:
> On 01/08/2023 08:08, mm0fmf wrote:
>> Cron job reboots it every morning so I don't worry about ramdisk
>> filling up.
>>
>> It's been running like this on the same SDCARD for 2+ years.
>
[snip]

> My suggestion is to look at the logging levels of various processes, and
> ensure everything has a suitable log rotate configuration, so the size
> of your logging directory is kept pretty static over time without having
> to reboot. Particularly as booting does lots of logging, and once that
> is rotated out, the size may go down slightly.
>

I think you are right. I really should set it up better than it is. It's
a classic "round tuit" problem as it works acceptably as is. I suppose
the problem with Pi's and the like is they feel disposable along with
their SD Cards and once you have something working the urge to do the
job properly wanes. And you can always just stick the backup SD Card in
and reboot!

Re: move /var/log to a RAMDISK

<vaycnS3WH8ImQ1T5nZ2dnZfqn_WdnZ2d@earthlink.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6697&group=comp.sys.raspberry-pi#6697

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.22.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 02 Aug 2023 04:42:34 +0000
Subject: Re: move /var/log to a RAMDISK
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
References: <ua3ijl$2m0am$1@dont-email.me> <op.18uwwysca3w0dxdave@hodgins.homeip.net> <sLKcnQERn8HAiVr5nZ2dnZfqnPudnZ2d@earthlink.com> <ua7v3m$386mt$2@dont-email.me>
From: 23k...@bfxw9.net (23k.304)
Organization: feather germanium
Date: Wed, 2 Aug 2023 00:41:52 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <ua7v3m$386mt$2@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <vaycnS3WH8ImQ1T5nZ2dnZfqn_WdnZ2d@earthlink.com>
Lines: 112
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 68.222.41.132
X-Trace: sv3-xkZcHc0XRU3prgxTe0aY4jrjt05ojd2P8G/eS5neORaU1or3Gz5SACAMWyqlCLnCBvYjKqvP9lLHWOl!pgZIKl60iV83Z657wHRTtjJJELG8bct+7WRKi9ixs9PwUWAlvuWWY4u7KhVkg1gGYY8fFvbovyhN!YfP6mcD00Jg7NOXmo+8Y
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 6979
 by: 23k.304 - Wed, 2 Aug 2023 04:41 UTC

On 7/31/23 5:32 AM, The Natural Philosopher wrote:
> On 31/07/2023 02:54, 23k.302 wrote:
>> On 7/29/23 2:42 PM, David W. Hodgins wrote:
>>> On 7/30/23 10:45, The Natural Philosopher wrote:
>>>> On 30/07/2023 10:24, Theo wrote:
>>>>> So all you really need to do is reproduce the directory structure:
>>>>>
>>>>> find/var/log -type d -exec mkdir -p "/tmp/{}" \;
>>>>>
>>>>> which reproduces/var/log/foo/bar/  to/tmp/var/log/foo/bar/
>>>>>
>>>>> Theo
>>>> Now that is interesting, and if I leave the old /var/log there, and
>>>> mount a ramdisk over it, provided that the ramdisk is*immediately*
>>>> populated and directories created, then all should work?
>>> Any process that has a log file open before you mount the ramdisk won't
>>> automatically start using it.  The process will still have the open file
>>> handle to the original, disk-based file instead.  So you'll either need
>>> to be sure to mount the ramdisk sufficiently early in the boot sequence
>>> to ensure that no daemons have opened their logfiles yet, or you'll need
>>> to signal those daemons reopen their logs.  Most do that in response to
>>> SIGHUP.  Logrotate often uses that mechanism after rotating logs, so its
>>> configuration can help you figure out what needs to be done after
>>> mounting the ramdisk if programs are still logging to disk.
>>
>>
>>    Hmm ... MIGHT be able to make that work with minimal
>>    pain using systemd. It has 'depends on','run after' and
>>    such params. He could init the ramdisk REALLY early in a
>>    quasi-structured/quasi-safe environment.
>>
>>    Not everyone likes systemd - but it DOES have its uses.
>>
>>    Another trick is to just make the ramdisk whenever and
>>    then make /var/log into a symlink/mountpoint. Yes, there'd
>>    be some early stuff still in the real /var/log, but maybe
>>    that's not important for him.
>>
>>    However I'd rec ramdisks for where they're more useful.
>>    I have an app that does a lot of image manipulation
>>    before the results are shown via PHP/Apache on a Pi.
>>    I don't want any of that to be reading/writing to the
>>    SD card - too slow AND burns it out - but I did want
>>    access to be "normal", like with any 'real' drive. A
>>    small ramdisk was by far the best/easiest solution.
>
> I use them in this and my other pi-zero  context as fundamentally simple
> interprocess communicators. So in my Hifi Project, a daemon reads the
> icecast info off radio streams and writes it to a file in a temporary
> file system.
>
> The web server then has access to that to let me know what misc is being
> played, via ajax calls from the web servers radio interface.
>
> As long as only one process is writing them, this is a very simple and
> effective way to transfer data from one daemon to another.

Agreed. If you CAN keep it simple, DO keep it simple.
Remember YOU might have to debug/enhance it a few
years LATER :-)

Things like Pi's are special cases - not blazing fast,
not a lot of RAM, run off SD cards/eMMC that have to be
protected from re-write fatigue. If the need for space
isn't excessive, and simplicity is worthwhile (almost
always) then a RAMdisk is often your best solution.

Because of the filesystem overhead, RAMdisks just MIGHT
not be fast enough ... then you have to go to "less simple"
approaches alas. To each app, its own.

> In the current project which involves driving 4 mains relays using a
> daemon that collects various bits of information in order to decide when
> to switch them on, it is used to store the relay state, so again ajax
> calls from the web server can determine not what *should be on, but what
> is *actually* on.

Cool stuff

> I am sure the semaphores messages and pipes might have done the job, but
> simply recreating  a file ion a ramdisk every few seconds works fine.

"Pipes" are a kind of cheat - really just "invisible" R/W files.
I used them kinda extensively on some forking servers I wrote a
couple of years ago in Python and 'C' to make data gathered by
new forks accessible to the mother process. They WORK just fine
and are commonly used and I *think* a tad faster than a RAMdisk,
but still ...

I'm fond of such 'servers' - even cobbled together a good
"pre-forked" one - supposedly the highest-capacity/speed -
for both TCP and UDP - but never had a good high-volume
reason to use them. The best was almost like a 'chat' app,
non-sync bi-directional where the queen server process could
initiate, even push, tasks and messages to the clients. Fun !

Hmm ... now apparently some possible servants of Xi here
are calling me a "troll" because I repeated a few things
(said by HS/NSA/CIA) they didn't WANT to hear about
CCP sabotage-ware infiltrating almost everything in
our important infrastructure/military systems and
'devices' (which are almost entirely Linux/Unix-based).
One day soon they ARE gonna get a big wake-up call ... but
meanwhile denial means they won't DO anything about it :-)

ANYway, /var/log CAN be moved to a RAMdisk if you want.
Not 100% sure WHY you'd want to, but it CAN. If a few
very early logs get 'lost' as you re-direct /var/log
then that MIGHT not be all so important. If you want
it all on RAMdisk then you don't CARE if it all
vanishes on reboot. I very rarely look in /var/log
anyhow so ....

Re: move /var/log to a RAMDISK

<uadtfv$4qvf$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6699&group=comp.sys.raspberry-pi#6699

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Wed, 2 Aug 2023 16:41:51 +0100
Organization: A little, after lunch
Lines: 32
Message-ID: <uadtfv$4qvf$2@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<o5adnUGa5uLcw1j5nZ2dnZfqn_ednZ2d@giganews.com>
<ua3q2k$2mksr$1@dont-email.me>
<ev-cnSZfJ8u45Vj5nZ2dnZfqnPSdnZ2d@giganews.com> <64c5ad35@news.ausics.net>
<op.18vk8skaa3w0dxdave@hodgins.homeip.net> <ua50i0$2t42v$1@dont-email.me>
<64c6183e@news.ausics.net> <ua7t2i$382l6$1@dont-email.me>
<ua8co8$39j06$1@dont-email.me>
<DwKdnfu7bau7Ulr5nZ2dnZfqnPSdnZ2d@giganews.com>
<ua90b4$3bpvg$1@dont-email.me>
<wticndxHH83ahFX5nZ2dnZfqn_udnZ2d@giganews.com>
<uaahf4$3k94d$1@dont-email.me> <uab14d$3ls2g$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 2 Aug 2023 15:41:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7a6d310cff9aba769c9da47100700472";
logging-data="158703"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zcKMDz/XnSxRVJteky6LMQOi7wsZ2YSM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:BBKn3SV8UgBVM4FcnLCFWWnUnX0=
In-Reply-To: <uab14d$3ls2g$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 2 Aug 2023 15:41 UTC

On 01/08/2023 14:25, Dave wrote:
> On 01/08/2023 09:58, The Natural Philosopher wrote:
>> Its another of those details that Pi users probably need to know, but
>> no one else cares about.,
>>
>> There are SD cards for data transfer - video capture - and sd cards
>> for multiple use like cameras.
>>
>> no one sells one for a lot of micro writes...
>
> There are "Application Performance Class" cards now available which
> focus on I/O operations per second instead of raw streaming read/write
> speeds. They are identified as class A1 and A2. Sandisk seems to be the
> main supplier.
>
> One would hope that these cards would have wear levelling set up to
> handle lots of small I/O operations but I suspect that's not part of the
> spec...
>
Some info I gleaned suggested that [some of] the better cards do have
full wear levelling.

--
“It is not the truth of Marxism that explains the willingness of
intellectuals to believe it, but the power that it confers on
intellectuals, in their attempts to control the world. And since...it is
futile to reason someone out of a thing that he was not reasoned into,
we can conclude that Marxism owes its remarkable power to survive every
criticism to the fact that it is not a truth-directed but a
power-directed system of thought.”
Sir Roger Scruton

Re: move /var/log to a RAMDISK

<uadth5$4qvf$3@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6700&group=comp.sys.raspberry-pi#6700

  copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: move /var/log to a RAMDISK
Date: Wed, 2 Aug 2023 16:42:29 +0100
Organization: A little, after lunch
Lines: 22
Message-ID: <uadth5$4qvf$3@dont-email.me>
References: <ua3ijl$2m0am$1@dont-email.me>
<o5adnUGa5uLcw1j5nZ2dnZfqn_ednZ2d@giganews.com>
<ua3q2k$2mksr$1@dont-email.me>
<ev-cnSZfJ8u45Vj5nZ2dnZfqnPSdnZ2d@giganews.com> <64c5ad35@news.ausics.net>
<op.18vk8skaa3w0dxdave@hodgins.homeip.net> <ua50i0$2t42v$1@dont-email.me>
<64c6183e@news.ausics.net> <ua7t2i$382l6$1@dont-email.me>
<ua8co8$39j06$1@dont-email.me>
<DwKdnfu7bau7Ulr5nZ2dnZfqnPSdnZ2d@giganews.com>
<ua90b4$3bpvg$1@dont-email.me>
<wticndxHH83ahFX5nZ2dnZfqn_udnZ2d@giganews.com>
<uaahf4$3k94d$1@dont-email.me> <uab14d$3ls2g$1@dont-email.me>
<20230801144623.cbb14912b3546c3afac3a0b4@eircom.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 2 Aug 2023 15:42:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7a6d310cff9aba769c9da47100700472";
logging-data="158703"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ez9/uJwBsIGn4oUfskpVYAPDQjpRVgoE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:2yaHm45NofsUP7ln5tbrp47g4I0=
Content-Language: en-GB
In-Reply-To: <20230801144623.cbb14912b3546c3afac3a0b4@eircom.net>
 by: The Natural Philosop - Wed, 2 Aug 2023 15:42 UTC

On 01/08/2023 14:46, Ahem A Rivet's Shot wrote:
> On Tue, 1 Aug 2023 14:25:33 +0100
> Dave <dave@cyw.uklinux.net> wrote:
>
>> One would hope that these cards would have wear levelling set up to
>> handle lots of small I/O operations but I suspect that's not part of the
>> spec...
>
> SD cards have had wear levelling for about a decade now, I doubt
> there are many without it.
>
I could find no clear evidence of that.
--
“It is not the truth of Marxism that explains the willingness of
intellectuals to believe it, but the power that it confers on
intellectuals, in their attempts to control the world. And since...it is
futile to reason someone out of a thing that he was not reasoned into,
we can conclude that Marxism owes its remarkable power to survive every
criticism to the fact that it is not a truth-directed but a
power-directed system of thought.”
Sir Roger Scruton

Pages:123456789
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor