* [Buildroot] log storage strategy
@ 2015-03-05 9:30 Sylvain LG
2015-03-05 22:08 ` Arnout Vandecappelle
0 siblings, 1 reply; 2+ messages in thread
From: Sylvain LG @ 2015-03-05 9:30 UTC (permalink / raw)
To: buildroot
Hello,
many services like to write log files.
I suppose that it could be a problem on an embedded device, since space is
limited and NAND has write limitation in time.
What is the correct strategy to deal with log?
Thank you,
Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150305/08cf7255/attachment.html>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] log storage strategy
2015-03-05 9:30 [Buildroot] log storage strategy Sylvain LG
@ 2015-03-05 22:08 ` Arnout Vandecappelle
0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2015-03-05 22:08 UTC (permalink / raw)
To: buildroot
On 05/03/15 10:30, Sylvain LG wrote:
> Hello,
>
> many services like to write log files.
>
> I suppose that it could be a problem on an embedded device, since space is
> limited and NAND has write limitation in time.
>
> What is the correct strategy to deal with log?
There is no single strategy that will work for everybody.
Often the logs are put in a tmpfs so they are never committed to NAND. But then
of course you loose them when the system reboots.
If you do write to flash, with a decent wear-levelling filesystem the write
limit is not necessarily a problem, especially if you enable some write
buffering (which defaults to 5-30 secs anyway, cfr. sysctl
vm.dirty_writeback_centisecs and vm.dirty_expire_centisecs) and rate limiting
(rsyslogd and journald have controls for that).
And finally, you'll have to clean up old logs. You can use logrotate, or the
built-in rotation in rsyslogd and journald.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-05 22:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-05 9:30 [Buildroot] log storage strategy Sylvain LG
2015-03-05 22:08 ` Arnout Vandecappelle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox