Re: disk spin down with lots of log files



Hal Murray wrote:
I have a nice small low power box setup to log all sorts of things,
like temperature and line voltage. It's plugged into a UPS. I want
it to last as long as possible when power goes out.

I want to spin the disk down to save power. But there is a lot of
activity writing log files to the disk, so just spinning it down
when it's idle won't help much.

I'm looking for a recipe to buffer all the log files in RAM and
occasionally copy the updates back to the disk. (Say every few
hours. I have lots of RAM.)

Has anybody done this? Is there a good HOWTO on this, or close to this?

Is there a better approach? I can plug in a flash card if that helps.

By Murphey's law, the system would crash just before your hours of log data was written to disk, so you would have nothing to debug with.

If you have two or more computers on a LAN, why not have each machine keep its log files on the other?

--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 05:55:01 up 5 days, 15:03, 4 users, load average: 4.29, 4.26, 4.11
.



Relevant Pages

  • Re: Future Linux on Bistable Storage
    ... One major difference between disk and RAM is the tradeoffs between size, ... resume the system -- except perhaps for I/O initialisation. ... Writing all of RAM to disk burns more power than powering RAM for several ...
    (Linux-Kernel)
  • Re: disk spin down with lots of log files
    ... I want to spin the disk down to save power. ... activity writing log files to the disk, ... I have lots of RAM.) ...
    (comp.os.linux.setup)
  • disk spin down with lots of log files
    ... I have a nice small low power box setup to log all sorts of things, ... I want to spin the disk down to save power. ... activity writing log files to the disk, ... I have lots of RAM.) ...
    (comp.os.linux.setup)
  • Re: Slow shutdowns for Illustrator, Photoshop Elements, Acrobat?
    ... You can install the "Deep Sleep" widget to set which kind of ... When you suspend to disk only (instead the default ... safe sleep which writes the RAM to disk and then suspends to RAM to be ... But my iBook battery would last for weeks even in the relatively power ...
    (comp.sys.mac.system)
  • Re: Why Do embedded processors have more Flash than RAM
    ... For an embedded computer just think of Flash as disk and there is ... loading it in RAM as you would from a disk. ... what you want to keep around between power cycles, ...
    (comp.arch.embedded)