Turn on logging

bmillikan - June 11, 2009

I am running my embedded filesystem from a FLASH memory and I want to turn off all logging and other sources of periodic writes the OS does to disk/filesystem. Is this a simple way to turn this off? What are other sources of periodic writes to the filesystem other than logging?
Share this

Comments

Turn on logging

Try disable CONFIG_PRINTK in kernel config. That should help reducing logging.

Turn on logging

Just a few others tips: * don't run syslog or syslog-ng, * disable atime on the mount options of your file systems so the system doesn't try to write to the file system each time a file is accessed In general, I recommend people to run their rootfs from cramfs or squashfs and only mount a r/w file system on /var. That usually boosts boot speed, too :-)

Turn on logging

Just FYI - Disabling CONFIG_PRINTK in the kernel config will prevent the kernel from writing printk messages into the kernel log buffer. This buffer is a memory-based ring-buffer, which is not written to the file system by the kernel. That is done by a system logger from user-space. Obviously, if there are no messages in the log buffer, the log deamons have nothing to write, but it's kind of a blunt tool to use for this need.