What is Logger Buffer Sizes Of Developer Option

MUHAMMED RAFEEQ KARAKKADAN picture MUHAMMED RAFEEQ KARAKKADAN · Oct 29, 2019 · Viewed 9.7k times · Source

What is the Logger Buffer Sizes option of developer options?

We have various options like:

  • Off
  • 64 K
  • 256 K
  • 1 M
  • 4 M
  • 16 M

If we are changing the buffer size, do we have any impact in the buffer size of logcat and dmesg utilities. What will be the impact if we are setting the option OFF

Answer

Himanshu picture Himanshu · Oct 30, 2019

There are different buffers for android logging, radio/events/main/system/crash, and the applications can write to these buffers, which are read by logcat. Refer this link! for the explanation of the buffers.

These are basically circular buffers of defined sizes, and the previous buffer is overwritten, if not read.

Logger Buffer Sizes option allows you to change the buffer size of these mentioned buffers.

Increasing the buffer size would allow you to capture more logs in the buffer, and reducing the probability of an overwrite in case of high-frequency logs. Setting the option to "OFF" would disable logging.

These only impact logcat. It is not related to dmesg. "dmesg" prints the message buffer of kernel.