Re: [oe] [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs
On Mon, Mar 5, 2012 at 14:37, Koen Kooi k...@dominion.thruhere.net wrote: + # create dir for journal + install -d ${D}${localstatedir}/log/journal I'd prefer if journal could default to use a buffer or something similar instead of writting to disk as we ought to be careful about space in embedded devices, in general. -- Otavio Salvador O.S. Systems E-mail: ota...@ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [oe] [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Op 05-03-12 19:12, Otavio Salvador schreef: On Mon, Mar 5, 2012 at 14:37, Koen Kooi k...@dominion.thruhere.net wrote: + # create dir for journal + install -d ${D}${localstatedir}/log/journal I'd prefer if journal could default to use a buffer or something similar instead of writting to disk as we ought to be careful about space in embedded devices, in general. And that's why patch 1/3 enables xz compression :) regards, Koen -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAk9VIg0ACgkQMkyGM64RGpH14QCbBuH7m537WtbnT6RdxR1O15CF FTMAmQHZzg42rc/O0OLPmllHAYeDAe5y =3Zig -END PGP SIGNATURE- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [oe] [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs
On Mon, Mar 5, 2012 at 17:29, Koen Kooi k...@dominion.thruhere.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Op 05-03-12 19:12, Otavio Salvador schreef: On Mon, Mar 5, 2012 at 14:37, Koen Kooi k...@dominion.thruhere.net wrote: + # create dir for journal + install -d ${D}${localstatedir}/log/journal I'd prefer if journal could default to use a buffer or something similar instead of writting to disk as we ought to be careful about space in embedded devices, in general. And that's why patch 1/3 enables xz compression :) I understand however I think that write the log to the disk by default is wrong. We can do it by machine basis or other type of override by by default we ought to avoid writting to disk. -- Otavio Salvador O.S. Systems E-mail: ota...@ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [oe] [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Op 05-03-12 21:55, Otavio Salvador schreef: On Mon, Mar 5, 2012 at 17:29, Koen Kooi k...@dominion.thruhere.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Op 05-03-12 19:12, Otavio Salvador schreef: On Mon, Mar 5, 2012 at 14:37, Koen Kooi k...@dominion.thruhere.net wrote: + # create dir for journal + install -d ${D}${localstatedir}/log/journal I'd prefer if journal could default to use a buffer or something similar instead of writting to disk as we ought to be careful about space in embedded devices, in general. And that's why patch 1/3 enables xz compression :) I understand however I think that write the log to the disk by default is wrong. We can do it by machine basis or other type of override by by default we ought to avoid writting to disk. Right now it's logging to tmpfs, which takes up ram, which more scarce than disk. You can easily remove /var/log/journal in ROOTFS_POSTPROCESS_CMD to make it log to tmpfs again. regards, Koen -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAk9VMQgACgkQMkyGM64RGpErSwCfZpPPFTm/pOM6926bD7IYh3JV TjEAoI6cWZX5RdaT/ArpIf14+/yqXif3 =CY6W -END PGP SIGNATURE- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [oe] [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs
On Mon, Mar 5, 2012 at 18:32, Koen Kooi k...@dominion.thruhere.net wrote: Right now it's logging to tmpfs, which takes up ram, which more scarce than disk. You can easily remove /var/log/journal in ROOTFS_POSTPROCESS_CMD to make it log to tmpfs again. In both cases it is doing the wrong thing IMO; a circular buffer would be the right thing for a default. -- Otavio Salvador O.S. Systems E-mail: ota...@ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel