Re: disk spin down with lots of log files



Jean-David Beyer wrote:
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?

well try a ram disk, and rsync it with somewhere every few hours ...
.



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: Design of new iMac
    ... You will have to pay a max for the gig. ... between storage and RAM; it will be all just one thing. ... I came across an external disk in the early 90s which on power up read ...
    (comp.sys.mac.system)
  • 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: Electricity falls out of the wall socket
    ... modes until you posted your power consumption findings and apparently ... In "standby" the machine is suspended with the RAM remaining ... No time-consuming writing out to disk of the machine state. ... In theory you'd think the latter would use more power, as the RAM is ...
    (uk.tech.digital-tv)