Log size
Posted: Fri Mar 17, 2017 1:30 am
There's a long history of confusing discussions about this over on OpenWRT, but does anyone know what the current situation is with logd here in terms of a) increasing the log size from the default of 16KB, and b) actually being able to read larger sizes assuming they exist (there was some discussion about logread not going past 45KB)?
The control for this (short of editing /etc/init.d/log, which I don't think is a good idea) seems to be /etc/config/system ('system' section). There you can add lines like:
option log_buffer_size '32'
option log_size '32'
What is the difference between those two? I have no idea, but I think the first one may be the right one, since when you add just that line you can see the direct effect in memory in the logd process when you run 'ps' (assuming you restart logging: "/etc/init.d/log restart").
(It changes from -S 16 to -S 32.)
And then there's logread itself, which has this switch for some reason. Why would a logreader need to be provided the size of what it's about to read? Clearly I'm missing something.
-S <bytes> Log size
Anyway, if anyone has a handle on this, it would be great to clear all this up.
The control for this (short of editing /etc/init.d/log, which I don't think is a good idea) seems to be /etc/config/system ('system' section). There you can add lines like:
option log_buffer_size '32'
option log_size '32'
What is the difference between those two? I have no idea, but I think the first one may be the right one, since when you add just that line you can see the direct effect in memory in the logd process when you run 'ps' (assuming you restart logging: "/etc/init.d/log restart").
(It changes from -S 16 to -S 32.)
And then there's logread itself, which has this switch for some reason. Why would a logreader need to be provided the size of what it's about to read? Clearly I'm missing something.
-S <bytes> Log size
Anyway, if anyone has a handle on this, it would be great to clear all this up.