From 1334f1a76c70869ac7a65741a0a7219dd885b993 Mon Sep 17 00:00:00 2001 From: Rafal Slawik Date: Wed, 12 Jan 2022 17:13:33 +0000 Subject: [PATCH] Increase size limits Incidents contain traces with average size of 8 MB. We hit the upload size limit of 100 MB before the upload count limit of 50. Increase the size limit to 400 MB to upload more traces. Previous increase: http://ag/7695408 Bug: 214244170 Test: incidentd_test Change-Id: Iae2f856d375f126f23191d152e4a46243fa3f38f --- cmds/incidentd/src/IncidentService.cpp | 2 +- cmds/incidentd/src/WorkDirectory.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmds/incidentd/src/IncidentService.cpp b/cmds/incidentd/src/IncidentService.cpp index 13bf197aa9dcb..fbb99d2aea89f 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 (96 * 1024 * 1024) // 96MB +#define DEFAULT_BYTES_SIZE_LIMIT (400 * 1024 * 1024) // 400MB #define DEFAULT_REFACTORY_PERIOD_MS (24 * 60 * 60 * 1000) // 1 Day // Skip these sections (for dumpstate only) diff --git a/cmds/incidentd/src/WorkDirectory.cpp b/cmds/incidentd/src/WorkDirectory.cpp index 23d80d7953b78..dd33fdfc28c39 100644 --- a/cmds/incidentd/src/WorkDirectory.cpp +++ b/cmds/incidentd/src/WorkDirectory.cpp @@ -533,7 +533,7 @@ status_t ReportFile::load_envelope_impl(bool cleanup) { WorkDirectory::WorkDirectory() :mDirectory("/data/misc/incidents"), mMaxFileCount(100), - mMaxDiskUsageBytes(100 * 1024 * 1024) { // Incident reports can take up to 100MB on disk. + mMaxDiskUsageBytes(400 * 1024 * 1024) { // Incident reports can take up to 400MB on disk. // TODO: Should be a flag. create_directory(mDirectory.c_str()); }