Re: [systemd-devel] journal: How to limit the file size of runtime system.journal

2013-12-20 Thread Sascha Kattelmann
On 12/16/2013 02:30 PM, Zbigniew Jędrzejewski-Szmek wrote: On Mon, Dec 16, 2013 at 08:31:46AM +0100, Holger Winkelmann [TP] wrote: Hi, Is there any particular reason? I think thresold for runtime journal size can lower much because in initramfs it's not supposed to have much logs. First, the

Re: [systemd-devel] journal: How to limit the file size of runtime system.journal

2013-12-16 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Dec 16, 2013 at 08:31:46AM +0100, Holger Winkelmann [TP] wrote: > Hi, > > > > > Is there any particular reason? I think thresold for runtime journal > > > > size can lower much because in initramfs it's not supposed to have much > > > > logs. > > > First, there are some data strcutures whi

Re: [systemd-devel] journal: How to limit the file size of runtime system.journal

2013-12-15 Thread Holger Winkelmann [TP]
Hi, > > > Is there any particular reason? I think thresold for runtime journal > > > size can lower much because in initramfs it's not supposed to have much > > > logs. > > First, there are some data strcutures which are allocated when the file > > is created, and if the file was very small, relat

Re: [systemd-devel] journal: How to limit the file size of runtime system.journal

2013-12-15 Thread WANG Chao
On 12/13/13 at 02:18pm, Zbigniew Jędrzejewski-Szmek wrote: > On Fri, Dec 13, 2013 at 01:49:51PM +0800, WANG Chao wrote: > > On 12/13/13 at 06:42am, Zbigniew Jędrzejewski-Szmek wrote: > > > On Fri, Dec 13, 2013 at 01:33:17PM +0800, WANG Chao wrote: > > > > Hi, > > > > > > > > In kdump environment,

Re: [systemd-devel] journal: How to limit the file size of runtime system.journal

2013-12-13 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Dec 13, 2013 at 01:49:51PM +0800, WANG Chao wrote: > On 12/13/13 at 06:42am, Zbigniew Jędrzejewski-Szmek wrote: > > On Fri, Dec 13, 2013 at 01:33:17PM +0800, WANG Chao wrote: > > > Hi, > > > > > > In kdump environment, memory resource is quite limited. I find that the > > > runtime journal

Re: [systemd-devel] journal: How to limit the file size of runtime system.journal

2013-12-12 Thread WANG Chao
On 12/13/13 at 06:42am, Zbigniew Jędrzejewski-Szmek wrote: > On Fri, Dec 13, 2013 at 01:33:17PM +0800, WANG Chao wrote: > > Hi, > > > > In kdump environment, memory resource is quite limited. I find that the > > runtime journal file (/run/log/journal/$id/system.journal) is 4 MB and I > > think tha

Re: [systemd-devel] journal: How to limit the file size of runtime system.journal

2013-12-12 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Dec 13, 2013 at 01:33:17PM +0800, WANG Chao wrote: > Hi, > > In kdump environment, memory resource is quite limited. I find that the > runtime journal file (/run/log/journal/$id/system.journal) is 4 MB and I > think that is too much for a initramfs context. > > After tuning both RuntimeMa

[systemd-devel] journal: How to limit the file size of runtime system.journal

2013-12-12 Thread WANG Chao
Hi, In kdump environment, memory resource is quite limited. I find that the runtime journal file (/run/log/journal/$id/system.journal) is 4 MB and I think that is too much for a initramfs context. After tuning both RuntimeMaxUse=1% or RuntimeMaxFileSiz=100K, I find system.journal is still 4 MB in