diff options
author | Yao Chen <yaochen@google.com> | 2019-05-23 10:43:47 -0700 |
---|---|---|
committer | Yao Chen <yaochen@google.com> | 2019-05-23 21:31:25 +0000 |
commit | 318296726d023c7bb7eb0a6502ebf3a3f6c295df (patch) | |
tree | 558f13cf1e7d5a7c56862cd59f05ddb5fddfea6d /cmds/incidentd/src | |
parent | 9a7f304d2f7457eeea316f38da4dbb45a59e0890 (diff) |
Increase the size limit of incident reports.
Bug: 133425862
Test: incidentd_test
Change-Id: I323878958a93e0280b782de1745ed59e44f79b0b
Diffstat (limited to 'cmds/incidentd/src')
-rw-r--r-- | cmds/incidentd/src/FdBuffer.cpp | 2 | ||||
-rw-r--r-- | cmds/incidentd/src/IncidentService.cpp | 2 | ||||
-rw-r--r-- | cmds/incidentd/src/WorkDirectory.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cmds/incidentd/src/FdBuffer.cpp b/cmds/incidentd/src/FdBuffer.cpp index b46c9e357fc4..d295b84baf67 100644 --- a/cmds/incidentd/src/FdBuffer.cpp +++ b/cmds/incidentd/src/FdBuffer.cpp @@ -31,7 +31,7 @@ namespace os { namespace incidentd { const ssize_t BUFFER_SIZE = 16 * 1024; // 16 KB -const ssize_t MAX_BUFFER_COUNT = 1536; // 24 MB max +const ssize_t MAX_BUFFER_COUNT = 6144; // 96 MB max FdBuffer::FdBuffer() :mBuffer(new EncodedBuffer(BUFFER_SIZE)), diff --git a/cmds/incidentd/src/IncidentService.cpp b/cmds/incidentd/src/IncidentService.cpp index 71b89a2c6717..a8b99ceecd7f 100644 --- a/cmds/incidentd/src/IncidentService.cpp +++ b/cmds/incidentd/src/IncidentService.cpp @@ -43,7 +43,7 @@ enum { #define DEFAULT_DELAY_NS (1000000000LL) -#define DEFAULT_BYTES_SIZE_LIMIT (20 * 1024 * 1024) // 20MB +#define DEFAULT_BYTES_SIZE_LIMIT (96 * 1024 * 1024) // 96MB #define DEFAULT_REFACTORY_PERIOD_MS (24 * 60 * 60 * 1000) // 1 Day // Skip these sections for dumpstate only. Dumpstate allows 10s max for each service to dump. diff --git a/cmds/incidentd/src/WorkDirectory.cpp b/cmds/incidentd/src/WorkDirectory.cpp index ae640c635803..0570c3a039ae 100644 --- a/cmds/incidentd/src/WorkDirectory.cpp +++ b/cmds/incidentd/src/WorkDirectory.cpp @@ -498,7 +498,7 @@ status_t ReportFile::load_envelope_impl(bool cleanup) { WorkDirectory::WorkDirectory() :mDirectory("/data/misc/incidents"), mMaxFileCount(100), - mMaxDiskUsageBytes(30 * 1024 * 1024) { // Incident reports can take up to 30MB on disk. + mMaxDiskUsageBytes(100 * 1024 * 1024) { // Incident reports can take up to 100MB on disk. // TODO: Should be a flag. create_directory(mDirectory.c_str()); } |