Reduce AppFuse max read size.
Since the max read size of FUSE is 128KB in default, the socket header of the appfuse epollcontroller is allocated in order 4 (64KB). When memory environment is in insufficient situation that has a lot of fragment, order 4 size memory allication is impossible, so more than several tens of seconds could take to allocate the socket header. To prevent the issue, limit the fuse read size to 64KB, so that the memory allocation order of the socket header is changed to order 2. Bug: 312503249 Test: atest AppFusePerfTest Change-Id: I7020801b7539d980515885396916f8be1f1008e9
This commit is contained in:
parent
1dd20644dc
commit
fb014fc6e8
1 changed files with 9 additions and 8 deletions
|
@ -54,6 +54,7 @@ static android::status_t Mount(int device_fd, const std::string& path) {
|
|||
"rootmode=40000,"
|
||||
"default_permissions,"
|
||||
"allow_other,"
|
||||
"max_read=65536,"
|
||||
"user_id=0,group_id=0,"
|
||||
"context=\"u:object_r:app_fuse_file:s0\","
|
||||
"fscontext=u:object_r:app_fusefs:s0",
|
||||
|
|
Loading…
Reference in a new issue