27 September 2008

Caching Linux System Logs With ramlog

ramlog maintains system log files in memory rather than on the hard disk, while the system is running.

Upon startup of your machine, it creates a ramdisk, copies files from /var/log onto the ramdisk and then mounts the ramdisk as /var/log.

Thereafter, all logs will be updated on the ramdisk. When shutting down or restarting your machine, it saves log files back to the hard disk.

This greatly reduces the frequency of hard disk usage, which is very useful if you use a laptop running on battery, as your hard disk won't have to spin up regularly.

ramlog is also good for a computer using an SSD (solid state drive) based on flash memory. Because flash-based SSDs have a finite number of erase-write cycles, reducing the need for writes to your SSD will prolong its lifespan significantly.

Download ramlog for Ubuntu and give it a try.

No comments: